google-cloud-monitoring 0.29.5 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/monitoring.rb +20 -0
- data/lib/google/cloud/monitoring/v3.rb +40 -0
- data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +8 -2
- data/lib/google/cloud/monitoring/v3/group_service_client.rb +8 -2
- data/lib/google/cloud/monitoring/v3/metric_service_client.rb +8 -2
- data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +8 -2
- data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +8 -2
- data/lib/google/cloud/monitoring/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13f6cb0ab0a29df0f3cb5ec7dfda375777b10454cc8c88a2059e2dc191414ef8
|
4
|
+
data.tar.gz: e2d7fe3847f9045f1b0f99996dee37a0f2bedc943e78276a7be213e289e3302c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b6fa454660cdf7c7acfb91ebc263a373236fdf71358edcb8006fdeb8fad1533ba293ef0de6119ba198ad167614609bdbbb7a1f09102604f38b98ca1525b87f3
|
7
|
+
data.tar.gz: 8f86db7f8a59bca1ae593050a9bec61af7aa5b68552d00caa3404d5cc2f86b02af61fde6efc2aae0ddcb8366c243f80c2b2cf3a66b27f02413df569cae435a32
|
@@ -152,6 +152,10 @@ module Google
|
|
152
152
|
# The default timeout, in seconds, for calls made through this client.
|
153
153
|
# @param metadata [Hash]
|
154
154
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
155
|
+
# @param service_address [String]
|
156
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
157
|
+
# @param service_port [Integer]
|
158
|
+
# Override for the service port, or `nil` to leave as the default.
|
155
159
|
# @param exception_transformer [Proc]
|
156
160
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
157
161
|
# custom error handling.
|
@@ -215,6 +219,10 @@ module Google
|
|
215
219
|
# The default timeout, in seconds, for calls made through this client.
|
216
220
|
# @param metadata [Hash]
|
217
221
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
222
|
+
# @param service_address [String]
|
223
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
224
|
+
# @param service_port [Integer]
|
225
|
+
# Override for the service port, or `nil` to leave as the default.
|
218
226
|
# @param exception_transformer [Proc]
|
219
227
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
220
228
|
# custom error handling.
|
@@ -268,6 +276,10 @@ module Google
|
|
268
276
|
# The default timeout, in seconds, for calls made through this client.
|
269
277
|
# @param metadata [Hash]
|
270
278
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
279
|
+
# @param service_address [String]
|
280
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
281
|
+
# @param service_port [Integer]
|
282
|
+
# Override for the service port, or `nil` to leave as the default.
|
271
283
|
# @param exception_transformer [Proc]
|
272
284
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
273
285
|
# custom error handling.
|
@@ -321,6 +333,10 @@ module Google
|
|
321
333
|
# The default timeout, in seconds, for calls made through this client.
|
322
334
|
# @param metadata [Hash]
|
323
335
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
336
|
+
# @param service_address [String]
|
337
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
338
|
+
# @param service_port [Integer]
|
339
|
+
# Override for the service port, or `nil` to leave as the default.
|
324
340
|
# @param exception_transformer [Proc]
|
325
341
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
326
342
|
# custom error handling.
|
@@ -380,6 +396,10 @@ module Google
|
|
380
396
|
# The default timeout, in seconds, for calls made through this client.
|
381
397
|
# @param metadata [Hash]
|
382
398
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
399
|
+
# @param service_address [String]
|
400
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
401
|
+
# @param service_port [Integer]
|
402
|
+
# Override for the service port, or `nil` to leave as the default.
|
383
403
|
# @param exception_transformer [Proc]
|
384
404
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
385
405
|
# custom error handling.
|
@@ -146,6 +146,10 @@ module Google
|
|
146
146
|
# The default timeout, in seconds, for calls made through this client.
|
147
147
|
# @param metadata [Hash]
|
148
148
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
149
|
+
# @param service_address [String]
|
150
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
151
|
+
# @param service_port [Integer]
|
152
|
+
# Override for the service port, or `nil` to leave as the default.
|
149
153
|
# @param exception_transformer [Proc]
|
150
154
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
151
155
|
# custom error handling.
|
@@ -155,6 +159,8 @@ module Google
|
|
155
159
|
client_config: nil,
|
156
160
|
timeout: nil,
|
157
161
|
metadata: nil,
|
162
|
+
service_address: nil,
|
163
|
+
service_port: nil,
|
158
164
|
exception_transformer: nil,
|
159
165
|
lib_name: nil,
|
160
166
|
lib_version: nil
|
@@ -166,6 +172,8 @@ module Google
|
|
166
172
|
metadata: metadata,
|
167
173
|
exception_transformer: exception_transformer,
|
168
174
|
lib_name: lib_name,
|
175
|
+
service_address: service_address,
|
176
|
+
service_port: service_port,
|
169
177
|
lib_version: lib_version
|
170
178
|
}.select { |_, v| v != nil }
|
171
179
|
Google::Cloud::Monitoring::V3::AlertPolicyServiceClient.new(**kwargs)
|
@@ -213,6 +221,10 @@ module Google
|
|
213
221
|
# The default timeout, in seconds, for calls made through this client.
|
214
222
|
# @param metadata [Hash]
|
215
223
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
224
|
+
# @param service_address [String]
|
225
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
226
|
+
# @param service_port [Integer]
|
227
|
+
# Override for the service port, or `nil` to leave as the default.
|
216
228
|
# @param exception_transformer [Proc]
|
217
229
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
218
230
|
# custom error handling.
|
@@ -222,6 +234,8 @@ module Google
|
|
222
234
|
client_config: nil,
|
223
235
|
timeout: nil,
|
224
236
|
metadata: nil,
|
237
|
+
service_address: nil,
|
238
|
+
service_port: nil,
|
225
239
|
exception_transformer: nil,
|
226
240
|
lib_name: nil,
|
227
241
|
lib_version: nil
|
@@ -233,6 +247,8 @@ module Google
|
|
233
247
|
metadata: metadata,
|
234
248
|
exception_transformer: exception_transformer,
|
235
249
|
lib_name: lib_name,
|
250
|
+
service_address: service_address,
|
251
|
+
service_port: service_port,
|
236
252
|
lib_version: lib_version
|
237
253
|
}.select { |_, v| v != nil }
|
238
254
|
Google::Cloud::Monitoring::V3::GroupServiceClient.new(**kwargs)
|
@@ -270,6 +286,10 @@ module Google
|
|
270
286
|
# The default timeout, in seconds, for calls made through this client.
|
271
287
|
# @param metadata [Hash]
|
272
288
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
289
|
+
# @param service_address [String]
|
290
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
291
|
+
# @param service_port [Integer]
|
292
|
+
# Override for the service port, or `nil` to leave as the default.
|
273
293
|
# @param exception_transformer [Proc]
|
274
294
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
275
295
|
# custom error handling.
|
@@ -279,6 +299,8 @@ module Google
|
|
279
299
|
client_config: nil,
|
280
300
|
timeout: nil,
|
281
301
|
metadata: nil,
|
302
|
+
service_address: nil,
|
303
|
+
service_port: nil,
|
282
304
|
exception_transformer: nil,
|
283
305
|
lib_name: nil,
|
284
306
|
lib_version: nil
|
@@ -290,6 +312,8 @@ module Google
|
|
290
312
|
metadata: metadata,
|
291
313
|
exception_transformer: exception_transformer,
|
292
314
|
lib_name: lib_name,
|
315
|
+
service_address: service_address,
|
316
|
+
service_port: service_port,
|
293
317
|
lib_version: lib_version
|
294
318
|
}.select { |_, v| v != nil }
|
295
319
|
Google::Cloud::Monitoring::V3::MetricServiceClient.new(**kwargs)
|
@@ -327,6 +351,10 @@ module Google
|
|
327
351
|
# The default timeout, in seconds, for calls made through this client.
|
328
352
|
# @param metadata [Hash]
|
329
353
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
354
|
+
# @param service_address [String]
|
355
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
356
|
+
# @param service_port [Integer]
|
357
|
+
# Override for the service port, or `nil` to leave as the default.
|
330
358
|
# @param exception_transformer [Proc]
|
331
359
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
332
360
|
# custom error handling.
|
@@ -336,6 +364,8 @@ module Google
|
|
336
364
|
client_config: nil,
|
337
365
|
timeout: nil,
|
338
366
|
metadata: nil,
|
367
|
+
service_address: nil,
|
368
|
+
service_port: nil,
|
339
369
|
exception_transformer: nil,
|
340
370
|
lib_name: nil,
|
341
371
|
lib_version: nil
|
@@ -347,6 +377,8 @@ module Google
|
|
347
377
|
metadata: metadata,
|
348
378
|
exception_transformer: exception_transformer,
|
349
379
|
lib_name: lib_name,
|
380
|
+
service_address: service_address,
|
381
|
+
service_port: service_port,
|
350
382
|
lib_version: lib_version
|
351
383
|
}.select { |_, v| v != nil }
|
352
384
|
Google::Cloud::Monitoring::V3::NotificationChannelServiceClient.new(**kwargs)
|
@@ -390,6 +422,10 @@ module Google
|
|
390
422
|
# The default timeout, in seconds, for calls made through this client.
|
391
423
|
# @param metadata [Hash]
|
392
424
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
425
|
+
# @param service_address [String]
|
426
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
427
|
+
# @param service_port [Integer]
|
428
|
+
# Override for the service port, or `nil` to leave as the default.
|
393
429
|
# @param exception_transformer [Proc]
|
394
430
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
395
431
|
# custom error handling.
|
@@ -399,6 +435,8 @@ module Google
|
|
399
435
|
client_config: nil,
|
400
436
|
timeout: nil,
|
401
437
|
metadata: nil,
|
438
|
+
service_address: nil,
|
439
|
+
service_port: nil,
|
402
440
|
exception_transformer: nil,
|
403
441
|
lib_name: nil,
|
404
442
|
lib_version: nil
|
@@ -410,6 +448,8 @@ module Google
|
|
410
448
|
metadata: metadata,
|
411
449
|
exception_transformer: exception_transformer,
|
412
450
|
lib_name: lib_name,
|
451
|
+
service_address: service_address,
|
452
|
+
service_port: service_port,
|
413
453
|
lib_version: lib_version
|
414
454
|
}.select { |_, v| v != nil }
|
415
455
|
Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.new(**kwargs)
|
@@ -156,6 +156,10 @@ module Google
|
|
156
156
|
# The default timeout, in seconds, for calls made through this client.
|
157
157
|
# @param metadata [Hash]
|
158
158
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
159
|
+
# @param service_address [String]
|
160
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
161
|
+
# @param service_port [Integer]
|
162
|
+
# Override for the service port, or `nil` to leave as the default.
|
159
163
|
# @param exception_transformer [Proc]
|
160
164
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
161
165
|
# custom error handling.
|
@@ -165,6 +169,8 @@ module Google
|
|
165
169
|
client_config: {},
|
166
170
|
timeout: DEFAULT_TIMEOUT,
|
167
171
|
metadata: nil,
|
172
|
+
service_address: nil,
|
173
|
+
service_port: nil,
|
168
174
|
exception_transformer: nil,
|
169
175
|
lib_name: nil,
|
170
176
|
lib_version: ""
|
@@ -219,8 +225,8 @@ module Google
|
|
219
225
|
end
|
220
226
|
|
221
227
|
# Allow overriding the service path/port in subclasses.
|
222
|
-
service_path = self.class::SERVICE_ADDRESS
|
223
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
228
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
229
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
224
230
|
interceptors = self.class::GRPC_INTERCEPTORS
|
225
231
|
@alert_policy_service_stub = Google::Gax::Grpc.create_stub(
|
226
232
|
service_path,
|
@@ -144,6 +144,10 @@ module Google
|
|
144
144
|
# The default timeout, in seconds, for calls made through this client.
|
145
145
|
# @param metadata [Hash]
|
146
146
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
147
|
+
# @param service_address [String]
|
148
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
149
|
+
# @param service_port [Integer]
|
150
|
+
# Override for the service port, or `nil` to leave as the default.
|
147
151
|
# @param exception_transformer [Proc]
|
148
152
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
149
153
|
# custom error handling.
|
@@ -153,6 +157,8 @@ module Google
|
|
153
157
|
client_config: {},
|
154
158
|
timeout: DEFAULT_TIMEOUT,
|
155
159
|
metadata: nil,
|
160
|
+
service_address: nil,
|
161
|
+
service_port: nil,
|
156
162
|
exception_transformer: nil,
|
157
163
|
lib_name: nil,
|
158
164
|
lib_version: ""
|
@@ -207,8 +213,8 @@ module Google
|
|
207
213
|
end
|
208
214
|
|
209
215
|
# Allow overriding the service path/port in subclasses.
|
210
|
-
service_path = self.class::SERVICE_ADDRESS
|
211
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
216
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
217
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
212
218
|
interceptors = self.class::GRPC_INTERCEPTORS
|
213
219
|
@group_service_stub = Google::Gax::Grpc.create_stub(
|
214
220
|
service_path,
|
@@ -155,6 +155,10 @@ module Google
|
|
155
155
|
# The default timeout, in seconds, for calls made through this client.
|
156
156
|
# @param metadata [Hash]
|
157
157
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
158
|
+
# @param service_address [String]
|
159
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
160
|
+
# @param service_port [Integer]
|
161
|
+
# Override for the service port, or `nil` to leave as the default.
|
158
162
|
# @param exception_transformer [Proc]
|
159
163
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
160
164
|
# custom error handling.
|
@@ -164,6 +168,8 @@ module Google
|
|
164
168
|
client_config: {},
|
165
169
|
timeout: DEFAULT_TIMEOUT,
|
166
170
|
metadata: nil,
|
171
|
+
service_address: nil,
|
172
|
+
service_port: nil,
|
167
173
|
exception_transformer: nil,
|
168
174
|
lib_name: nil,
|
169
175
|
lib_version: ""
|
@@ -218,8 +224,8 @@ module Google
|
|
218
224
|
end
|
219
225
|
|
220
226
|
# Allow overriding the service path/port in subclasses.
|
221
|
-
service_path = self.class::SERVICE_ADDRESS
|
222
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
227
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
228
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
223
229
|
interceptors = self.class::GRPC_INTERCEPTORS
|
224
230
|
@metric_service_stub = Google::Gax::Grpc.create_stub(
|
225
231
|
service_path,
|
@@ -151,6 +151,10 @@ module Google
|
|
151
151
|
# The default timeout, in seconds, for calls made through this client.
|
152
152
|
# @param metadata [Hash]
|
153
153
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
154
|
+
# @param service_address [String]
|
155
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
156
|
+
# @param service_port [Integer]
|
157
|
+
# Override for the service port, or `nil` to leave as the default.
|
154
158
|
# @param exception_transformer [Proc]
|
155
159
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
156
160
|
# custom error handling.
|
@@ -160,6 +164,8 @@ module Google
|
|
160
164
|
client_config: {},
|
161
165
|
timeout: DEFAULT_TIMEOUT,
|
162
166
|
metadata: nil,
|
167
|
+
service_address: nil,
|
168
|
+
service_port: nil,
|
163
169
|
exception_transformer: nil,
|
164
170
|
lib_name: nil,
|
165
171
|
lib_version: ""
|
@@ -214,8 +220,8 @@ module Google
|
|
214
220
|
end
|
215
221
|
|
216
222
|
# Allow overriding the service path/port in subclasses.
|
217
|
-
service_path = self.class::SERVICE_ADDRESS
|
218
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
223
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
224
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
219
225
|
interceptors = self.class::GRPC_INTERCEPTORS
|
220
226
|
@notification_channel_service_stub = Google::Gax::Grpc.create_stub(
|
221
227
|
service_path,
|
@@ -140,6 +140,10 @@ module Google
|
|
140
140
|
# The default timeout, in seconds, for calls made through this client.
|
141
141
|
# @param metadata [Hash]
|
142
142
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
143
|
+
# @param service_address [String]
|
144
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
145
|
+
# @param service_port [Integer]
|
146
|
+
# Override for the service port, or `nil` to leave as the default.
|
143
147
|
# @param exception_transformer [Proc]
|
144
148
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
145
149
|
# custom error handling.
|
@@ -149,6 +153,8 @@ module Google
|
|
149
153
|
client_config: {},
|
150
154
|
timeout: DEFAULT_TIMEOUT,
|
151
155
|
metadata: nil,
|
156
|
+
service_address: nil,
|
157
|
+
service_port: nil,
|
152
158
|
exception_transformer: nil,
|
153
159
|
lib_name: nil,
|
154
160
|
lib_version: ""
|
@@ -203,8 +209,8 @@ module Google
|
|
203
209
|
end
|
204
210
|
|
205
211
|
# Allow overriding the service path/port in subclasses.
|
206
|
-
service_path = self.class::SERVICE_ADDRESS
|
207
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
212
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
213
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
208
214
|
interceptors = self.class::GRPC_INTERCEPTORS
|
209
215
|
@uptime_check_service_stub = Google::Gax::Grpc.create_stub(
|
210
216
|
service_path,
|
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.
|
4
|
+
version: 0.30.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: 2019-
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: googleapis-common-protos-types
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|