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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/README.md +38 -12
  4. data/lib/google/cloud/monitoring.rb +52 -2
  5. data/lib/google/cloud/monitoring/v3.rb +124 -52
  6. data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +67 -29
  7. data/lib/google/cloud/monitoring/v3/credentials.rb +43 -0
  8. data/lib/google/cloud/monitoring/v3/doc/google/api/metric.rb +7 -11
  9. data/lib/google/cloud/monitoring/v3/doc/google/api/monitored_resource.rb +27 -3
  10. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +7 -8
  11. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb +135 -0
  12. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group_service.rb +145 -0
  13. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb +17 -12
  14. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb +227 -0
  15. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification_service.rb +213 -0
  16. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +49 -29
  17. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb +131 -0
  18. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/any.rb +124 -0
  19. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/empty.rb +28 -0
  20. data/lib/google/cloud/monitoring/v3/doc/google/protobuf/struct.rb +73 -0
  21. data/lib/google/cloud/monitoring/v3/doc/google/rpc/status.rb +83 -0
  22. data/lib/google/cloud/monitoring/v3/doc/overview.rb +26 -1
  23. data/lib/google/cloud/monitoring/v3/group_service_client.rb +78 -35
  24. data/lib/google/cloud/monitoring/v3/metric_service_client.rb +99 -47
  25. data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +87 -39
  26. data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +90 -47
  27. data/lib/google/monitoring/v3/alert_service_services_pb.rb +1 -1
  28. data/lib/google/monitoring/v3/dropped_labels_pb.rb +19 -0
  29. data/lib/google/monitoring/v3/group_service_services_pb.rb +2 -2
  30. data/lib/google/monitoring/v3/metric_pb.rb +3 -0
  31. data/lib/google/monitoring/v3/metric_service_pb.rb +2 -0
  32. data/lib/google/monitoring/v3/metric_service_services_pb.rb +1 -1
  33. data/lib/google/monitoring/v3/notification_service_services_pb.rb +1 -1
  34. data/lib/google/monitoring/v3/span_context_pb.rb +18 -0
  35. data/lib/google/monitoring/v3/uptime_pb.rb +10 -9
  36. data/lib/google/monitoring/v3/uptime_service_pb.rb +1 -0
  37. data/lib/google/monitoring/v3/uptime_service_services_pb.rb +1 -1
  38. metadata +59 -6
  39. data/lib/google/cloud/monitoring/credentials.rb +0 -33
@@ -25,7 +25,7 @@ require "pathname"
25
25
  require "google/gax"
26
26
 
27
27
  require "google/monitoring/v3/uptime_service_pb"
28
- require "google/cloud/monitoring/credentials"
28
+ require "google/cloud/monitoring/v3/credentials"
29
29
 
30
30
  module Google
31
31
  module Cloud
@@ -51,6 +51,9 @@ module Google
51
51
  # The default port of the service.
52
52
  DEFAULT_SERVICE_PORT = 443
53
53
 
54
+ # The default set of gRPC interceptors.
55
+ GRPC_INTERCEPTORS = []
56
+
54
57
  DEFAULT_TIMEOUT = 30
55
58
 
