google-cloud-monitoring-v3 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +1 -1
  4. data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +4 -4
  5. data/lib/google/cloud/monitoring/v3/alert_policy_service.rb +4 -4
  6. data/lib/google/cloud/monitoring/v3/group_service.rb +1 -1
  7. data/lib/google/cloud/monitoring/v3/metric_service.rb +1 -1
  8. data/lib/google/cloud/monitoring/v3/notification_channel_service.rb +1 -1
  9. data/lib/google/cloud/monitoring/v3/query_service.rb +1 -1
  10. data/lib/google/cloud/monitoring/v3/service_monitoring_service.rb +1 -1
  11. data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +748 -0
  12. data/lib/google/cloud/monitoring/v3/snooze_service/credentials.rb +53 -0
  13. data/lib/google/cloud/monitoring/v3/snooze_service/paths.rb +149 -0
  14. data/lib/google/cloud/monitoring/v3/snooze_service.rb +51 -0
  15. data/lib/google/cloud/monitoring/v3/uptime_check_service.rb +1 -1
  16. data/lib/google/cloud/monitoring/v3/version.rb +1 -1
  17. data/lib/google/cloud/monitoring/v3.rb +3 -2
  18. data/lib/google/monitoring/v3/alert_pb.rb +9 -0
  19. data/lib/google/monitoring/v3/alert_service_services_pb.rb +3 -3
  20. data/lib/google/monitoring/v3/snooze_pb.rb +33 -0
  21. data/lib/google/monitoring/v3/snooze_service_pb.rb +51 -0
  22. data/lib/google/monitoring/v3/snooze_service_services_pb.rb +57 -0
  23. data/proto_docs/google/api/client.rb +318 -0
  24. data/proto_docs/google/api/launch_stage.rb +3 -3
  25. data/proto_docs/google/api/monitored_resource.rb +9 -2
  26. data/proto_docs/google/monitoring/v3/alert.rb +33 -4
  27. data/proto_docs/google/monitoring/v3/alert_service.rb +1 -1
  28. data/proto_docs/google/monitoring/v3/snooze.rb +74 -0
  29. data/proto_docs/google/monitoring/v3/snooze_service.rb +154 -0
  30. data/proto_docs/google/protobuf/empty.rb +0 -2
  31. data/proto_docs/google/rpc/status.rb +4 -2
  32. metadata +15 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc642d3d7315e0a382336093e3f69bb4407c29d9f6808769275bb821c80f755b
4
- data.tar.gz: cba250876fd1086ff6fb2d28fba1e60d20822c3aed42ec8060cf5797863dd32d
3
+ metadata.gz: 9c4ed7718588b819e2ded4928e194362b7643d56bfc461795cb755157f9adf1e
4
+ data.tar.gz: 83444f8a9b52457c5c4ce442141771240a39a7149794b104bea3fde23820a7c4
5
5
  SHA512:
6
- metadata.gz: 8b72c1012cd1f700cefef00f1442a30998abdc827812bfac8c39451416f83187cfc1d8a1e60deb11adb1e8c85948e07e4a93bc47275cf9c5f108d096594b36d9
7
- data.tar.gz: 1754dd7ebb46e41496b92564dde07cbd383a7d4b81a43071e45ba18f9416146350ea3a202f84152d29178b14380e6810ea95b2b84a5462f825d1be67a3cea865
6
+ metadata.gz: b4f8bcffb3ae76377aa528fce7355147b33805aa1c4ac5e1d7517129e816d60d665e95cfa967522d28ed47048a4277abb1e4f3562d3f82c9a8423459c90ae4eb
7
+ data.tar.gz: 62a9afad3fc9e2e31ef212a8387b7f7d69a899f81b5b66060595c50553583701222aebd16dd43945a381bb9f0c7eacc5c6872170b96a390394cda62941d4ba73
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -28,14 +28,14 @@ module Google
28
28
  # Client for the AlertPolicyService service.
