google-cloud-monitoring 1.4.1 → 1.5.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: 26a9253f79e9630ebe42f038780f43d41ffb5d203a0f6cb55ae3fb8958864e0b
4
- data.tar.gz: 82a400b54d150526acc8ae09fc8c8db14aa86b3bd5b53bb0f635f703d6e1fb25
3
+ metadata.gz: fd825510684ee244ad771e2c4865dbad7156fceea3ef5e6f2cab3bfb115317c7
4
+ data.tar.gz: 5d956c27b914e0bbbb3a3f742ea7f370eedf342a04a150b511e5df36f79235b5
5
5
  SHA512:
6
- metadata.gz: f7c20de568035d84692fd073aa1d3d978860810b49bc6de0679afb182625919ed11cac873e6ea7da63fd2110af3914a06d3e4348a38a52dc47effc2e5fede2e8
7
- data.tar.gz: 4b4d059f895399b9494e4b3f2b4bf63ea77c1e6bad01dbd7cda0ae1c6f22fcd0d428f5720323f777e0c934e613a6d7d201619f5ca9980a3d8311066bc9bb69ba
6
+ metadata.gz: f1749a45b54203250c24cd3bf96c56556d879c255d745ce60b1b6be4575db8435c0ad57d2211b1c0c84a19e4685631da8038c79780e3eda57dfeaab88a3265a1
7
+ data.tar.gz: 78a6e46529630b102d962d65d9595a264e0f94b788855ba22d04544b5c8d475b8ec4353ca58ad7d844e53d1be4aa532a2c423f5728121480596b18431d1ecf0e
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -47,7 +47,7 @@ See the {file:MIGRATING.md MIGRATING.md} document for more information.
47
47
  ## Enabling Logging
48
48
 
49
49
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
50
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
51
51
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
52
52
  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)
53
53
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -50,8 +50,8 @@ module Google
50
50
  #
51
51
  # By default, this returns an instance of
52
52
  # [Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-dashboard-v1/latest/Google/Cloud/Monitoring/Dashboard/V1/DashboardsService/Client.html)
53
- # for version V1 of the API.
54
- # However, you can specify specify a different API version by passing it in the
53
+ # for a gRPC client for version V1 of the API.
54
+ # However, you can specify a different API version by passing it in the
55
55
  # `version` parameter. If the DashboardsService service is
56
56
  # supported by that API version, and the corresponding gem is available, the
57
57
  # appropriate versioned client will be returned.
@@ -63,7 +63,7 @@ module Google
63
63
  #
64
64
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
65
65
  # Defaults to `:v1`.
66
- # @return [DashboardsService::Client] A client object for the specified version.
66
+ # @return [::Object] A client object for the specified version.
67
67
  #
68
68
  def self.dashboards_service version: :v1, &block
69
69
  require "google/cloud/monitoring/dashboard/#{version.to_s.downcase}"
@@ -72,8 +72,8 @@ module Google
72
72
  .constants
73
73
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
74
74
  .first
75
- package_module = Google::Cloud::Monitoring::Dashboard.const_get package_name
76
- package_module.const_get(:DashboardsService).const_get(:Client).new(&block)
75
+ service_module = Google::Cloud::Monitoring::Dashboard.const_get(package_name).const_get(:DashboardsService)
76
+ service_module.const_get(:Client).new(&block)
77
77
  end
78
78
 
79
79
  ##
@@ -93,7 +93,7 @@ module Google
93
93
  # * `timeout` (*type:* `Numeric`) -
94
94
  # Default timeout in seconds.
95
95
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
96
- # Additional gRPC headers to be sent with the call.
96
+ # Additional headers to be sent with the call.
97
97
  # * `retry_policy` (*type:* `Hash`) -
98
98
  # The retry policy. The value is a hash with the following keys:
99
99
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -50,8 +50,8 @@ module Google
50
50
  #
51
51
  # By default, this returns an instance of
52
52
  # [Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client](https://googleapis.dev/ruby/google-cloud-monitoring-metrics_scope-v1/latest/Google/Cloud/Monitoring/MetricsScope/V1/MetricsScopes/Client.html)
53
- # for version V1 of the API.
54
- # However, you can specify specify a different API version by passing it in the
53
+ # for a gRPC client for version V1 of the API.
54
+ # However, you can specify a different API version by passing it in the
55
55
  # `version` parameter. If the MetricsScopes service is
56
56
  # supported by that API version, and the corresponding gem is available, the
57
57
  # appropriate versioned client will be returned.
@@ -63,7 +63,7 @@ module Google
63
63
  #
64
64
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
65
65
  # Defaults to `:v1`.
66
- # @return [MetricsScopes::Client] A client object for the specified version.
66
+ # @return [::Object] A client object for the specified version.
67
67
  #