56
59
  PAGE_DESCRIPTORS = {
@@ -132,11 +135,18 @@ module Google
132
135
  # or the specified config is missing data points.
133
136
  # @param timeout [Numeric]
134
137
  # The default timeout, in seconds, for calls made through this client.
138
+ # @param metadata [Hash]
139
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
140
+ # @param exception_transformer [Proc]
141
+ # An optional proc that intercepts any exceptions raised during an API call to inject
142
+ # custom error handling.
135
143
  def initialize \
136
144
  credentials: nil,
137
145
  scopes: ALL_SCOPES,
138
146
  client_config: {},
139
147
  timeout: DEFAULT_TIMEOUT,
148
+ metadata: nil,
149
+ exception_transformer: nil,
140
150
  lib_name: nil,
141
151
  lib_version: ""
142
152
  # These require statements are intentionally placed here to initialize
@@ -145,10 +155,10 @@ module Google
145
155
  require "google/gax/grpc"
146
156
  require "google/monitoring/v3/uptime_service_services_pb"
147
157
 
148
- credentials ||= Google::Cloud::Monitoring::Credentials.default
158
+ credentials ||= Google::Cloud::Monitoring::V3::Credentials.default
149
159
 
150
160
  if credentials.is_a?(String) || credentials.is_a?(Hash)
151
- updater_proc = Google::Cloud::Monitoring::Credentials.new(credentials).updater_proc
161
+ updater_proc = Google::Cloud::Monitoring::V3::Credentials.new(credentials).updater_proc
152
162
  end
153
163
  if credentials.is_a?(GRPC::Core::Channel)
154
164
  channel = credentials
@@ -172,6 +182,7 @@ module Google
172
182
  google_api_client.freeze
173
183
 
174
184
  headers = { :"x-goog-api-client" => google_api_client }
185
+ headers.merge!(metadata) unless metadata.nil?
175
186
  client_config_file = Pathname.new(__dir__).join(
176
187
  "uptime_check_service_client_config.json"
177
188
  )
@@ -184,13 +195,14 @@ module Google
184
195
  timeout,
185
196
  page_descriptors: PAGE_DESCRIPTORS,
186
197
  errors: Google::Gax::Grpc::API_ERRORS,
187
- kwargs: headers
198
+ metadata: headers
188
199
  )
189
200
  end
190
201
 
191
202
  # Allow overriding the service path/port in subclasses.
192
203
  service_path = self.class::SERVICE_ADDRESS
193
204
  port = self.class::DEFAULT_SERVICE_PORT
205
+ interceptors = self.class::GRPC_INTERCEPTORS
194
206
  @uptime_check_service_stub = Google::Gax::Grpc.create_stub(
195
207
  service_path,
196
208
  port,
@@ -198,32 +210,39 @@ module Google
198
210
  channel: channel,
199
211
  updater_proc: updater_proc,
200
212
  scopes: scopes,
213
+ interceptors: interceptors,
201
214
  &Google::Monitoring::V3::UptimeCheckService::Stub.method(:new)
202
215
  )
203
216
 
204
217
  @list_uptime_check_configs = Google::Gax.create_api_call(
205
218
  @uptime_check_service_stub.method(:list_uptime_check_configs),
206
- defaults["list_uptime_check_configs"]
219
+ defaults["list_uptime_check_configs"],
220
+ exception_transformer: exception_transformer
207
221
  )
208
222
  @get_uptime_check_config = Google::Gax.create_api_call(
209
223
  @uptime_check_service_stub.method(:get_uptime_check_config),
210
- defaults["get_uptime_check_config"]
224
+ defaults["get_uptime_check_config"],
225
+ exception_transformer: exception_transformer
211
226
  )
212
227
  @create_uptime_check_config = Google::Gax.create_api_call(
213
228
  @uptime_check_service_stub.method(:create_uptime_check_config),
214
- defaults["create_uptime_check_config"]
229
+ defaults["create_uptime_check_config"],
230
+ exception_transformer: exception_transformer
215
231
  )
216
232
  @update_uptime_check_config = Google::Gax.create_api_call(
217
233
  @uptime_check_service_stub.method(:update_uptime_check_config),
218
- defaults["update_uptime_check_config"]
234
+ defaults["update_uptime_check_config"],
235
+ exception_transformer: exception_transformer
219
236
  )
220
237
  @delete_uptime_check_config = Google::Gax.create_api_call(
221
238
  @uptime_check_service_stub.method(:delete_uptime_check_config),
222
- defaults["delete_uptime_check_config"]
239
+ defaults["delete_uptime_check_config"],
240
+ exception_transformer: exception_transformer
223
241
  )
