google-cloud-monitoring 0.28.0 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/README.md +38 -12
- data/lib/google/cloud/monitoring.rb +52 -2
- data/lib/google/cloud/monitoring/v3.rb +124 -52
- data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +67 -29
- data/lib/google/cloud/monitoring/v3/credentials.rb +43 -0
- data/lib/google/cloud/monitoring/v3/doc/google/api/metric.rb +7 -11
- data/lib/google/cloud/monitoring/v3/doc/google/api/monitored_resource.rb +27 -3
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +7 -8
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb +135 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group_service.rb +145 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb +17 -12
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb +227 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification_service.rb +213 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +49 -29
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb +131 -0
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/any.rb +124 -0
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/empty.rb +28 -0
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/struct.rb +73 -0
- data/lib/google/cloud/monitoring/v3/doc/google/rpc/status.rb +83 -0
- data/lib/google/cloud/monitoring/v3/doc/overview.rb +26 -1
- data/lib/google/cloud/monitoring/v3/group_service_client.rb +78 -35
- data/lib/google/cloud/monitoring/v3/metric_service_client.rb +99 -47
- data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +87 -39
- data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +90 -47
- data/lib/google/monitoring/v3/alert_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/dropped_labels_pb.rb +19 -0
- data/lib/google/monitoring/v3/group_service_services_pb.rb +2 -2
- data/lib/google/monitoring/v3/metric_pb.rb +3 -0
- data/lib/google/monitoring/v3/metric_service_pb.rb +2 -0
- data/lib/google/monitoring/v3/metric_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/notification_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/span_context_pb.rb +18 -0
- data/lib/google/monitoring/v3/uptime_pb.rb +10 -9
- data/lib/google/monitoring/v3/uptime_service_pb.rb +1 -0
- data/lib/google/monitoring/v3/uptime_service_services_pb.rb +1 -1
- metadata +59 -6
- data/lib/google/cloud/monitoring/credentials.rb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e227a25f90e3c7200e264fcd37e795b7de083f2f7c4652c20809f6a1973a2468
|
4
|
+
data.tar.gz: 10d1553376406242fad4b433e91861b9dc2f4e84488f052584fb87c561cf6672
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1bbd4236966dc0b2b90e1755ccf8dfafe2a533ff9fda90e384ef8700c4df62c19224cc71d08060da2e39f9f4f5a128717e2589bbfdede703efe80d1ba0399a3
|
7
|
+
data.tar.gz: 4bfded835d310bd2538b94bfd224ccce4cd78b7f06e03d52863724a438059d7147c57869905354dad47a35b5acb4bbcf00ea712d7b061f6c29dc0a101e40cf84
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -13,7 +13,7 @@ steps:
|
|
13
13
|
|
14
14
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
15
15
|
2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
16
|
-
3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/
|
16
|
+
3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
|
17
17
|
4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
18
18
|
|
19
19
|
### Installation
|
@@ -43,17 +43,6 @@ metric_service_client.list_monitored_resource_descriptors(formatted_name).each_p
|
|
43
43
|
end
|
44
44
|
```
|
45
45
|
|
46
|
-
### Supported Ruby Versions
|
47
|
-
|
48
|
-
This library is supported on Ruby 2.0+.
|
49
|
-
|
50
|
-
However, Ruby 2.3 or later is strongly recommended, as earlier releases have
|
51
|
-
reached or are nearing end-of-life. After June 1, 2018, Google will provide
|
52
|
-
official support only for Ruby versions that are considered current and
|
53
|
-
supported by Ruby Core (that is, Ruby versions that are either in normal
|
54
|
-
maintenance or in security maintenance).
|
55
|
-
See https://www.ruby-lang.org/en/downloads/branches/ for further details.
|
56
|
-
|
57
46
|
### Next Steps
|
58
47
|
- Read the [Client Library Documentation][] for Stackdriver Monitoring API
|
59
48
|
to see other available methods on the client.
|
@@ -64,3 +53,40 @@ See https://www.ruby-lang.org/en/downloads/branches/ for further details.
|
|
64
53
|
|
65
54
|
[Client Library Documentation]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-monitoring/latest/google/monitoring/v3
|
66
55
|
[Product Documentation]: https://cloud.google.com/monitoring
|
56
|
+
|
57
|
+
## Enabling Logging
|
58
|
+
|
59
|
+
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
60
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
61
|
+
or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
62
|
+
that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
63
|
+
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
64
|
+
|
65
|
+
Configuring a Ruby stdlib logger:
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
require "logger"
|
69
|
+
|
70
|
+
module MyLogger
|
71
|
+
LOGGER = Logger.new $stderr, level: Logger::WARN
|
72
|
+
def logger
|
73
|
+
LOGGER
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
78
|
+
module GRPC
|
79
|
+
extend MyLogger
|
80
|
+
end
|
81
|
+
```
|
82
|
+
|
83
|
+
## Supported Ruby Versions
|
84
|
+
|
85
|
+
This library is supported on Ruby 2.3+.
|
86
|
+
|
87
|
+
Google provides official support for Ruby versions that are actively supported
|
88
|
+
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
89
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.3
|
90
|
+
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
91
|
+
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
92
|
+
about the Ruby support schedule.
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
#
|
35
35
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
36
36
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
37
|
-
# 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/
|
37
|
+
# 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
|
38
38
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
39
39
|
#
|
40
40
|
# ### Preview
|
@@ -67,6 +67,31 @@ module Google
|
|
67
67
|
#
|
68
68
|
# [Product Documentation]: https://cloud.google.com/monitoring
|
69
69
|
#
|
70
|
+
# ## Enabling Logging
|
71
|
+
#
|
72
|
+
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
73
|
+
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
74
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
75
|
+
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
76
|
+
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
77
|
+
#
|
78
|
+
# Configuring a Ruby stdlib logger:
|
79
|
+
#
|
80
|
+
# ```ruby
|
81
|
+
# require "logger"
|
82
|
+
#
|
83
|
+
# module MyLogger
|
84
|
+
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
85
|
+
# def logger
|
86
|
+
# LOGGER
|
87
|
+
# end
|
88
|
+
# end
|
89
|
+
#
|
90
|
+
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
91
|
+
# module GRPC
|
92
|
+
# extend MyLogger
|
93
|
+
# end
|
94
|
+
# ```
|
70
95
|
#
|
71
96
|
module Monitoring
|
72
97
|
# rubocop:enable LineLength
|
@@ -119,6 +144,11 @@ module Google
|
|
119
144
|
# or the specified config is missing data points.
|
120
145
|
# @param timeout [Numeric]
|
121
146
|
# The default timeout, in seconds, for calls made through this client.
|
147
|
+
# @param metadata [Hash]
|
148
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
149
|
+
# @param exception_transformer [Proc]
|
150
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
151
|
+
# custom error handling.
|
122
152
|
def self.new(*args, version: :v3, **kwargs)
|
123
153
|
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
124
154
|
raise "The version: #{version} is not available. The available versions " \
|
@@ -137,7 +167,7 @@ module Google
|
|
137
167
|
module Group
|
138
168
|
##
|
139
169
|
# The Group API lets you inspect and manage your
|
140
|
-
# [groups](https://cloud.google.
|
170
|
+
# [groups](https://cloud.google.com#google.monitoring.v3.Group).
|
141
171
|
#
|
142
172
|
# A group is a named filter that is used to identify
|
143
173
|
# a collection of monitored resources. Groups are typically used to
|
@@ -177,6 +207,11 @@ module Google
|
|
177
207
|
# or the specified config is missing data points.
|
178
208
|
# @param timeout [Numeric]
|
179
209
|
# The default timeout, in seconds, for calls made through this client.
|
210
|
+
# @param metadata [Hash]
|
211
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
212
|
+
# @param exception_transformer [Proc]
|
213
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
214
|
+
# custom error handling.
|
180
215
|
def self.new(*args, version: :v3, **kwargs)
|
181
216
|
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
182
217
|
raise "The version: #{version} is not available. The available versions " \
|
@@ -225,6 +260,11 @@ module Google
|
|
225
260
|
# or the specified config is missing data points.
|
226
261
|
# @param timeout [Numeric]
|
227
262
|
# The default timeout, in seconds, for calls made through this client.
|
263
|
+
# @param metadata [Hash]
|
264
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
265
|
+
# @param exception_transformer [Proc]
|
266
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
267
|
+
# custom error handling.
|
228
268
|
def self.new(*args, version: :v3, **kwargs)
|
229
269
|
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
230
270
|
raise "The version: #{version} is not available. The available versions " \
|
@@ -273,6 +313,11 @@ module Google
|
|
273
313
|
# or the specified config is missing data points.
|
274
314
|
# @param timeout [Numeric]
|
275
315
|
# The default timeout, in seconds, for calls made through this client.
|
316
|
+
# @param metadata [Hash]
|
317
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
318
|
+
# @param exception_transformer [Proc]
|
319
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
320
|
+
# custom error handling.
|
276
321
|
def self.new(*args, version: :v3, **kwargs)
|
277
322
|
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
278
323
|
raise "The version: #{version} is not available. The available versions " \
|
@@ -327,6 +372,11 @@ module Google
|
|
327
372
|
# or the specified config is missing data points.
|
328
373
|
# @param timeout [Numeric]
|
329
374
|
# The default timeout, in seconds, for calls made through this client.
|
375
|
+
# @param metadata [Hash]
|
376
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
377
|
+
# @param exception_transformer [Proc]
|
378
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
379
|
+
# custom error handling.
|
330
380
|
def self.new(*args, version: :v3, **kwargs)
|
331
381
|
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
332
382
|
raise "The version: #{version} is not available. The available versions " \
|
@@ -17,61 +17,88 @@ require "google/cloud/monitoring/v3/group_service_client"
|
|
17
17
|
require "google/cloud/monitoring/v3/metric_service_client"
|
18
18
|
require "google/cloud/monitoring/v3/notification_channel_service_client"
|
19
19
|
require "google/cloud/monitoring/v3/uptime_check_service_client"
|
20
|
+
require "google/monitoring/v3/span_context_pb"
|
21
|
+
require "google/monitoring/v3/dropped_labels_pb"
|
20
22
|
|
21
23
|
module Google
|
22
24
|
module Cloud
|
23
|
-
# rubocop:disable LineLength
|
24
|
-
|
25
|
-
##
|
26
|
-
# # Ruby Client for Stackdriver Monitoring API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
|
27
|
-
#
|
28
|
-
# [Stackdriver Monitoring API][Product Documentation]:
|
29
|
-
# Manages your Stackdriver Monitoring data and configurations. Most projects
|
30
|
-
# must be associated with a Stackdriver account, with a few exceptions as
|
31
|
-
# noted on the individual method pages.
|
32
|
-
# - [Product Documentation][]
|
33
|
-
#
|
34
|
-
# ## Quick Start
|
35
|
-
# In order to use this library, you first need to go through the following
|
36
|
-
# steps:
|
37
|
-
#
|
38
|
-
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
39
|
-
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
40
|
-
# 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/api/monitoring)
|
41
|
-
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
42
|
-
#
|
43
|
-
# ### Preview
|
44
|
-
# #### MetricServiceClient
|
45
|
-
# ```rb
|
46
|
-
# require "google/cloud/monitoring/v3"
|
47
|
-
#
|
48
|
-
# metric_service_client = Google::Cloud::Monitoring::V3::Metric.new
|
49
|
-
# formatted_name = Google::Cloud::Monitoring::V3::MetricServiceClient.project_path(project_id)
|
50
|
-
#
|
51
|
-
# # Iterate over all results.
|
52
|
-
# metric_service_client.list_monitored_resource_descriptors(formatted_name).each do |element|
|
53
|
-
# # Process element.
|
54
|
-
# end
|
55
|
-
#
|
56
|
-
# # Or iterate over results one page at a time.
|
57
|
-
# metric_service_client.list_monitored_resource_descriptors(formatted_name).each_page do |page|
|
58
|
-
# # Process each page at a time.
|
59
|
-
# page.each do |element|
|
60
|
-
# # Process element.
|
61
|
-
# end
|
62
|
-
# end
|
63
|
-
# ```
|
64
|
-
#
|
65
|
-
# ### Next Steps
|
66
|
-
# - Read the [Stackdriver Monitoring API Product documentation][Product Documentation]
|
67
|
-
# to learn more about the product and see How-to Guides.
|
68
|
-
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
|
69
|
-
# to see the full list of Cloud APIs that we cover.
|
70
|
-
#
|
71
|
-
# [Product Documentation]: https://cloud.google.com/monitoring
|
72
|
-
#
|
73
|
-
#
|
74
25
|
module Monitoring
|
26
|
+
# rubocop:disable LineLength
|
27
|
+
|
28
|
+
##
|
29
|
+
# # Ruby Client for Stackdriver Monitoring API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
|
30
|
+
#
|
31
|
+
# [Stackdriver Monitoring API][Product Documentation]:
|
32
|
+
# Manages your Stackdriver Monitoring data and configurations. Most projects
|
33
|
+
# must be associated with a Stackdriver account, with a few exceptions as
|
34
|
+
# noted on the individual method pages.
|
35
|
+
# - [Product Documentation][]
|
36
|
+
#
|
37
|
+
# ## Quick Start
|
38
|
+
# In order to use this library, you first need to go through the following
|
39
|
+
# steps:
|
40
|
+
#
|
41
|
+
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
42
|
+
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
43
|
+
# 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
|
44
|
+
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
45
|
+
#
|
46
|
+
# ### Preview
|
47
|
+
# #### MetricServiceClient
|
48
|
+
# ```rb
|
49
|
+
# require "google/cloud/monitoring"
|
50
|
+
#
|
51
|
+
# metric_service_client = Google::Cloud::Monitoring::Metric.new(version: :v3)
|
52
|
+
# formatted_name = Google::Cloud::Monitoring::V3::MetricServiceClient.project_path(project_id)
|
53
|
+
#
|
54
|
+
# # Iterate over all results.
|
55
|
+
# metric_service_client.list_monitored_resource_descriptors(formatted_name).each do |element|
|
56
|
+
# # Process element.
|
57
|
+
# end
|
58
|
+
#
|
59
|
+
# # Or iterate over results one page at a time.
|
60
|
+
# metric_service_client.list_monitored_resource_descriptors(formatted_name).each_page do |page|
|
61
|
+
# # Process each page at a time.
|
62
|
+
# page.each do |element|
|
63
|
+
# # Process element.
|
64
|
+
# end
|
65
|
+
# end
|
66
|
+
# ```
|
67
|
+
#
|
68
|
+
# ### Next Steps
|
69
|
+
# - Read the [Stackdriver Monitoring API Product documentation][Product Documentation]
|
70
|
+
# to learn more about the product and see How-to Guides.
|
71
|
+
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
|
72
|
+
# to see the full list of Cloud APIs that we cover.
|
73
|
+
#
|
74
|
+
# [Product Documentation]: https://cloud.google.com/monitoring
|
75
|
+
#
|
76
|
+
# ## Enabling Logging
|
77
|
+
#
|
78
|
+
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
79
|
+
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
80
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
81
|
+
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
82
|
+
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
83
|
+
#
|
84
|
+
# Configuring a Ruby stdlib logger:
|
85
|
+
#
|
86
|
+
# ```ruby
|
87
|
+
# require "logger"
|
88
|
+
#
|
89
|
+
# module MyLogger
|
90
|
+
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
91
|
+
# def logger
|
92
|
+
# LOGGER
|
93
|
+
# end
|
94
|
+
# end
|
95
|
+
#
|
96
|
+
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
97
|
+
# module GRPC
|
98
|
+
# extend MyLogger
|
99
|
+
# end
|
100
|
+
# ```
|
101
|
+
#
|
75
102
|
module V3
|
76
103
|
# rubocop:enable LineLength
|
77
104
|
|
@@ -111,11 +138,18 @@ module Google
|
|
111
138
|
# or the specified config is missing data points.
|
112
139
|
# @param timeout [Numeric]
|
113
140
|
# The default timeout, in seconds, for calls made through this client.
|
141
|
+
# @param metadata [Hash]
|
142
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
143
|
+
# @param exception_transformer [Proc]
|
144
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
145
|
+
# custom error handling.
|
114
146
|
def self.new \
|
115
147
|
credentials: nil,
|
116
148
|
scopes: nil,
|
117
149
|
client_config: nil,
|
118
150
|
timeout: nil,
|
151
|
+
metadata: nil,
|
152
|
+
exception_transformer: nil,
|
119
153
|
lib_name: nil,
|
120
154
|
lib_version: nil
|
121
155
|
kwargs = {
|
@@ -123,6 +157,8 @@ module Google
|
|
123
157
|
scopes: scopes,
|
124
158
|
client_config: client_config,
|
125
159
|
timeout: timeout,
|
160
|
+
metadata: metadata,
|
161
|
+
exception_transformer: exception_transformer,
|
126
162
|
lib_name: lib_name,
|
127
163
|
lib_version: lib_version
|
128
164
|
}.select { |_, v| v != nil }
|
@@ -133,7 +169,7 @@ module Google
|
|
133
169
|
module Group
|
134
170
|
##
|
135
171
|
# The Group API lets you inspect and manage your
|
136
|
-
# [groups](https://cloud.google.
|
172
|
+
# [groups](https://cloud.google.com#google.monitoring.v3.Group).
|
137
173
|
#
|
138
174
|
# A group is a named filter that is used to identify
|
139
175
|
# a collection of monitored resources. Groups are typically used to
|
@@ -169,11 +205,18 @@ module Google
|
|
169
205
|
# or the specified config is missing data points.
|
170
206
|
# @param timeout [Numeric]
|
171
207
|
# The default timeout, in seconds, for calls made through this client.
|
208
|
+
# @param metadata [Hash]
|
209
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
210
|
+
# @param exception_transformer [Proc]
|
211
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
212
|
+
# custom error handling.
|
172
213
|
def self.new \
|
173
214
|
credentials: nil,
|
174
215
|
scopes: nil,
|
175
216
|
client_config: nil,
|
176
217
|
timeout: nil,
|
218
|
+
metadata: nil,
|
219
|
+
exception_transformer: nil,
|
177
220
|
lib_name: nil,
|
178
221
|
lib_version: nil
|
179
222
|
kwargs = {
|
@@ -181,6 +224,8 @@ module Google
|
|
181
224
|
scopes: scopes,
|
182
225
|
client_config: client_config,
|
183
226
|
timeout: timeout,
|
227
|
+
metadata: metadata,
|
228
|
+
exception_transformer: exception_transformer,
|
184
229
|
lib_name: lib_name,
|
185
230
|
lib_version: lib_version
|
186
231
|
}.select { |_, v| v != nil }
|
@@ -217,11 +262,18 @@ module Google
|
|
217
262
|
# or the specified config is missing data points.
|
218
263
|
# @param timeout [Numeric]
|
219
264
|
# The default timeout, in seconds, for calls made through this client.
|
265
|
+
# @param metadata [Hash]
|
266
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
267
|
+
# @param exception_transformer [Proc]
|
268
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
269
|
+
# custom error handling.
|
220
270
|
def self.new \
|
221
271
|
credentials: nil,
|
222
272
|
scopes: nil,
|
223
273
|
client_config: nil,
|
224
274
|
timeout: nil,
|
275
|
+
metadata: nil,
|
276
|
+
exception_transformer: nil,
|
225
277
|
lib_name: nil,
|
226
278
|
lib_version: nil
|
227
279
|
kwargs = {
|
@@ -229,6 +281,8 @@ module Google
|
|
229
281
|
scopes: scopes,
|
230
282
|
client_config: client_config,
|
231
283
|
timeout: timeout,
|
284
|
+
metadata: metadata,
|
285
|
+
exception_transformer: exception_transformer,
|
232
286
|
lib_name: lib_name,
|
233
287
|
lib_version: lib_version
|
234
288
|
}.select { |_, v| v != nil }
|
@@ -265,11 +319,18 @@ module Google
|
|
265
319
|
# or the specified config is missing data points.
|
266
320
|
# @param timeout [Numeric]
|
267
321
|
# The default timeout, in seconds, for calls made through this client.
|
322
|
+
# @param metadata [Hash]
|
323
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
324
|
+
# @param exception_transformer [Proc]
|
325
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
326
|
+
# custom error handling.
|
268
327
|
def self.new \
|
269
328
|
credentials: nil,
|
270
329
|
scopes: nil,
|
271
330
|
client_config: nil,
|
272
331
|
timeout: nil,
|
332
|
+
metadata: nil,
|
333
|
+
exception_transformer: nil,
|
273
334
|
lib_name: nil,
|
274
335
|
lib_version: nil
|
275
336
|
kwargs = {
|
@@ -277,6 +338,8 @@ module Google
|
|
277
338
|
scopes: scopes,
|
278
339
|
client_config: client_config,
|
279
340
|
timeout: timeout,
|
341
|
+
metadata: metadata,
|
342
|
+
exception_transformer: exception_transformer,
|
280
343
|
lib_name: lib_name,
|
281
344
|
lib_version: lib_version
|
282
345
|
}.select { |_, v| v != nil }
|
@@ -319,11 +382,18 @@ module Google
|
|
319
382
|
# or the specified config is missing data points.
|
320
383
|
# @param timeout [Numeric]
|
321
384
|
# The default timeout, in seconds, for calls made through this client.
|
385
|
+
# @param metadata [Hash]
|
386
|
+
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
387
|
+
# @param exception_transformer [Proc]
|
388
|
+
# An optional proc that intercepts any exceptions raised during an API call to inject
|
389
|
+
# custom error handling.
|
322
390
|
def self.new \
|
323
391
|
credentials: nil,
|
324
392
|
scopes: nil,
|
325
393
|
client_config: nil,
|
326
394
|
timeout: nil,
|
395
|
+
metadata: nil,
|
396
|
+
exception_transformer: nil,
|
327
397
|
lib_name: nil,
|
328
398
|
lib_version: nil
|
329
399
|
kwargs = {
|
@@ -331,6 +401,8 @@ module Google
|
|
331
401
|
scopes: scopes,
|
332
402
|
client_config: client_config,
|
333
403
|
timeout: timeout,
|
404
|
+
metadata: metadata,
|
405
|
+
exception_transformer: exception_transformer,
|
334
406
|
lib_name: lib_name,
|
335
407
|
lib_version: lib_version
|
336
408
|
}.select { |_, v| v != nil }
|