68
68
  def self.metrics_scopes version: :v1, &block
69
69
  require "google/cloud/monitoring/metrics_scope/#{version.to_s.downcase}"
@@ -72,8 +72,8 @@ module Google
72
72
  .constants
73
73
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
74
74
  .first
75
- package_module = Google::Cloud::Monitoring::MetricsScope.const_get package_name
76
- package_module.const_get(:MetricsScopes).const_get(:Client).new(&block)
75
+ service_module = Google::Cloud::Monitoring::MetricsScope.const_get(package_name).const_get(:MetricsScopes)
76
+ service_module.const_get(:Client).new(&block)
77
77
  end
78
78
 
79
79
  ##
@@ -93,7 +93,7 @@ module Google
93
93
  # * `timeout` (*type:* `Numeric`) -
94
94
  # Default timeout in seconds.
95
95
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
96
- # Additional gRPC headers to be sent with the call.
96
+ # Additional headers to be sent with the call.
97
97
  # * `retry_policy` (*type:* `Hash`) -
98
98
  # The retry policy. The value is a hash with the following keys:
99
99
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Monitoring
23
- VERSION = "1.4.1"
23
+ VERSION = "1.5.0"
24
24
  end
25
25
  end
26
26
  end
@@ -49,8 +49,8 @@ module Google
49
49
  #
50
50
  # By default, this returns an instance of
51
51
  # [Google::Cloud::Monitoring::V3::AlertPolicyService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest/Google/Cloud/Monitoring/V3/AlertPolicyService/Client.html)
52
- # for version V3 of the API.
53
- # However, you can specify specify a different API version by passing it in the
52
+ # for a gRPC client for version V3 of the API.
53
+ # However, you can specify a different API version by passing it in the
54
54
  # `version` parameter. If the AlertPolicyService service is
55
55
  # supported by that API version, and the corresponding gem is available, the
56
56
  # appropriate versioned client will be returned.
@@ -69,7 +69,7 @@ module Google
69
69
  #
70
70
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
71
71
  # Defaults to `:v3`.
72
- # @return [AlertPolicyService::Client] A client object for the specified version.
72
+ # @return [::Object] A client object for the specified version.
73
73
  #
74
74
  def self.alert_policy_service version: :v3, &block
75
75
  require "google/cloud/monitoring/#{version.to_s.downcase}"
@@ -78,8 +78,8 @@ module Google
78
78
  .constants
79
79
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
80
80
  .first
81
- package_module = Google::Cloud::Monitoring.const_get package_name
82
- package_module.const_get(:AlertPolicyService).const_get(:Client).new(&block)
81
+ service_module = Google::Cloud::Monitoring.const_get(package_name).const_get(:AlertPolicyService)
82
+ service_module.const_get(:Client).new(&block)
83
83
  end
84
84
 
85
85
  ##
@@ -87,8 +87,8 @@ module Google
87
87
  #
88
88
  # By default, this returns an instance of
89
89
  # [Google::Cloud::Monitoring::V3::GroupService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest/Google/Cloud/Monitoring/V3/GroupService/Client.html)
90
- # for version V3 of the API.
91
- # However, you can specify specify a different API version by passing it in the
90
+ # for a gRPC client for version V3 of the API.
91
+ # However, you can specify a different API version by passing it in the
92
92
  # `version` parameter. If the GroupService service is
93
93
  # supported by that API version, and the corresponding gem is available, the
94
94
  # appropriate versioned client will be returned.
@@ -110,7 +110,7 @@ module Google
110
110
  #
111
111
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
112
112
  # Defaults to `:v3`.
113
- # @return [GroupService::Client] A client object for the specified version.
113
+ # @return [::Object] A client object for the specified version.
114
114
  #
115
115
  def self.group_service version: :v3, &block
116
116
  require "google/cloud/monitoring/#{version.to_s.downcase}"
@@ -119,8 +119,8 @@ module Google
119
119
  .constants
120
120
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
121
121
  .first
122
- package_module = Google::Cloud::Monitoring.const_get package_name
123
- package_module.const_get(:GroupService).const_get(:Client).new(&block)
122
+ service_module = Google::Cloud::Monitoring.const_get(package_name).const_get(:GroupService)
123
+ service_module.const_get(:Client).new(&block)
124
124
  end
125
125
 
126
126
  ##
@@ -128,8 +128,8 @@ module Google
128
128
  #
129
129
  # By default, this returns an instance of
130
130
  # [Google::Cloud::Monitoring::V3::MetricService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest/Google/Cloud/Monitoring/V3/MetricService/Client.html)
131
- # for version V3 of the API.
132
- # However, you can specify specify a different API version by passing it in the
131
+ # for a gRPC client for version V3 of the API.
132
+ # However, you can specify a different API version by passing it in the
133
133
  # `version` parameter. If the MetricService service is