224
242
  @list_uptime_check_ips = Google::Gax.create_api_call(
225
243
  @uptime_check_service_stub.method(:list_uptime_check_ips),
226
- defaults["list_uptime_check_ips"]
244
+ defaults["list_uptime_check_ips"],
245
+ exception_transformer: exception_transformer
227
246
  )
228
247
  end
229
248
 
@@ -233,9 +252,8 @@ module Google
233
252
  # leaving out any invalid configurations.
234
253
  #
235
254
  # @param parent [String]
236
- # The project whose uptime check configurations are listed. The format is
237
- #
238
- # +projects/[PROJECT_ID]+.
255
+ # The project whose uptime check configurations are listed. The format
256
+ # is +projects/[PROJECT_ID]+.
239
257
  # @param page_size [Integer]
240
258
  # The maximum number of resources contained in the underlying API
241
259
  # response. If page streaming is performed per-resource, this
@@ -245,6 +263,9 @@ module Google
245
263
  # @param options [Google::Gax::CallOptions]
246
264
  # Overrides the default settings for this call, e.g, timeout,
247
265
  # retries, etc.
266
+ # @yield [result, operation] Access the result along with the RPC operation
267
+ # @yieldparam result [Google::Gax::PagedEnumerable<Google::Monitoring::V3::UptimeCheckConfig>]
268
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
248
269
  # @return [Google::Gax::PagedEnumerable<Google::Monitoring::V3::UptimeCheckConfig>]
249
270
  # An enumerable of Google::Monitoring::V3::UptimeCheckConfig instances.
250
271
  # See Google::Gax::PagedEnumerable documentation for other
@@ -252,9 +273,9 @@ module Google
252
273
  # object.
253
274
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
254
275
  # @example
255
- # require "google/cloud/monitoring/v3"
276
+ # require "google/cloud/monitoring"
256
277
  #
257
- # uptime_check_service_client = Google::Cloud::Monitoring::V3::UptimeCheck.new
278
+ # uptime_check_service_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
258
279
  # formatted_parent = Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.project_path("[PROJECT]")
259
280
  #
260
281
  # # Iterate over all results.
@@ -273,49 +294,52 @@ module Google
273
294
  def list_uptime_check_configs \
274
295
  parent,
275
296
  page_size: nil,
276
- options: nil
297
+ options: nil,
298
+ &block
277
299
  req = {
278
300
  parent: parent,
279
301
  page_size: page_size
280
302
  }.delete_if { |_, v| v.nil? }
281
303
  req = Google::Gax::to_proto(req, Google::Monitoring::V3::ListUptimeCheckConfigsRequest)
282
- @list_uptime_check_configs.call(req, options)
304
+ @list_uptime_check_configs.call(req, options, &block)
283
305
  end
284
306
 
285
307
  # Gets a single uptime check configuration.
286
308
  #
287
309
  # @param name [String]
288
- # The uptime check configuration to retrieve. The format is
289
- #
290
- # +projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]+.
310
+ # The uptime check configuration to retrieve. The format
311
+ # is +projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]+.
291
312
  # @param options [Google::Gax::CallOptions]
292
313
  # Overrides the default settings for this call, e.g, timeout,
293
314
  # retries, etc.
315
+ # @yield [result, operation] Access the result along with the RPC operation
316
+ # @yieldparam result [Google::Monitoring::V3::UptimeCheckConfig]
317
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
294
318
  # @return [Google::Monitoring::V3::UptimeCheckConfig]
295
319
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
296
320
  # @example
297
- # require "google/cloud/monitoring/v3"
321
+ # require "google/cloud/monitoring"
298
322
  #
299
- # uptime_check_service_client = Google::Cloud::Monitoring::V3::UptimeCheck.new
323
+ # uptime_check_service_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
300
324
  # formatted_name = Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.uptime_check_config_path("[PROJECT]", "[UPTIME_CHECK_CONFIG]")
