google-cloud-monitoring-v3 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c4ed7718588b819e2ded4928e194362b7643d56bfc461795cb755157f9adf1e
4
- data.tar.gz: 83444f8a9b52457c5c4ce442141771240a39a7149794b104bea3fde23820a7c4
3
+ metadata.gz: 6b7a0de040f975ac5fd6e4d7e2042f7b2fcbd3c53ac448fad690bf08925bdd76
4
+ data.tar.gz: e2c83be0585f10fbde045bd459d8d09735594bc5dac918638e05213e4308f461
5
5
  SHA512:
6
- metadata.gz: b4f8bcffb3ae76377aa528fce7355147b33805aa1c4ac5e1d7517129e816d60d665e95cfa967522d28ed47048a4277abb1e4f3562d3f82c9a8423459c90ae4eb
7
- data.tar.gz: 62a9afad3fc9e2e31ef212a8387b7f7d69a899f81b5b66060595c50553583701222aebd16dd43945a381bb9f0c7eacc5c6872170b96a390394cda62941d4ba73
6
+ metadata.gz: 11e068d1566f5fd49f0ae26ed33734f28bd792fc632b97dc11d7c63b45fd2a904234d413e7f5642bf70b49568190f9fa7c6d6f8e8b5712c588abc7ea5b936453
7
+ data.tar.gz: 3fb9406866a8e8cfd65bc793ad7ef6437e14cede76b7154023ac4e143ac0bbd13dbe81cb062075978742611e1e696e3634de23d41b23bc5601a5e8e9df60e30a
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Monitoring V3 API
2
2
 
3
- API Client library for the Cloud Monitoring V3 API
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://googleapis.dev/ruby/google-cloud-logging/latest)
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
- # # iterate over all elements by calling #each, and the enumerable
245
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- # # iterate over all elements by calling #each, and the enumerable
261
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
735
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- # # iterate over all elements by calling #each, and the enumerable
241
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
441
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
851
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- # # iterate over all elements by calling #each, and the enumerable
251
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
462
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- # # iterate over all elements by calling #each, and the enumerable
203
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- # # iterate over all elements by calling #each, and the enumerable
443
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
915
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- # # iterate over all elements by calling #each, and the enumerable
327
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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 Stackdriver Monitoring product. An Uptime
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 Console]
35
- # (http://console.cloud.google.com), selecting the appropriate project,
36
- # clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
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
- # # iterate over all elements by calling #each, and the enumerable
235
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 corresonding field is omitted in this partial Uptime check
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
- # # iterate over all elements by calling #each, and the enumerable
706
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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 Stackdriver Monitoring product. An Uptime
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 Console]
39
- # (http://console.cloud.google.com), selecting the appropriate project,
40
- # clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
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
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Monitoring
23
23
  module V3
24
- VERSION = "0.10.0"
24
+ VERSION = "0.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/api/field_behavior_pb'
6
7
  require 'google/api/monitored_resource_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/duration_pb'
@@ -28,9 +29,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
29
  optional :period, :message, 7, "google.protobuf.Duration"
29
30
  optional :timeout, :message, 8, "google.protobuf.Duration"
30
31
  repeated :content_matchers, :message, 9, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher"
32
+ optional :checker_type, :enum, 17, "google.monitoring.v3.UptimeCheckConfig.CheckerType"
31
33
  repeated :selected_regions, :enum, 10, "google.monitoring.v3.UptimeCheckRegion"
32
34
  optional :is_internal, :bool, 15
33
35
  repeated :internal_checkers, :message, 14, "google.monitoring.v3.InternalChecker"
36
+ map :user_labels, :string, :string, 20
34
37
  oneof :resource do
35
38
  optional :monitored_resource, :message, 3, "google.api.MonitoredResource"
36
39
  optional :resource_group, :message, 4, "google.monitoring.v3.UptimeCheckConfig.ResourceGroup"
@@ -44,6 +47,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
44
47
  optional :group_id, :string, 1
45
48
  optional :resource_type, :enum, 2, "google.monitoring.v3.GroupResourceType"
46
49
  end
50
+ add_message "google.monitoring.v3.UptimeCheckConfig.PingConfig" do
51
+ optional :pings_count, :int32, 1
52
+ end
47
53
  add_message "google.monitoring.v3.UptimeCheckConfig.HttpCheck" do
48
54
  optional :request_method, :enum, 8, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod"
49
55
  optional :use_ssl, :bool, 1
@@ -53,13 +59,31 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
53
59
  optional :mask_headers, :bool, 5
54
60
  map :headers, :string, :string, 6
55
61
  optional :content_type, :enum, 9, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType"
62
+ optional :custom_content_type, :string, 13
56
63
  optional :validate_ssl, :bool, 7
57
64
  optional :body, :bytes, 10
65
+ repeated :accepted_response_status_codes, :message, 11, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode"
66
+ optional :ping_config, :message, 12, "google.monitoring.v3.UptimeCheckConfig.PingConfig"
58
67
  end
59
68
  add_message "google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication" do
60
69
  optional :username, :string, 1
61
70
  optional :password, :string, 2
62
71
  end