134
134
  # supported by that API version, and the corresponding gem is available, the
135
135
  # appropriate versioned client will be returned.
@@ -141,7 +141,7 @@ module Google
141
141
  #
142
142
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
143
143
  # Defaults to `:v3`.
144
- # @return [MetricService::Client] A client object for the specified version.
144
+ # @return [::Object] A client object for the specified version.
145
145
  #
146
146
  def self.metric_service version: :v3, &block
147
147
  require "google/cloud/monitoring/#{version.to_s.downcase}"
@@ -150,8 +150,8 @@ module Google
150
150
  .constants
151
151
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
152
152
  .first
153
- package_module = Google::Cloud::Monitoring.const_get package_name
154
- package_module.const_get(:MetricService).const_get(:Client).new(&block)
153
+ service_module = Google::Cloud::Monitoring.const_get(package_name).const_get(:MetricService)
154
+ service_module.const_get(:Client).new(&block)
155
155
  end
156
156
 
157
157
  ##
@@ -159,8 +159,8 @@ module Google
159
159
  #
160
160
  # By default, this returns an instance of
161
161
  # [Google::Cloud::Monitoring::V3::NotificationChannelService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest/Google/Cloud/Monitoring/V3/NotificationChannelService/Client.html)
162
- # for version V3 of the API.
163
- # However, you can specify specify a different API version by passing it in the
162
+ # for a gRPC client for version V3 of the API.
163
+ # However, you can specify a different API version by passing it in the
164
164
  # `version` parameter. If the NotificationChannelService service is
165
165
  # supported by that API version, and the corresponding gem is available, the
166
166
  # appropriate versioned client will be returned.
@@ -172,7 +172,7 @@ module Google
172
172
  #
173
173
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
174
174
  # Defaults to `:v3`.
175
- # @return [NotificationChannelService::Client] A client object for the specified version.
175
+ # @return [::Object] A client object for the specified version.
176
176
  #
177
177
  def self.notification_channel_service version: :v3, &block
178
178
  require "google/cloud/monitoring/#{version.to_s.downcase}"
@@ -181,8 +181,8 @@ module Google
181
181
  .constants
182
182
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
183
183
  .first
184
- package_module = Google::Cloud::Monitoring.const_get package_name
185
- package_module.const_get(:NotificationChannelService).const_get(:Client).new(&block)
184
+ service_module = Google::Cloud::Monitoring.const_get(package_name).const_get(:NotificationChannelService)
185
+ service_module.const_get(:Client).new(&block)
186
186
  end
187
187
 
188
188
  ##
@@ -190,8 +190,8 @@ module Google
190
190
  #
191
191
  # By default, this returns an instance of
192
192
  # [Google::Cloud::Monitoring::V3::QueryService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest/Google/Cloud/Monitoring/V3/QueryService/Client.html)
193
- # for version V3 of the API.
194
- # However, you can specify specify a different API version by passing it in the
193
+ # for a gRPC client for version V3 of the API.
194
+ # However, you can specify a different API version by passing it in the
195
195
  # `version` parameter. If the QueryService service is
196
196
  # supported by that API version, and the corresponding gem is available, the
197
197
  # appropriate versioned client will be returned.
@@ -204,7 +204,7 @@ module Google
204
204
  #
205
205
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
206
206
  # Defaults to `:v3`.
207
- # @return [QueryService::Client] A client object for the specified version.
207
+ # @return [::Object] A client object for the specified version.
208
208
  #
209
209
  def self.query_service version: :v3, &block
210
210
  require "google/cloud/monitoring/#{version.to_s.downcase}"
@@ -213,8 +213,8 @@ module Google
213
213
  .constants
214
214
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
215
215
  .first
216
- package_module = Google::Cloud::Monitoring.const_get package_name
217
- package_module.const_get(:QueryService).const_get(:Client).new(&block)
216
+ service_module = Google::Cloud::Monitoring.const_get(package_name).const_get(:QueryService)
217
+ service_module.const_get(:Client).new(&block)
218
218
  end
219
219
 
220
220
  ##
@@ -222,8 +222,8 @@ module Google
222
222
  #
223
223
  # By default, this returns an instance of
224
224
  # [Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest/Google/Cloud/Monitoring/V3/ServiceMonitoringService/Client.html)
225
- # for version V3 of the API.
226
- # However, you can specify specify a different API version by passing it in the
225
+ # for a gRPC client for version V3 of the API.
226
+ # However, you can specify a different API version by passing it in the
227
227
  # `version` parameter. If the ServiceMonitoringService service is
228
228
  # supported by that API version, and the corresponding gem is available, the
229
229
  # appropriate versioned client will be returned.