301
325
  # response = uptime_check_service_client.get_uptime_check_config(formatted_name)
302
326
 
303
327
  def get_uptime_check_config \
304
328
  name,
305
- options: nil
329
+ options: nil,
330
+ &block
306
331
  req = {
307
332
  name: name
308
333
  }.delete_if { |_, v| v.nil? }
309
334
  req = Google::Gax::to_proto(req, Google::Monitoring::V3::GetUptimeCheckConfigRequest)
310
- @get_uptime_check_config.call(req, options)
335
+ @get_uptime_check_config.call(req, options, &block)
311
336
  end
312
337
 
313
338
  # Creates a new uptime check configuration.
314
339
  #
315
340
  # @param parent [String]
316
- # The project in which to create the uptime check. The format is:
317
- #
318
- # +projects/[PROJECT_ID]+.
341
+ # The project in which to create the uptime check. The format
342
+ # is +projects/[PROJECT_ID]+.
319
343
  # @param uptime_check_config [Google::Monitoring::V3::UptimeCheckConfig | Hash]
320
344
  # The new uptime check configuration.
321
345
  # A hash of the same form as `Google::Monitoring::V3::UptimeCheckConfig`
@@ -323,12 +347,15 @@ module Google
323
347
  # @param options [Google::Gax::CallOptions]
324
348
  # Overrides the default settings for this call, e.g, timeout,
325
349
  # retries, etc.
350
+ # @yield [result, operation] Access the result along with the RPC operation
351
+ # @yieldparam result [Google::Monitoring::V3::UptimeCheckConfig]
352
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
326
353
  # @return [Google::Monitoring::V3::UptimeCheckConfig]
327
354
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
328
355
  # @example
329
- # require "google/cloud/monitoring/v3"
356
+ # require "google/cloud/monitoring"
330
357
  #
331
- # uptime_check_service_client = Google::Cloud::Monitoring::V3::UptimeCheck.new
358
+ # uptime_check_service_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
332
359
  # formatted_parent = Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.project_path("[PROJECT]")
333
360
  #
334
361
  # # TODO: Initialize +uptime_check_config+:
@@ -338,13 +365,14 @@ module Google
338
365
  def create_uptime_check_config \
339
366
  parent,
340
367
  uptime_check_config,
341
- options: nil
368
+ options: nil,
369
+ &block
342
370
  req = {
343
371
  parent: parent,
344
372
  uptime_check_config: uptime_check_config
345
373
  }.delete_if { |_, v| v.nil? }
346
374
  req = Google::Gax::to_proto(req, Google::Monitoring::V3::CreateUptimeCheckConfigRequest)
347
- @create_uptime_check_config.call(req, options)
375
+ @create_uptime_check_config.call(req, options, &block)
348
376
  end
349
377
 
350
378
  # Updates an uptime check configuration. You can either replace the entire
@@ -356,10 +384,14 @@ module Google
356
384
  # Required. If an +"updateMask"+ has been specified, this field gives
357
385
  # the values for the set of fields mentioned in the +"updateMask"+. If an
358
386
  # +"updateMask"+ has not been given, this uptime check configuration replaces
359
- # the current configuration. If a field is mentioned in +"updateMask+" but
387
+ # the current configuration. If a field is mentioned in +"updateMask"+ but
360
388
  # the corresonding field is omitted in this partial uptime check
361
389
  # configuration, it has the effect of deleting/clearing the field from the
362
390
  # configuration on the server.
391
+ #
392
+ # The following fields can be updated: +display_name+,
393
+ # +http_check+, +tcp_check+, +timeout+, +content_matchers+, and
394
+ # +selected_regions+.
363
395
  # A hash of the same form as `Google::Monitoring::V3::UptimeCheckConfig`
364
396
  # can also be provided.
365
397
  # @param update_mask [Google::Protobuf::FieldMask | Hash]
