google-cloud-monitoring-v3 0.10.0 → 0.12.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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +6 -8
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +10 -14
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +14 -20
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +10 -14
- data/lib/google/cloud/monitoring/v3/query_service/client.rb +6 -8
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +10 -14
- data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +6 -8
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +23 -21
- data/lib/google/cloud/monitoring/v3/uptime_check_service.rb +5 -5
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/monitoring/v3/alert_pb.rb +29 -81
- data/lib/google/monitoring/v3/alert_service_pb.rb +26 -27
- data/lib/google/monitoring/v3/common_pb.rb +27 -71
- data/lib/google/monitoring/v3/dropped_labels_pb.rb +24 -4
- data/lib/google/monitoring/v3/group_pb.rb +24 -8
- data/lib/google/monitoring/v3/group_service_pb.rb +27 -43
- data/lib/google/monitoring/v3/metric_pb.rb +28 -54
- data/lib/google/monitoring/v3/metric_service_pb.rb +29 -88
- data/lib/google/monitoring/v3/mutation_record_pb.rb +25 -5
- data/lib/google/monitoring/v3/notification_pb.rb +27 -27
- data/lib/google/monitoring/v3/notification_service_pb.rb +27 -55
- data/lib/google/monitoring/v3/query_service_pb.rb +25 -2
- data/lib/google/monitoring/v3/service_pb.rb +25 -118
- data/lib/google/monitoring/v3/service_service_pb.rb +26 -53
- data/lib/google/monitoring/v3/snooze_pb.rb +25 -10
- data/lib/google/monitoring/v3/snooze_service_pb.rb +26 -22
- data/lib/google/monitoring/v3/span_context_pb.rb +24 -4
- data/lib/google/monitoring/v3/uptime_pb.rb +33 -92
- data/lib/google/monitoring/v3/uptime_service_pb.rb +26 -33
- data/lib/google/monitoring/v3/uptime_service_services_pb.rb +5 -5
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/api/distribution.rb +2 -0
- data/proto_docs/google/api/metric.rb +10 -6
- data/proto_docs/google/api/monitored_resource.rb +23 -18
- data/proto_docs/google/monitoring/v3/uptime.rb +184 -14
- data/proto_docs/google/monitoring/v3/uptime_service.rb +8 -1
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ea82e6eee819aeab257d1b3454988994a2b721f51b92735924a2925d236d515
|
4
|
+
data.tar.gz: 31651636d5aa0fe098f1d5582b46977be26baae6d329c5fe297689311c6c1b92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc97efd999089c50d700449b6cb632574dd293fb557b00d1ddaf0a0b3614d3caecd8064dfc01018fa576c7f55e26cd0f473793a101a2ca50bccb7ac37066b61
|
7
|
+
data.tar.gz: cf6c3262bdab9ca87049a638feab869980359ff9c2630d9f7d1defc26bb5e48bbf8538d7ab1dade54514427b4a93081ed6175160bac33fa2a8308072947ff306
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Monitoring V3 API
|
2
2
|
|
3
|
-
|
3
|
+
Manages your Cloud Monitoring data and configurations.
|
4
4
|
|
5
5
|
Cloud Monitoring collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation.
|
6
6
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
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
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
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/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.
|
53
53
|
|
@@ -240,13 +240,11 @@ module Google
|
|
240
240
|
# # Call the list_alert_policies method.
|
241
241
|
# result = client.list_alert_policies request
|
242
242
|
#
|
243
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
244
|
-
# #
|
245
|
-
#
|
246
|
-
# # methods are also available for managing paging directly.
|
247
|
-
# result.each do |response|
|
243
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
244
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
245
|
+
# result.each do |item|
|
248
246
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::AlertPolicy.
|
249
|
-
# p
|
247
|
+
# p item
|
250
248
|
# end
|
251
249
|
#
|
252
250
|
def list_alert_policies request, options = nil
|
@@ -718,9 +716,9 @@ module Google
|
|
718
716
|
# * (`String`) The path to a service account key file in JSON format
|
719
717
|
# * (`Hash`) A service account key as a Hash
|
720
718
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
721
|
-
# (see the [googleauth docs](https://
|
719
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
722
720
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
723
|
-
# (see the [signet docs](https://
|
721
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
724
722
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
725
723
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
726
724
|
# * (`nil`) indicating no credentials
|
@@ -256,13 +256,11 @@ module Google
|
|
256
256
|
# # Call the list_groups method.
|
257
257
|
# result = client.list_groups request
|
258
258
|
#
|
259
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
260
|
-
# #
|
261
|
-
#
|
262
|
-
# # methods are also available for managing paging directly.
|
263
|
-
# result.each do |response|
|
259
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
260
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
261
|
+
# result.each do |item|
|
264
262
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::Group.
|
265
|
-
# p
|
263
|
+
# p item
|
266
264
|
# end
|
267
265
|
#
|
268
266
|
def list_groups request, options = nil
|
@@ -730,13 +728,11 @@ module Google
|
|
730
728
|
# # Call the list_group_members method.
|
731
729
|
# result = client.list_group_members request
|
732
730
|
#
|
733
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
734
|
-
# #
|
735
|
-
#
|
736
|
-
# # methods are also available for managing paging directly.
|
737
|
-
# result.each do |response|
|
731
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
732
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
733
|
+
# result.each do |item|
|
738
734
|
# # Each element is of type ::Google::Api::MonitoredResource.
|
739
|
-
# p
|
735
|
+
# p item
|
740
736
|
# end
|
741
737
|
#
|
742
738
|
def list_group_members request, options = nil
|
@@ -819,9 +815,9 @@ module Google
|
|
819
815
|
# * (`String`) The path to a service account key file in JSON format
|
820
816
|
# * (`Hash`) A service account key as a Hash
|
821
817
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
822
|
-
# (see the [googleauth docs](https://
|
818
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
823
819
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
824
|
-
# (see the [signet docs](https://
|
820
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
825
821
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
826
822
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
827
823
|
# * (`nil`) indicating no credentials
|
@@ -236,13 +236,11 @@ module Google
|
|
236
236
|
# # Call the list_monitored_resource_descriptors method.
|
237
237
|
# result = client.list_monitored_resource_descriptors request
|
238
238
|
#
|
239
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
240
|
-
# #
|
241
|
-
#
|
242
|
-
# # methods are also available for managing paging directly.
|
243
|
-
# result.each do |response|
|
239
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
240
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
241
|
+
# result.each do |item|
|
244
242
|
# # Each element is of type ::Google::Api::MonitoredResourceDescriptor.
|
245
|
-
# p
|
243
|
+
# p item
|
246
244
|
# end
|
247
245
|
#
|
248
246
|
def list_monitored_resource_descriptors request, options = nil
|
@@ -436,13 +434,11 @@ module Google
|
|
436
434
|
# # Call the list_metric_descriptors method.
|
437
435
|
# result = client.list_metric_descriptors request
|
438
436
|
#
|
439
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
440
|
-
# #
|
441
|
-
#
|
442
|
-
# # methods are also available for managing paging directly.
|
443
|
-
# result.each do |response|
|
437
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
438
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
439
|
+
# result.each do |item|
|
444
440
|
# # Each element is of type ::Google::Api::MetricDescriptor.
|
445
|
-
# p
|
441
|
+
# p item
|
446
442
|
# end
|
447
443
|
#
|
448
444
|
def list_metric_descriptors request, options = nil
|
@@ -846,13 +842,11 @@ module Google
|
|
846
842
|
# # Call the list_time_series method.
|
847
843
|
# result = client.list_time_series request
|
848
844
|
#
|
849
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
850
|
-
# #
|
851
|
-
#
|
852
|
-
# # methods are also available for managing paging directly.
|
853
|
-
# result.each do |response|
|
845
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
846
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
847
|
+
# result.each do |item|
|
854
848
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::TimeSeries.
|
855
|
-
# p
|
849
|
+
# p item
|
856
850
|
# end
|
857
851
|
#
|
858
852
|
def list_time_series request, options = nil
|
@@ -1138,9 +1132,9 @@ module Google
|
|
1138
1132
|
# * (`String`) The path to a service account key file in JSON format
|
1139
1133
|
# * (`Hash`) A service account key as a Hash
|
1140
1134
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1141
|
-
# (see the [googleauth docs](https://
|
1135
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1142
1136
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1143
|
-
# (see the [signet docs](https://
|
1137
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1144
1138
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1145
1139
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1146
1140
|
# * (`nil`) indicating no credentials
|
@@ -246,13 +246,11 @@ module Google
|
|
246
246
|
# # Call the list_notification_channel_descriptors method.
|
247
247
|
# result = client.list_notification_channel_descriptors request
|
248
248
|
#
|
249
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
250
|
-
# #
|
251
|
-
#
|
252
|
-
# # methods are also available for managing paging directly.
|
253
|
-
# result.each do |response|
|
249
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
250
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
251
|
+
# result.each do |item|
|
254
252
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::NotificationChannelDescriptor.
|
255
|
-
# p
|
253
|
+
# p item
|
256
254
|
# end
|
257
255
|
#
|
258
256
|
def list_notification_channel_descriptors request, options = nil
|
@@ -457,13 +455,11 @@ module Google
|
|
457
455
|
# # Call the list_notification_channels method.
|
458
456
|
# result = client.list_notification_channels request
|
459
457
|
#
|
460
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
461
|
-
# #
|
462
|
-
#
|
463
|
-
# # methods are also available for managing paging directly.
|
464
|
-
# result.each do |response|
|
458
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
459
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
460
|
+
# result.each do |item|
|
465
461
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::NotificationChannel.
|
466
|
-
# p
|
462
|
+
# p item
|
467
463
|
# end
|
468
464
|
#
|
469
465
|
def list_notification_channels request, options = nil
|
@@ -1214,9 +1210,9 @@ module Google
|
|
1214
1210
|
# * (`String`) The path to a service account key file in JSON format
|
1215
1211
|
# * (`Hash`) A service account key as a Hash
|
1216
1212
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1217
|
-
# (see the [googleauth docs](https://
|
1213
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1218
1214
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1219
|
-
# (see the [signet docs](https://
|
1215
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1220
1216
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1221
1217
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1222
1218
|
# * (`nil`) indicating no credentials
|
@@ -198,13 +198,11 @@ module Google
|
|
198
198
|
# # Call the query_time_series method.
|
199
199
|
# result = client.query_time_series request
|
200
200
|
#
|
201
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
202
|
-
# #
|
203
|
-
#
|
204
|
-
# # methods are also available for managing paging directly.
|
205
|
-
# result.each do |response|
|
201
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
202
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
203
|
+
# result.each do |item|
|
206
204
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::TimeSeriesData.
|
207
|
-
# p
|
205
|
+
# p item
|
208
206
|
# end
|
209
207
|
#
|
210
208
|
def query_time_series request, options = nil
|
@@ -287,9 +285,9 @@ module Google
|
|
287
285
|
# * (`String`) The path to a service account key file in JSON format
|
288
286
|
# * (`Hash`) A service account key as a Hash
|
289
287
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
290
|
-
# (see the [googleauth docs](https://
|
288
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
291
289
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
292
|
-
# (see the [signet docs](https://
|
290
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
293
291
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
294
292
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
295
293
|
# * (`nil`) indicating no credentials
|
@@ -438,13 +438,11 @@ module Google
|
|
438
438
|
# # Call the list_services method.
|
439
439
|
# result = client.list_services request
|
440
440
|
#
|
441
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
442
|
-
# #
|
443
|
-
#
|
444
|
-
# # methods are also available for managing paging directly.
|
445
|
-
# result.each do |response|
|
441
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
442
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
443
|
+
# result.each do |item|
|
446
444
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::Service.
|
447
|
-
# p
|
445
|
+
# p item
|
448
446
|
# end
|
449
447
|
#
|
450
448
|
def list_services request, options = nil
|
@@ -910,13 +908,11 @@ module Google
|
|
910
908
|
# # Call the list_service_level_objectives method.
|
911
909
|
# result = client.list_service_level_objectives request
|
912
910
|
#
|
913
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
914
|
-
# #
|
915
|
-
#
|
916
|
-
# # methods are also available for managing paging directly.
|
917
|
-
# result.each do |response|
|
911
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
912
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
913
|
+
# result.each do |item|
|
918
914
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::ServiceLevelObjective.
|
919
|
-
# p
|
915
|
+
# p item
|
920
916
|
# end
|
921
917
|
#
|
922
918
|
def list_service_level_objectives request, options = nil
|
@@ -1174,9 +1170,9 @@ module Google
|
|
1174
1170
|
# * (`String`) The path to a service account key file in JSON format
|
1175
1171
|
# * (`Hash`) A service account key as a Hash
|
1176
1172
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1177
|
-
# (see the [googleauth docs](https://
|
1173
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1178
1174
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1179
|
-
# (see the [signet docs](https://
|
1175
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1180
1176
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1181
1177
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1182
1178
|
# * (`nil`) indicating no credentials
|
@@ -322,13 +322,11 @@ module Google
|
|
322
322
|
# # Call the list_snoozes method.
|
323
323
|
# result = client.list_snoozes request
|
324
324
|
#
|
325
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
326
|
-
# #
|
327
|
-
#
|
328
|
-
# # methods are also available for managing paging directly.
|
329
|
-
# result.each do |response|
|
325
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
326
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
327
|
+
# result.each do |item|
|
330
328
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::Snooze.
|
331
|
-
# p
|
329
|
+
# p item
|
332
330
|
# end
|
333
331
|
#
|
334
332
|
def list_snoozes request, options = nil
|
@@ -607,9 +605,9 @@ module Google
|
|
607
605
|
# * (`String`) The path to a service account key file in JSON format
|
608
606
|
# * (`Hash`) A service account key as a Hash
|
609
607
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
610
|
-
# (see the [googleauth docs](https://
|
608
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
611
609
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
612
|
-
# (see the [signet docs](https://
|
610
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
613
611
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
614
612
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
615
613
|
# * (`nil`) indicating no credentials
|
@@ -28,13 +28,13 @@ module Google
|
|
28
28
|
# Client for the UptimeCheckService service.
|
29
29
|
#
|
30
30
|
# The UptimeCheckService API is used to manage (list, create, delete, edit)
|
31
|
-
# Uptime check configurations in the
|
31
|
+
# Uptime check configurations in the Cloud Monitoring product. An Uptime
|
32
32
|
# check is a piece of configuration that determines which resources and
|
33
33
|
# services to monitor for availability. These configurations can also be
|
34
|
-
# configured interactively by navigating to the [Cloud
|
35
|
-
# (
|
36
|
-
# clicking on "Monitoring" on the left-hand side to navigate to
|
37
|
-
# and then clicking on "Uptime".
|
34
|
+
# configured interactively by navigating to the [Cloud console]
|
35
|
+
# (https://console.cloud.google.com), selecting the appropriate project,
|
36
|
+
# clicking on "Monitoring" on the left-hand side to navigate to Cloud
|
37
|
+
# Monitoring, and then clicking on "Uptime".
|
38
38
|
#
|
39
39
|
class Client
|
40
40
|
include Paths
|
@@ -189,7 +189,7 @@ module Google
|
|
189
189
|
# @param options [::Gapic::CallOptions, ::Hash]
|
190
190
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
191
191
|
#
|
192
|
-
# @overload list_uptime_check_configs(parent: nil, page_size: nil, page_token: nil)
|
192
|
+
# @overload list_uptime_check_configs(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
193
193
|
# Pass arguments to `list_uptime_check_configs` via keyword arguments. Note that at
|
194
194
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
195
195
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -200,6 +200,12 @@ module Google
|
|
200
200
|
# Uptime check configurations are listed. The format is:
|
201
201
|
#
|
202
202
|
# projects/[PROJECT_ID_OR_NUMBER]
|
203
|
+
# @param filter [::String]
|
204
|
+
# If provided, this field specifies the criteria that must be met by
|
205
|
+
# uptime checks to be included in the response.
|
206
|
+
#
|
207
|
+
# For more details, see [Filtering
|
208
|
+
# syntax](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering#filter_syntax).
|
203
209
|
# @param page_size [::Integer]
|
204
210
|
# The maximum number of results to return in a single response. The server
|
205
211
|
# may further constrain the maximum number of results returned in a single
|
@@ -230,13 +236,11 @@ module Google
|
|
230
236
|
# # Call the list_uptime_check_configs method.
|
231
237
|
# result = client.list_uptime_check_configs request
|
232
238
|
#
|
233
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
234
|
-
# #
|
235
|
-
#
|
236
|
-
# # methods are also available for managing paging directly.
|
237
|
-
# result.each do |response|
|
239
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
240
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
241
|
+
# result.each do |item|
|
238
242
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::UptimeCheckConfig.
|
239
|
-
# p
|
243
|
+
# p item
|
240
244
|
# end
|
241
245
|
#
|
242
246
|
def list_uptime_check_configs request, options = nil
|
@@ -490,7 +494,7 @@ module Google
|
|
490
494
|
# the values for the set of fields mentioned in the `updateMask`. If an
|
491
495
|
# `updateMask` has not been given, this Uptime check configuration replaces
|
492
496
|
# the current configuration. If a field is mentioned in `updateMask` but
|
493
|
-
# the
|
497
|
+
# the corresponding field is omitted in this partial Uptime check
|
494
498
|
# configuration, it has the effect of deleting/clearing the field from the
|
495
499
|
# configuration on the server.
|
496
500
|
#
|
@@ -701,13 +705,11 @@ module Google
|
|
701
705
|
# # Call the list_uptime_check_ips method.
|
702
706
|
# result = client.list_uptime_check_ips request
|
703
707
|
#
|
704
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
705
|
-
# #
|
706
|
-
#
|
707
|
-
# # methods are also available for managing paging directly.
|
708
|
-
# result.each do |response|
|
708
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
709
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
710
|
+
# result.each do |item|
|
709
711
|
# # Each element is of type ::Google::Cloud::Monitoring::V3::UptimeCheckIp.
|
710
|
-
# p
|
712
|
+
# p item
|
711
713
|
# end
|
712
714
|
#
|
713
715
|
def list_uptime_check_ips request, options = nil
|
@@ -782,9 +784,9 @@ module Google
|
|
782
784
|
# * (`String`) The path to a service account key file in JSON format
|
783
785
|
# * (`Hash`) A service account key as a Hash
|
784
786
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
785
|
-
# (see the [googleauth docs](https://
|
787
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
786
788
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
787
|
-
# (see the [signet docs](https://
|
789
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
788
790
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
789
791
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
790
792
|
# * (`nil`) indicating no credentials
|
@@ -32,13 +32,13 @@ module Google
|
|
32
32
|
module V3
|
33
33
|
##
|
34
34
|
# The UptimeCheckService API is used to manage (list, create, delete, edit)
|
35
|
-
# Uptime check configurations in the
|
35
|
+
# Uptime check configurations in the Cloud Monitoring product. An Uptime
|
36
36
|
# check is a piece of configuration that determines which resources and
|
37
37
|
# services to monitor for availability. These configurations can also be
|
38
|
-
# configured interactively by navigating to the [Cloud
|
39
|
-
# (
|
40
|
-
# clicking on "Monitoring" on the left-hand side to navigate to
|
41
|
-
# and then clicking on "Uptime".
|
38
|
+
# configured interactively by navigating to the [Cloud console]
|
39
|
+
# (https://console.cloud.google.com), selecting the appropriate project,
|
40
|
+
# clicking on "Monitoring" on the left-hand side to navigate to Cloud
|
41
|
+
# Monitoring, and then clicking on "Uptime".
|
42
42
|
#
|
43
43
|
# @example Load this service and instantiate a gRPC client
|
44
44
|
#
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/monitoring/v3/alert.proto
|
3
4
|
|
@@ -11,89 +12,36 @@ require 'google/protobuf/duration_pb'
|
|
11
12
|
require 'google/protobuf/wrappers_pb'
|
12
13
|
require 'google/rpc/status_pb'
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
optional :condition_matched_log, :message, 20, "google.monitoring.v3.AlertPolicy.Condition.LogMatch"
|
41
|
-
optional :condition_monitoring_query_language, :message, 19, "google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition"
|
42
|
-
end
|
43
|
-
end
|
44
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition.Trigger" do
|
45
|
-
oneof :type do
|
46
|
-
optional :count, :int32, 1
|
47
|
-
optional :percent, :double, 2
|
48
|
-
end
|
49
|
-
end
|
50
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition.MetricThreshold" do
|
51
|
-
optional :filter, :string, 2
|
52
|
-
repeated :aggregations, :message, 8, "google.monitoring.v3.Aggregation"
|
53
|
-
optional :denominator_filter, :string, 9
|
54
|
-
repeated :denominator_aggregations, :message, 10, "google.monitoring.v3.Aggregation"
|
55
|
-
optional :comparison, :enum, 4, "google.monitoring.v3.ComparisonType"
|
56
|
-
optional :threshold_value, :double, 5
|
57
|
-
optional :duration, :message, 6, "google.protobuf.Duration"
|
58
|
-
optional :trigger, :message, 7, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
|
59
|
-
optional :evaluation_missing_data, :enum, 11, "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData"
|
60
|
-
end
|
61
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence" do
|
62
|
-
optional :filter, :string, 1
|
63
|
-
repeated :aggregations, :message, 5, "google.monitoring.v3.Aggregation"
|
64
|
-
optional :duration, :message, 2, "google.protobuf.Duration"
|
65
|
-
optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
|
66
|
-
end
|
67
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition.LogMatch" do
|
68
|
-
optional :filter, :string, 1
|
69
|
-
map :label_extractors, :string, :string, 2
|
70
|
-
end
|
71
|
-
add_message "google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition" do
|
72
|
-
optional :query, :string, 1
|
73
|
-
optional :duration, :message, 2, "google.protobuf.Duration"
|
74
|
-
optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
|
75
|
-
optional :evaluation_missing_data, :enum, 4, "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData"
|
76
|
-
end
|
77
|
-
add_enum "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData" do
|
78
|
-
value :EVALUATION_MISSING_DATA_UNSPECIFIED, 0
|
79
|
-
value :EVALUATION_MISSING_DATA_INACTIVE, 1
|
80
|
-
value :EVALUATION_MISSING_DATA_ACTIVE, 2
|
81
|
-
value :EVALUATION_MISSING_DATA_NO_OP, 3
|
82
|
-
end
|
83
|
-
add_message "google.monitoring.v3.AlertPolicy.AlertStrategy" do
|
84
|
-
optional :notification_rate_limit, :message, 1, "google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit"
|
85
|
-
optional :auto_close, :message, 3, "google.protobuf.Duration"
|
86
|
-
end
|
87
|
-
add_message "google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit" do
|
88
|
-
optional :period, :message, 1, "google.protobuf.Duration"
|
89
|
-
end
|
90
|
-
add_enum "google.monitoring.v3.AlertPolicy.ConditionCombinerType" do
|
91
|
-
value :COMBINE_UNSPECIFIED, 0
|
92
|
-
value :AND, 1
|
93
|
-
value :OR, 2
|
94
|
-
value :AND_WITH_MATCHING_RESOURCE, 3
|
15
|
+
|
16
|
+
descriptor_data = "\n google/monitoring/v3/alert.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\x1a*google/monitoring/v3/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xdb\x1a\n\x0b\x41lertPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x46\n\rdocumentation\x18\r \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.Documentation\x12\x46\n\x0buser_labels\x18\x10 \x03(\x0b\x32\x31.google.monitoring.v3.AlertPolicy.UserLabelsEntry\x12?\n\nconditions\x18\x0c \x03(\x0b\x32+.google.monitoring.v3.AlertPolicy.Condition\x12I\n\x08\x63ombiner\x18\x06 \x01(\x0e\x32\x37.google.monitoring.v3.AlertPolicy.ConditionCombinerType\x12+\n\x07\x65nabled\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12$\n\x08validity\x18\x12 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1d\n\x15notification_channels\x18\x0e \x03(\t\x12=\n\x0f\x63reation_record\x18\n \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12=\n\x0fmutation_record\x18\x0b \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12G\n\x0e\x61lert_strategy\x18\x15 \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.AlertStrategy\x1a\x33\n\rDocumentation\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x1a\xce\x10\n\tCondition\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12Z\n\x13\x63ondition_threshold\x18\x01 \x01(\x0b\x32;.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdH\x00\x12U\n\x10\x63ondition_absent\x18\x02 \x01(\x0b\x32\x39.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceH\x00\x12U\n\x15\x63ondition_matched_log\x18\x14 \x01(\x0b\x32\x34.google.monitoring.v3.AlertPolicy.Condition.LogMatchH\x00\x12{\n#condition_monitoring_query_language\x18\x13 \x01(\x0b\x32L.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionH\x00\x1a\x35\n\x07Trigger\x12\x0f\n\x05\x63ount\x18\x01 \x01(\x05H\x00\x12\x11\n\x07percent\x18\x02 \x01(\x01H\x00\x42\x06\n\x04type\x1a\xea\x03\n\x0fMetricThreshold\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x0c\x61ggregations\x18\x08 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x1a\n\x12\x64\x65nominator_filter\x18\t \x01(\t\x12\x43\n\x18\x64\x65nominator_aggregations\x18\n \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x38\n\ncomparison\x18\x04 \x01(\x0e\x32$.google.monitoring.v3.ComparisonType\x12\x17\n\x0fthreshold_value\x18\x05 \x01(\x01\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x07 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x12\x62\n\x17\x65valuation_missing_data\x18\x0b \x01(\x0e\x32\x41.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData\x1a\xd0\x01\n\rMetricAbsence\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x0c\x61ggregations\x18\x05 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x1a\xbc\x01\n\x08LogMatch\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x10label_extractors\x18\x02 \x03(\x0b\x32I.google.monitoring.v3.AlertPolicy.Condition.LogMatch.LabelExtractorsEntry\x1a\x36\n\x14LabelExtractorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x88\x02\n MonitoringQueryLanguageCondition\x12\r\n\x05query\x18\x01 \x01(\t\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x12\x62\n\x17\x65valuation_missing_data\x18\x04 \x01(\x0e\x32\x41.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData\"\xad\x01\n\x15\x45valuationMissingData\x12\'\n#EVALUATION_MISSING_DATA_UNSPECIFIED\x10\x00\x12$\n EVALUATION_MISSING_DATA_INACTIVE\x10\x01\x12\"\n\x1e\x45VALUATION_MISSING_DATA_ACTIVE\x10\x02\x12!\n\x1d\x45VALUATION_MISSING_DATA_NO_OP\x10\x03:\x97\x02\xea\x41\x93\x02\n.monitoring.googleapis.com/AlertPolicyCondition\x12\x46projects/{project}/alertPolicies/{alert_policy}/conditions/{condition}\x12Porganizations/{organization}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x44\x66olders/{folder}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x01*B\x0b\n\tcondition\x1a\xea\x01\n\rAlertStrategy\x12\x66\n\x17notification_rate_limit\x18\x01 \x01(\x0b\x32\x45.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit\x12-\n\nauto_close\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x42\n\x15NotificationRateLimit\x12)\n\x06period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"a\n\x15\x43onditionCombinerType\x12\x17\n\x13\x43OMBINE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\x12\x1e\n\x1a\x41ND_WITH_MATCHING_RESOURCE\x10\x03:\xc9\x01\xea\x41\xc5\x01\n%monitoring.googleapis.com/AlertPolicy\x12/projects/{project}/alertPolicies/{alert_policy}\x12\x39organizations/{organization}/alertPolicies/{alert_policy}\x12-folders/{folder}/alertPolicies/{alert_policy}\x12\x01*B\xc5\x01\n\x18\x63om.google.monitoring.v3B\nAlertProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"],
|
32
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
33
|
+
["google.monitoring.v3.MutationRecord", "google/monitoring/v3/mutation_record.proto"],
|
34
|
+
["google.monitoring.v3.Aggregation", "google/monitoring/v3/common.proto"],
|
35
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
36
|
+
]
|
37
|
+
imports.each do |type_name, expected_filename|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
39
|
+
if import_file.name != expected_filename
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
95
41
|
end
|
96
42
|
end
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
44
|
+
warn "This will become an error in the next major version."
|
97
45
|
end
|
98
46
|
|
99
47
|
module Google
|