29
29
  #
30
30
  # The AlertPolicyService API is used to manage (list, create, delete,
31
- # edit) alert policies in Stackdriver Monitoring. An alerting policy is
31
+ # edit) alert policies in Cloud Monitoring. An alerting policy is
32
32
  # a description of the conditions under which some aspect of your
33
33
  # system is considered to be "unhealthy" and the ways to notify
34
34
  # people or services about this state. In addition to using this API, alert
35
35
  # policies can also be managed through
36
- # [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
36
+ # [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
37
37
  # which can be reached by clicking the "Monitoring" tab in
38
- # [Cloud Console](https://console.cloud.google.com/).
38
+ # [Cloud console](https://console.cloud.google.com/).
39
39
  #
40
40
  class Client
41
41
  include Paths
@@ -404,7 +404,7 @@ module Google
404
404
  #
405
405
  # Note that this field names the parent container in which the alerting
406
406
  # policy will be written, not the name of the created policy. |name| must be
407
- # a host project of a workspace, otherwise INVALID_ARGUMENT error will
407
+ # a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
408
408
  # return. The alerting policy that is returned will have a name that contains
409
409
  # a normalized representation of this name as a prefix but adds a suffix of
410
410
  # the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -32,16 +32,16 @@ module Google
32
32
  module V3
33
33
  ##
34
34
  # The AlertPolicyService API is used to manage (list, create, delete,
35
- # edit) alert policies in Stackdriver Monitoring. An alerting policy is
35
+ # edit) alert policies in Cloud Monitoring. An alerting policy is
36
36
  # a description of the conditions under which some aspect of your
37
37
  # system is considered to be "unhealthy" and the ways to notify
38
38
  # people or services about this state. In addition to using this API, alert
39
39
  # policies can also be managed through
40
- # [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
40
+ # [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
41
41
  # which can be reached by clicking the "Monitoring" tab in
42
- # [Cloud Console](https://console.cloud.google.com/).
42
+ # [Cloud console](https://console.cloud.google.com/).
43
43
  #
44
- # To load this service and instantiate a client:
44
+ # @example Load this service and instantiate a gRPC client
45
45
  #
46
46
  # require "google/cloud/monitoring/v3/alert_policy_service"
47
47
  # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
@@ -44,7 +44,7 @@ module Google
44
44
  # updated automatically as monitored resources are added and removed
45
45
  # from the infrastructure.
46
46
  #
47
- # To load this service and instantiate a client:
47
+ # @example Load this service and instantiate a gRPC client
48
48
  #
49
49
  # require "google/cloud/monitoring/v3/group_service"
50
50
  # client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new
@@ -34,7 +34,7 @@ module Google
34
34
  # Manages metric descriptors, monitored resource descriptors, and
35
35
  # time series data.
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/monitoring/v3/metric_service"
40
40
  # client = ::Google::Cloud::Monitoring::V3::MetricService::Client.new
@@ -34,7 +34,7 @@ module Google
34
34
  # The Notification Channel API provides access to configuration that
35
35
  # controls how messages related to incidents are sent.
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/monitoring/v3/notification_channel_service"
40
40
  # client = ::Google::Cloud::Monitoring::V3::NotificationChannelService::Client.new
@@ -34,7 +34,7 @@ module Google
34
34
  # Monitoring. Time series data is a collection of data points that describes
35
35
  # the time-varying values of a metric.
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/monitoring/v3/query_service"
40
40
  # client = ::Google::Cloud::Monitoring::V3::QueryService::Client.new
@@ -36,7 +36,7 @@ module Google
36
36
  # `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
37
37
  # of categorized Health Metrics.
38
38
  #
39
- # To load this service and instantiate a client:
39
+ # @example Load this service and instantiate a gRPC client
40
40
  #
41
41
  # require "google/cloud/monitoring/v3/service_monitoring_service"
42
42
  # client = ::Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client.new