@@ -372,12 +404,15 @@ module Google
372
404
  # @param options [Google::Gax::CallOptions]
373
405
  # Overrides the default settings for this call, e.g, timeout,
374
406
  # retries, etc.
407
+ # @yield [result, operation] Access the result along with the RPC operation
408
+ # @yieldparam result [Google::Monitoring::V3::UptimeCheckConfig]
409
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
375
410
  # @return [Google::Monitoring::V3::UptimeCheckConfig]
376
411
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
377
412
  # @example
378
- # require "google/cloud/monitoring/v3"
413
+ # require "google/cloud/monitoring"
379
414
  #
380
- # uptime_check_service_client = Google::Cloud::Monitoring::V3::UptimeCheck.new
415
+ # uptime_check_service_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
381
416
  #
382
417
  # # TODO: Initialize +uptime_check_config+:
383
418
  # uptime_check_config = {}
@@ -386,13 +421,14 @@ module Google
386
421
  def update_uptime_check_config \
387
422
  uptime_check_config,
388
423
  update_mask: nil,
389
- options: nil
424
+ options: nil,
425
+ &block
390
426
  req = {
391
427
  uptime_check_config: uptime_check_config,
392
428
  update_mask: update_mask
393
429
  }.delete_if { |_, v| v.nil? }
394
430
  req = Google::Gax::to_proto(req, Google::Monitoring::V3::UpdateUptimeCheckConfigRequest)
395
- @update_uptime_check_config.call(req, options)
431
+ @update_uptime_check_config.call(req, options, &block)
396
432
  end
397
433
 
398
434
  # Deletes an uptime check configuration. Note that this method will fail
@@ -400,28 +436,31 @@ module Google
400
436
  # other dependent configs that would be rendered invalid by the deletion.
401
437
  #
402
438
  # @param name [String]
403
- # The uptime check configuration to delete. The format is
404
- #
405
- # +projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]+.
439
+ # The uptime check configuration to delete. The format
440
+ # is +projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]+.
406
441
  # @param options [Google::Gax::CallOptions]
407
442
  # Overrides the default settings for this call, e.g, timeout,
408
443
  # retries, etc.
444
+ # @yield [result, operation] Access the result along with the RPC operation
445
+ # @yieldparam result []
446
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
409
447
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
410
448
  # @example
411
- # require "google/cloud/monitoring/v3"
449
+ # require "google/cloud/monitoring"
412
450
  #
413
- # uptime_check_service_client = Google::Cloud::Monitoring::V3::UptimeCheck.new
451
+ # uptime_check_service_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
414
452
  # formatted_name = Google::Cloud::Monitoring::V3::UptimeCheckServiceClient.uptime_check_config_path("[PROJECT]", "[UPTIME_CHECK_CONFIG]")
415
453
  # uptime_check_service_client.delete_uptime_check_config(formatted_name)
416
454
 
417
455
  def delete_uptime_check_config \
418
456
  name,
419
- options: nil
457
+ options: nil,
458
+ &block
420
459
  req = {
421
460
  name: name
422
461
  }.delete_if { |_, v| v.nil? }
423
462
  req = Google::Gax::to_proto(req, Google::Monitoring::V3::DeleteUptimeCheckConfigRequest)
424
- @delete_uptime_check_config.call(req, options)
463
+ @delete_uptime_check_config.call(req, options, &block)
425
464
  nil
426
465
  end
427
466
 
@@ -436,6 +475,9 @@ module Google
436
475
  # @param options [Google::Gax::CallOptions]
437
476
  # Overrides the default settings for this call, e.g, timeout,
438
477
  # retries, etc.
478
+ # @yield [result, operation] Access the result along with the RPC operation
479
+ # @yieldparam result [Google::Gax::PagedEnumerable<Google::Monitoring::V3::UptimeCheckIp>]
480
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
439
481
  # @return [Google::Gax::PagedEnumerable<Google::Monitoring::V3::UptimeCheckIp>]
