google-cloud-monitoring 0.29.3 → 0.29.4
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/.yardopts +2 -0
- data/AUTHENTICATION.md +199 -0
- data/README.md +3 -3
- data/lib/google/cloud/monitoring.rb +3 -3
- data/lib/google/cloud/monitoring/v3.rb +3 -3
- data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +45 -30
- data/lib/google/cloud/monitoring/v3/doc/google/api/distribution.rb +1 -1
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +8 -4
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/common.rb +7 -4
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group.rb +2 -1
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification.rb +5 -3
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification_service.rb +2 -1
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/any.rb +2 -1
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/field_mask.rb +18 -26
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/timestamp.rb +15 -13
- data/lib/google/cloud/monitoring/v3/doc/google/rpc/status.rb +17 -14
- data/lib/google/cloud/monitoring/v3/group_service_client.rb +52 -34
- data/lib/google/cloud/monitoring/v3/metric_service_client.rb +75 -46
- data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +60 -38
- data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +34 -19
- data/lib/google/monitoring/v3/metric_service_services_pb.rb +10 -5
- metadata +6 -6
@@ -219,27 +219,42 @@ module Google
|
|
219
219
|
@list_uptime_check_configs = Google::Gax.create_api_call(
|
220
220
|
@uptime_check_service_stub.method(:list_uptime_check_configs),
|
221
221
|
defaults["list_uptime_check_configs"],
|
222
|
-
exception_transformer: exception_transformer
|
222
|
+
exception_transformer: exception_transformer,
|
223
|
+
params_extractor: proc do |request|
|
224
|
+
{'parent' => request.parent}
|
225
|
+
end
|
223
226
|
)
|
224
227
|
@get_uptime_check_config = Google::Gax.create_api_call(
|
225
228
|
@uptime_check_service_stub.method(:get_uptime_check_config),
|
226
229
|
defaults["get_uptime_check_config"],
|
227
|
-
exception_transformer: exception_transformer
|
230
|
+
exception_transformer: exception_transformer,
|
231
|
+
params_extractor: proc do |request|
|
232
|
+
{'name' => request.name}
|
233
|
+
end
|
228
234
|
)
|
229
235
|
@create_uptime_check_config = Google::Gax.create_api_call(
|
230
236
|
@uptime_check_service_stub.method(:create_uptime_check_config),
|
231
237
|
defaults["create_uptime_check_config"],
|
232
|
-
exception_transformer: exception_transformer
|
238
|
+
exception_transformer: exception_transformer,
|
239
|
+
params_extractor: proc do |request|
|
240
|
+
{'parent' => request.parent}
|
241
|
+
end
|
233
242
|
)
|
234
243
|
@update_uptime_check_config = Google::Gax.create_api_call(
|
235
244
|
@uptime_check_service_stub.method(:update_uptime_check_config),
|
236
245
|
defaults["update_uptime_check_config"],
|
237
|
-
exception_transformer: exception_transformer
|
246
|
+
exception_transformer: exception_transformer,
|
247
|
+
params_extractor: proc do |request|
|
248
|
+
{'uptime_check_config.name' => request.uptime_check_config.name}
|
249
|
+
end
|
238
250
|
)
|
239
251
|
@delete_uptime_check_config = Google::Gax.create_api_call(
|
240
252
|
@uptime_check_service_stub.method(:delete_uptime_check_config),
|
241
253
|
defaults["delete_uptime_check_config"],
|
242
|
-
exception_transformer: exception_transformer
|
254
|
+
exception_transformer: exception_transformer,
|
255
|
+
params_extractor: proc do |request|
|
256
|
+
{'name' => request.name}
|
257
|
+
end
|
243
258
|
)
|
244
259
|
@list_uptime_check_ips = Google::Gax.create_api_call(
|
245
260
|
@uptime_check_service_stub.method(:list_uptime_check_ips),
|
@@ -277,16 +292,16 @@ module Google
|
|
277
292
|
# @example
|
278
293
|
# require "google/cloud/monitoring"
|
279
294
|
#
|
280
|
-
#
|
295
|
+
# uptime_check_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
|
281
296
|
# formatted_parent = Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.project_path("[PROJECT]")
|
282
297
|
#
|
283
298
|
# # Iterate over all results.
|
284
|
-
#
|
299
|
+
# uptime_check_client.list_uptime_check_configs(formatted_parent).each do |element|
|
285
300
|
# # Process element.
|
286
301
|
# end
|
287
302
|
#
|
288
303
|
# # Or iterate over results one page at a time.
|
289
|
-
#
|
304
|
+
# uptime_check_client.list_uptime_check_configs(formatted_parent).each_page do |page|
|
290
305
|
# # Process each page at a time.
|
291
306
|
# page.each do |element|
|
292
307
|
# # Process element.
|
@@ -322,9 +337,9 @@ module Google
|
|
322
337
|
# @example
|
323
338
|
# require "google/cloud/monitoring"
|
324
339
|
#
|
325
|
-
#
|
340
|
+
# uptime_check_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
|
326
341
|
# formatted_name = Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.uptime_check_config_path("[PROJECT]", "[UPTIME_CHECK_CONFIG]")
|
327
|
-
# response =
|
342
|
+
# response = uptime_check_client.get_uptime_check_config(formatted_name)
|
328
343
|
|
329
344
|
def get_uptime_check_config \
|
330
345
|
name,
|
@@ -357,12 +372,12 @@ module Google
|
|
357
372
|
# @example
|
358
373
|
# require "google/cloud/monitoring"
|
359
374
|
#
|
360
|
-
#
|
375
|
+
# uptime_check_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
|
361
376
|
# formatted_parent = Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.project_path("[PROJECT]")
|
362
377
|
#
|
363
378
|
# # TODO: Initialize `uptime_check_config`:
|
364
379
|
# uptime_check_config = {}
|
365
|
-
# response =
|
380
|
+
# response = uptime_check_client.create_uptime_check_config(formatted_parent, uptime_check_config)
|
366
381
|
|
367
382
|
def create_uptime_check_config \
|
368
383
|
parent,
|
@@ -414,11 +429,11 @@ module Google
|
|
414
429
|
# @example
|
415
430
|
# require "google/cloud/monitoring"
|
416
431
|
#
|
417
|
-
#
|
432
|
+
# uptime_check_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
|
418
433
|
#
|
419
434
|
# # TODO: Initialize `uptime_check_config`:
|
420
435
|
# uptime_check_config = {}
|
421
|
-
# response =
|
436
|
+
# response = uptime_check_client.update_uptime_check_config(uptime_check_config)
|
422
437
|
|
423
438
|
def update_uptime_check_config \
|
424
439
|
uptime_check_config,
|
@@ -450,9 +465,9 @@ module Google
|
|
450
465
|
# @example
|
451
466
|
# require "google/cloud/monitoring"
|
452
467
|
#
|
453
|
-
#
|
468
|
+
# uptime_check_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
|
454
469
|
# formatted_name = Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.uptime_check_config_path("[PROJECT]", "[UPTIME_CHECK_CONFIG]")
|
455
|
-
#
|
470
|
+
# uptime_check_client.delete_uptime_check_config(formatted_name)
|
456
471
|
|
457
472
|
def delete_uptime_check_config \
|
458
473
|
name,
|
@@ -489,15 +504,15 @@ module Google
|
|
489
504
|
# @example
|
490
505
|
# require "google/cloud/monitoring"
|
491
506
|
#
|
492
|
-
#
|
507
|
+
# uptime_check_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
|
493
508
|
#
|
494
509
|
# # Iterate over all results.
|
495
|
-
#
|
510
|
+
# uptime_check_client.list_uptime_check_ips.each do |element|
|
496
511
|
# # Process element.
|
497
512
|
# end
|
498
513
|
#
|
499
514
|
# # Or iterate over results one page at a time.
|
500
|
-
#
|
515
|
+
# uptime_check_client.list_uptime_check_ips.each_page do |page|
|
501
516
|
# # Process each page at a time.
|
502
517
|
# page.each do |element|
|
503
518
|
# # Process element.
|
@@ -35,13 +35,17 @@ module Google
|
|
35
35
|
self.unmarshal_class_method = :decode
|
36
36
|
self.service_name = 'google.monitoring.v3.MetricService'
|
37
37
|
|
38
|
-
# Lists monitored resource descriptors that match a filter. This method does
|
38
|
+
# Lists monitored resource descriptors that match a filter. This method does
|
39
|
+
# not require a Stackdriver account.
|
39
40
|
rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
|
40
|
-
# Gets a single monitored resource descriptor. This method does not require a
|
41
|
+
# Gets a single monitored resource descriptor. This method does not require a
|
42
|
+
# Stackdriver account.
|
41
43
|
rpc :GetMonitoredResourceDescriptor, GetMonitoredResourceDescriptorRequest, Google::Api::MonitoredResourceDescriptor
|
42
|
-
# Lists metric descriptors that match a filter. This method does not require
|
44
|
+
# Lists metric descriptors that match a filter. This method does not require
|
45
|
+
# a Stackdriver account.
|
43
46
|
rpc :ListMetricDescriptors, ListMetricDescriptorsRequest, ListMetricDescriptorsResponse
|
44
|
-
# Gets a single metric descriptor. This method does not require a Stackdriver
|
47
|
+
# Gets a single metric descriptor. This method does not require a Stackdriver
|
48
|
+
# account.
|
45
49
|
rpc :GetMetricDescriptor, GetMetricDescriptorRequest, Google::Api::MetricDescriptor
|
46
50
|
# Creates a new metric descriptor.
|
47
51
|
# User-created metric descriptors define
|
@@ -50,7 +54,8 @@ module Google
|
|
50
54
|
# Deletes a metric descriptor. Only user-created
|
51
55
|
# [custom metrics](/monitoring/custom-metrics) can be deleted.
|
52
56
|
rpc :DeleteMetricDescriptor, DeleteMetricDescriptorRequest, Google::Protobuf::Empty
|
53
|
-
# Lists time series that match a filter. This method does not require a
|
57
|
+
# Lists time series that match a filter. This method does not require a
|
58
|
+
# Stackdriver account.
|
54
59
|
rpc :ListTimeSeries, ListTimeSeriesRequest, ListTimeSeriesResponse
|
55
60
|
# Creates or adds data to one or more time series.
|
56
61
|
# The response is empty if all time series in the request were written.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.29.
|
4
|
+
version: 0.29.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.64.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.64.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,6 +116,7 @@ extensions: []
|
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
118
|
- ".yardopts"
|
119
|
+
- AUTHENTICATION.md
|
119
120
|
- LICENSE
|
120
121
|
- README.md
|
121
122
|
- lib/google-cloud-monitoring.rb
|
@@ -194,8 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
195
|
- !ruby/object:Gem::Version
|
195
196
|
version: '0'
|
196
197
|
requirements: []
|
197
|
-
|
198
|
-
rubygems_version: 2.7.6
|
198
|
+
rubygems_version: 3.0.3
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: API Client library for Stackdriver Monitoring API
|