google-cloud-monitoring-v3 0.8.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +4 -4
- data/lib/google/cloud/monitoring/v3/alert_policy_service.rb +4 -4
- data/lib/google/cloud/monitoring/v3/group_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/metric_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/notification_channel_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/query_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/service_monitoring_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +748 -0
- data/lib/google/cloud/monitoring/v3/snooze_service/credentials.rb +53 -0
- data/lib/google/cloud/monitoring/v3/snooze_service/paths.rb +149 -0
- data/lib/google/cloud/monitoring/v3/snooze_service.rb +51 -0
- data/lib/google/cloud/monitoring/v3/uptime_check_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/cloud/monitoring/v3.rb +3 -2
- data/lib/google/monitoring/v3/alert_pb.rb +9 -0
- data/lib/google/monitoring/v3/alert_service_services_pb.rb +3 -3
- data/lib/google/monitoring/v3/snooze_pb.rb +33 -0
- data/lib/google/monitoring/v3/snooze_service_pb.rb +51 -0
- data/lib/google/monitoring/v3/snooze_service_services_pb.rb +57 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +3 -3
- data/proto_docs/google/api/monitored_resource.rb +9 -2
- data/proto_docs/google/monitoring/v3/alert.rb +33 -4
- data/proto_docs/google/monitoring/v3/alert_service.rb +1 -1
- data/proto_docs/google/monitoring/v3/snooze.rb +74 -0
- data/proto_docs/google/monitoring/v3/snooze_service.rb +154 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +15 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c4ed7718588b819e2ded4928e194362b7643d56bfc461795cb755157f9adf1e
|
4
|
+
data.tar.gz: 83444f8a9b52457c5c4ce442141771240a39a7149794b104bea3fde23820a7c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
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
|
-
# [
|
36
|
+
# [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
|
37
37
|
# which can be reached by clicking the "Monitoring" tab in
|
38
|
-
# [Cloud
|
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
|
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
|
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
|
-
# [
|
40
|
+
# [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
|
41
41
|
# which can be reached by clicking the "Monitoring" tab in
|
42
|
-
# [Cloud
|
42
|
+
# [Cloud console](https://console.cloud.google.com/).
|
43
43
|
#
|
44
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|