@@ -237,7 +237,7 @@ module Google
237
237
  #
238
238
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
239
239
  # Defaults to `:v3`.
240
- # @return [ServiceMonitoringService::Client] A client object for the specified version.
240
+ # @return [::Object] A client object for the specified version.
241
241
  #
242
242
  def self.service_monitoring_service version: :v3, &block
243
243
  require "google/cloud/monitoring/#{version.to_s.downcase}"
@@ -246,8 +246,40 @@ module Google
246
246
  .constants
247
247
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
248
248
  .first
249
- package_module = Google::Cloud::Monitoring.const_get package_name
250
- package_module.const_get(:ServiceMonitoringService).const_get(:Client).new(&block)
249
+ service_module = Google::Cloud::Monitoring.const_get(package_name).const_get(:ServiceMonitoringService)
250
+ service_module.const_get(:Client).new(&block)
251
+ end
252
+
253
+ ##
254
+ # Create a new client object for SnoozeService.
255
+ #
256
+ # By default, this returns an instance of
257
+ # [Google::Cloud::Monitoring::V3::SnoozeService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest/Google/Cloud/Monitoring/V3/SnoozeService/Client.html)
258
+ # for a gRPC client for version V3 of the API.
259
+ # However, you can specify a different API version by passing it in the
260
+ # `version` parameter. If the SnoozeService service is
261
+ # supported by that API version, and the corresponding gem is available, the
262
+ # appropriate versioned client will be returned.
263
+ #
264
+ # ## About SnoozeService
265
+ #
266
+ # The SnoozeService API is used to temporarily prevent an alert policy from
267
+ # generating alerts. A Snooze is a description of the criteria under which one
268
+ # or more alert policies should not fire alerts for the specified duration.
269
+ #
270
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
271
+ # Defaults to `:v3`.
272
+ # @return [::Object] A client object for the specified version.
273
+ #
274
+ def self.snooze_service version: :v3, &block
275
+ require "google/cloud/monitoring/#{version.to_s.downcase}"
276
+
277
+ package_name = Google::Cloud::Monitoring
278
+ .constants
279
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
280
+ .first
281
+ service_module = Google::Cloud::Monitoring.const_get(package_name).const_get(:SnoozeService)
282
+ service_module.const_get(:Client).new(&block)
251
283
  end
252
284
 
253
285
  ##
@@ -255,8 +287,8 @@ module Google
255
287
  #
256
288
  # By default, this returns an instance of
257
289
  # [Google::Cloud::Monitoring::V3::UptimeCheckService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest/Google/Cloud/Monitoring/V3/UptimeCheckService/Client.html)
258
- # for version V3 of the API.
259
- # However, you can specify specify a different API version by passing it in the
290
+ # for a gRPC client for version V3 of the API.
291
+ # However, you can specify a different API version by passing it in the
260
292
  # `version` parameter. If the UptimeCheckService service is
261
293
  # supported by that API version, and the corresponding gem is available, the
262
294
  # appropriate versioned client will be returned.
@@ -274,7 +306,7 @@ module Google
274
306
  #
275
307
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
276
308
  # Defaults to `:v3`.
277
- # @return [UptimeCheckService::Client] A client object for the specified version.
309
+ # @return [::Object] A client object for the specified version.
278
310
  #
279
311
  def self.uptime_check_service version: :v3, &block
280
312
  require "google/cloud/monitoring/#{version.to_s.downcase}"
@@ -283,8 +315,8 @@ module Google
283
315
  .constants
284
316
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
285
317
  .first
286
- package_module = Google::Cloud::Monitoring.const_get package_name
287
- package_module.const_get(:UptimeCheckService).const_get(:Client).new(&block)
318
+ service_module = Google::Cloud::Monitoring.const_get(package_name).const_get(:UptimeCheckService)
319
+ service_module.const_get(:Client).new(&block)
288
320
  end
289
321
 
290
322
  ##
@@ -304,7 +336,7 @@ module Google
304
336
  # * `timeout` (*type:* `Numeric`) -
305
337
  # Default timeout in seconds.
306
338
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
307
- # Additional gRPC headers to be sent with the call.
339
+ # Additional headers to be sent with the call.
308
340
  # * `retry_policy` (*type:* `Hash`) -
309
341
  # The retry policy. The value is a hash with the following keys:
310
342
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
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: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-09 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.4'
33
+ version: '0.10'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.a
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0.4'
43
+ version: '0.10'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  - !ruby/object:Gem::Version
235
235
  version: '0'
236
236
  requirements: []
237
- rubygems_version: 3.3.14
237
+ rubygems_version: 3.4.2
238
238
  signing_key:
239
239
  specification_version: 4
240
240
  summary: API Client library for the Cloud Monitoring API