440
482
  # An enumerable of Google::Monitoring::V3::UptimeCheckIp instances.
441
483
  # See Google::Gax::PagedEnumerable documentation for other
@@ -443,9 +485,9 @@ module Google
443
485
  # object.
444
486
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
445
487
  # @example
446
- # require "google/cloud/monitoring/v3"
488
+ # require "google/cloud/monitoring"
447
489
  #
448
- # uptime_check_service_client = Google::Cloud::Monitoring::V3::UptimeCheck.new
490
+ # uptime_check_service_client = Google::Cloud::Monitoring::UptimeCheck.new(version: :v3)
449
491
  #
450
492
  # # Iterate over all results.
451
493
  # uptime_check_service_client.list_uptime_check_ips.each do |element|
@@ -462,12 +504,13 @@ module Google
462
504
 
463
505
  def list_uptime_check_ips \
464
506
  page_size: nil,
465
- options: nil
507
+ options: nil,
508
+ &block
466
509
  req = {
467
510
  page_size: page_size
468
511
  }.delete_if { |_, v| v.nil? }
469
512
  req = Google::Gax::to_proto(req, Google::Monitoring::V3::ListUptimeCheckIpsRequest)
470
- @list_uptime_check_ips.call(req, options)
513
+ @list_uptime_check_ips.call(req, options, &block)
471
514
  end
472
515
  end
473
516
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/alert_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2018 Google Inc.
4
+ # Copyright 2018 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -0,0 +1,19 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/v3/dropped_labels.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_message "google.monitoring.v3.DroppedLabels" do
9
+ map :label, :string, :string, 1
10
+ end
11
+ end
12
+
13
+ module Google
14
+ module Monitoring
15
+ module V3
16
+ DroppedLabels = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DroppedLabels").msgclass
17
+ end
18
+ end
19
+ end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/group_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2016 Google Inc.
4
+ # Copyright 2018 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ module Google
24
24
  module V3
25
25
  module GroupService
26
26
  # The Group API lets you inspect and manage your
27
- # [groups](google.monitoring.v3.Group).
27
+ # [groups](#google.monitoring.v3.Group).
28
28
  #
29
29
  # A group is a named filter that is used to identify
30
30
  # a collection of monitored resources. Groups are typically used to
@@ -3,6 +3,8 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/label_pb'
6
8
  require 'google/api/metric_pb'
7
9
  require 'google/api/monitored_resource_pb'
8
10
  require 'google/monitoring/v3/common_pb'
@@ -14,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
14
16
  add_message "google.monitoring.v3.TimeSeries" do
15
17
  optional :metric, :message, 1, "google.api.Metric"
16
18
  optional :resource, :message, 2, "google.api.MonitoredResource"
19
+ optional :metadata, :message, 7, "google.api.MonitoredResourceMetadata"
17
20
  optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
18
21
  optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
19
22
  repeated :points, :message, 5, "google.monitoring.v3.Point"
@@ -8,6 +8,7 @@ require 'google/api/metric_pb'
8
8
  require 'google/api/monitored_resource_pb'
9
9
  require 'google/monitoring/v3/common_pb'
10
10
  require 'google/monitoring/v3/metric_pb'
11
+ require 'google/protobuf/duration_pb'
11
12
  require 'google/protobuf/empty_pb'
12
13
  require 'google/rpc/status_pb'
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -61,6 +62,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
61
62
  add_message "google.monitoring.v3.ListTimeSeriesResponse" do
62
63
  repeated :time_series, :message, 1, "google.monitoring.v3.TimeSeries"
63
64
  optional :next_page_token, :string, 2
65
+ repeated :execution_errors, :message, 3, "google.rpc.Status"
64
66
  end
65
67
  add_message "google.monitoring.v3.CreateTimeSeriesRequest" do
66
68
  optional :name, :string, 3