72
+ add_message "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode" do
73
+ oneof :status_code do
74
+ optional :status_value, :int32, 1
75
+ optional :status_class, :enum, 2, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass"
76
+ end
77
+ end
78
+ add_enum "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass" do
79
+ value :STATUS_CLASS_UNSPECIFIED, 0
80
+ value :STATUS_CLASS_1XX, 100
81
+ value :STATUS_CLASS_2XX, 200
82
+ value :STATUS_CLASS_3XX, 300
83
+ value :STATUS_CLASS_4XX, 400
84
+ value :STATUS_CLASS_5XX, 500
85
+ value :STATUS_CLASS_ANY, 1000
86
+ end
63
87
  add_enum "google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod" do
64
88
  value :METHOD_UNSPECIFIED, 0
65
89
  value :GET, 1
@@ -68,13 +92,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
68
92
  add_enum "google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType" do
69
93
  value :TYPE_UNSPECIFIED, 0
70
94
  value :URL_ENCODED, 1
95
+ value :USER_PROVIDED, 2
71
96
  end
72
97
  add_message "google.monitoring.v3.UptimeCheckConfig.TcpCheck" do
73
98
  optional :port, :int32, 1
99
+ optional :ping_config, :message, 2, "google.monitoring.v3.UptimeCheckConfig.PingConfig"
74
100
  end
75
101
  add_message "google.monitoring.v3.UptimeCheckConfig.ContentMatcher" do
76
102
  optional :content, :string, 1
77
103
  optional :matcher, :enum, 2, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption"
104
+ oneof :additional_matcher_info do
105
+ optional :json_path_matcher, :message, 3, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher"
106
+ end
107
+ end
108
+ add_message "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher" do
109
+ optional :json_path, :string, 1
110
+ optional :json_matcher, :enum, 2, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption"
111
+ end
112
+ add_enum "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption" do
113
+ value :JSON_PATH_MATCHER_OPTION_UNSPECIFIED, 0
114
+ value :EXACT_MATCH, 1
115
+ value :REGEX_MATCH, 2
78
116
  end
79
117
  add_enum "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption" do
80
118
  value :CONTENT_MATCHER_OPTION_UNSPECIFIED, 0
@@ -82,6 +120,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
82
120
  value :NOT_CONTAINS_STRING, 2
83
121
  value :MATCHES_REGEX, 3
84
122
  value :NOT_MATCHES_REGEX, 4
123
+ value :MATCHES_JSON_PATH, 5
124
+ value :NOT_MATCHES_JSON_PATH, 6
125
+ end
126
+ add_enum "google.monitoring.v3.UptimeCheckConfig.CheckerType" do
127
+ value :CHECKER_TYPE_UNSPECIFIED, 0
128
+ value :STATIC_IP_CHECKERS, 1
129
+ value :VPC_CHECKERS, 3
85
130
  end
86
131
  add_message "google.monitoring.v3.UptimeCheckIp" do
87
132
  optional :region, :enum, 1, "google.monitoring.v3.UptimeCheckRegion"
@@ -94,6 +139,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
94
139
  value :EUROPE, 2
95
140
  value :SOUTH_AMERICA, 3
96
141
  value :ASIA_PACIFIC, 4
142
+ value :USA_OREGON, 5
143
+ value :USA_IOWA, 6
144
+ value :USA_VIRGINIA, 7
97
145
  end
98
146
  add_enum "google.monitoring.v3.GroupResourceType" do
99
147
  value :RESOURCE_TYPE_UNSPECIFIED, 0
@@ -111,13 +159,19 @@ module Google
111
159
  InternalChecker::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.InternalChecker.State").enummodule
112
160
  UptimeCheckConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig").msgclass
113
161
  UptimeCheckConfig::ResourceGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ResourceGroup").msgclass
162
+ UptimeCheckConfig::PingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.PingConfig").msgclass
114
163
  UptimeCheckConfig::HttpCheck = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck").msgclass
115
164
  UptimeCheckConfig::HttpCheck::BasicAuthentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication").msgclass
165
+ UptimeCheckConfig::HttpCheck::ResponseStatusCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode").msgclass
166
+ UptimeCheckConfig::HttpCheck::ResponseStatusCode::StatusClass = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass").enummodule
116
167
  UptimeCheckConfig::HttpCheck::RequestMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.RequestMethod").enummodule
117
168
  UptimeCheckConfig::HttpCheck::ContentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.ContentType").enummodule
118
169
  UptimeCheckConfig::TcpCheck = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.TcpCheck").msgclass
119
170
  UptimeCheckConfig::ContentMatcher = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ContentMatcher").msgclass
171
+ UptimeCheckConfig::ContentMatcher::JsonPathMatcher = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher").msgclass
172
+ UptimeCheckConfig::ContentMatcher::JsonPathMatcher::JsonPathMatcherOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ContentMatcher.JsonPathMatcher.JsonPathMatcherOption").enummodule
120
173
  UptimeCheckConfig::ContentMatcher::ContentMatcherOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption").enummodule
174
+ UptimeCheckConfig::CheckerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.CheckerType").enummodule
121
175
  UptimeCheckIp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckIp").msgclass
122
176
  UptimeCheckRegion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckRegion").enummodule
123
177
  GroupResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GroupResourceType").enummodule
@@ -15,6 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/monitoring/v3/uptime_service.proto", :syntax => :proto3) do
16
16
  add_message "google.monitoring.v3.ListUptimeCheckConfigsRequest" do
17
17
  optional :parent, :string, 1
18
+ optional :filter, :string, 2
18
19
  optional :page_size, :int32, 3
19
20
  optional :page_token, :string, 4
20
21
  end