google-cloud-monitoring-v3 0.17.0 → 0.18.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/v3/alert_policy_service/client.rb +13 -5
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +15 -6
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +21 -9
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +23 -10
- data/lib/google/cloud/monitoring/v3/query_service/client.rb +5 -1
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +23 -10
- data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +11 -4
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +15 -6
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/monitoring/v3/alert_pb.rb +2 -1
- data/proto_docs/google/monitoring/v3/alert.rb +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8e9c7b81df0e4fe2f5ec4ef0546e59d42064efc6f253c3302793d78bfb1782d
|
4
|
+
data.tar.gz: 29bd90cbd4cf2aeb912735c6090f45819df8a4e4e1a3a88cd2514da3d788a2e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e86a7a649f8ad2d833061ebb1fb327e799a7652ce1abc7454bead3aef316b549186641f37aaab93a1cb1e9a2cd6df779fb93e35e3a71b19f839ddf8cc1491b05
|
7
|
+
data.tar.gz: 372e00c29a0a9aeb59f1c964696ff8341fda718b9331195daf127b4d3575af30bbfa41f0178194cd6be37fcdeb752ef191b733831f58b01c1610c1d1b70710c2
|
@@ -38,6 +38,9 @@ module Google
|
|
38
38
|
# [Cloud console](https://console.cloud.google.com/).
|
39
39
|
#
|
40
40
|
class Client
|
41
|
+
# @private
|
42
|
+
API_VERSION = ""
|
43
|
+
|
41
44
|
# @private
|
42
45
|
DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
|
43
46
|
|
@@ -275,10 +278,11 @@ module Google
|
|
275
278
|
# Customize the options with defaults
|
276
279
|
metadata = @config.rpcs.list_alert_policies.metadata.to_h
|
277
280
|
|
278
|
-
# Set x-goog-api-client
|
281
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
279
282
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
280
283
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
281
284
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
285
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
282
286
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
283
287
|
|
284
288
|
header_params = {}
|
@@ -363,10 +367,11 @@ module Google
|
|
363
367
|
# Customize the options with defaults
|
364
368
|
metadata = @config.rpcs.get_alert_policy.metadata.to_h
|
365
369
|
|
366
|
-
# Set x-goog-api-client
|
370
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
367
371
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
368
372
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
369
373
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
374
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
370
375
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
371
376
|
|
372
377
|
header_params = {}
|
@@ -468,10 +473,11 @@ module Google
|
|
468
473
|
# Customize the options with defaults
|
469
474
|
metadata = @config.rpcs.create_alert_policy.metadata.to_h
|
470
475
|
|
471
|
-
# Set x-goog-api-client
|
476
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
472
477
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
473
478
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
474
479
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
480
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
475
481
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
476
482
|
|
477
483
|
header_params = {}
|
@@ -561,10 +567,11 @@ module Google
|
|
561
567
|
# Customize the options with defaults
|
562
568
|
metadata = @config.rpcs.delete_alert_policy.metadata.to_h
|
563
569
|
|
564
|
-
# Set x-goog-api-client
|
570
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
565
571
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
566
572
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
567
573
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
574
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
568
575
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
569
576
|
|
570
577
|
header_params = {}
|
@@ -678,10 +685,11 @@ module Google
|
|
678
685
|
# Customize the options with defaults
|
679
686
|
metadata = @config.rpcs.update_alert_policy.metadata.to_h
|
680
687
|
|
681
|
-
# Set x-goog-api-client
|
688
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
682
689
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
683
690
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
684
691
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
692
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
685
693
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
686
694
|
|
687
695
|
header_params = {}
|
@@ -41,6 +41,9 @@ module Google
|
|
41
41
|
# from the infrastructure.
|
42
42
|
#
|
43
43
|
class Client
|
44
|
+
# @private
|
45
|
+
API_VERSION = ""
|
46
|
+
|
44
47
|
# @private
|
45
48
|
DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
|
46
49
|
|
@@ -291,10 +294,11 @@ module Google
|
|
291
294
|
# Customize the options with defaults
|
292
295
|
metadata = @config.rpcs.list_groups.metadata.to_h
|
293
296
|
|
294
|
-
# Set x-goog-api-client
|
297
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
295
298
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
296
299
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
297
300
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
301
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
298
302
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
299
303
|
|
300
304
|
header_params = {}
|
@@ -379,10 +383,11 @@ module Google
|
|
379
383
|
# Customize the options with defaults
|
380
384
|
metadata = @config.rpcs.get_group.metadata.to_h
|
381
385
|
|
382
|
-
# Set x-goog-api-client
|
386
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
383
387
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
384
388
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
385
389
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
390
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
386
391
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
387
392
|
|
388
393
|
header_params = {}
|
@@ -473,10 +478,11 @@ module Google
|
|
473
478
|
# Customize the options with defaults
|
474
479
|
metadata = @config.rpcs.create_group.metadata.to_h
|
475
480
|
|
476
|
-
# Set x-goog-api-client
|
481
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
477
482
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
478
483
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
479
484
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
485
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
480
486
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
481
487
|
|
482
488
|
header_params = {}
|
@@ -563,10 +569,11 @@ module Google
|
|
563
569
|
# Customize the options with defaults
|
564
570
|
metadata = @config.rpcs.update_group.metadata.to_h
|
565
571
|
|
566
|
-
# Set x-goog-api-client
|
572
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
567
573
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
568
574
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
569
575
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
576
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
570
577
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
571
578
|
|
572
579
|
header_params = {}
|
@@ -654,10 +661,11 @@ module Google
|
|
654
661
|
# Customize the options with defaults
|
655
662
|
metadata = @config.rpcs.delete_group.metadata.to_h
|
656
663
|
|
657
|
-
# Set x-goog-api-client
|
664
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
658
665
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
659
666
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
660
667
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
668
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
661
669
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
662
670
|
|
663
671
|
header_params = {}
|
@@ -765,10 +773,11 @@ module Google
|
|
765
773
|
# Customize the options with defaults
|
766
774
|
metadata = @config.rpcs.list_group_members.metadata.to_h
|
767
775
|
|
768
|
-
# Set x-goog-api-client
|
776
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
769
777
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
770
778
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
771
779
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
780
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
772
781
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
773
782
|
|
774
783
|
header_params = {}
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# time series data.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -271,10 +274,11 @@ module Google
|
|
271
274
|
# Customize the options with defaults
|
272
275
|
metadata = @config.rpcs.list_monitored_resource_descriptors.metadata.to_h
|
273
276
|
|
274
|
-
# Set x-goog-api-client
|
277
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
275
278
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
276
279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
277
280
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
281
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
282
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
283
|
|
280
284
|
header_params = {}
|
@@ -362,10 +366,11 @@ module Google
|
|
362
366
|
# Customize the options with defaults
|
363
367
|
metadata = @config.rpcs.get_monitored_resource_descriptor.metadata.to_h
|
364
368
|
|
365
|
-
# Set x-goog-api-client
|
369
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
366
370
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
367
371
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
368
372
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
373
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
369
374
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
370
375
|
|
371
376
|
header_params = {}
|
@@ -472,10 +477,11 @@ module Google
|
|
472
477
|
# Customize the options with defaults
|
473
478
|
metadata = @config.rpcs.list_metric_descriptors.metadata.to_h
|
474
479
|
|
475
|
-
# Set x-goog-api-client
|
480
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
476
481
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
477
482
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
478
483
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
484
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
479
485
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
480
486
|
|
481
487
|
header_params = {}
|
@@ -564,10 +570,11 @@ module Google
|
|
564
570
|
# Customize the options with defaults
|
565
571
|
metadata = @config.rpcs.get_metric_descriptor.metadata.to_h
|
566
572
|
|
567
|
-
# Set x-goog-api-client
|
573
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
568
574
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
569
575
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
570
576
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
577
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
571
578
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
572
579
|
|
573
580
|
header_params = {}
|
@@ -661,10 +668,11 @@ module Google
|
|
661
668
|
# Customize the options with defaults
|
662
669
|
metadata = @config.rpcs.create_metric_descriptor.metadata.to_h
|
663
670
|
|
664
|
-
# Set x-goog-api-client
|
671
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
665
672
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
666
673
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
667
674
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
675
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
668
676
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
669
677
|
|
670
678
|
header_params = {}
|
@@ -754,10 +762,11 @@ module Google
|
|
754
762
|
# Customize the options with defaults
|
755
763
|
metadata = @config.rpcs.delete_metric_descriptor.metadata.to_h
|
756
764
|
|
757
|
-
# Set x-goog-api-client
|
765
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
758
766
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
759
767
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
760
768
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
769
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
761
770
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
762
771
|
|
763
772
|
header_params = {}
|
@@ -886,10 +895,11 @@ module Google
|
|
886
895
|
# Customize the options with defaults
|
887
896
|
metadata = @config.rpcs.list_time_series.metadata.to_h
|
888
897
|
|
889
|
-
# Set x-goog-api-client
|
898
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
890
899
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
891
900
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
892
901
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
902
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
893
903
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
894
904
|
|
895
905
|
header_params = {}
|
@@ -990,10 +1000,11 @@ module Google
|
|
990
1000
|
# Customize the options with defaults
|
991
1001
|
metadata = @config.rpcs.create_time_series.metadata.to_h
|
992
1002
|
|
993
|
-
# Set x-goog-api-client
|
1003
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
994
1004
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
995
1005
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
996
1006
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
1007
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
997
1008
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
998
1009
|
|
999
1010
|
header_params = {}
|
@@ -1095,10 +1106,11 @@ module Google
|
|
1095
1106
|
# Customize the options with defaults
|
1096
1107
|
metadata = @config.rpcs.create_service_time_series.metadata.to_h
|
1097
1108
|
|
1098
|
-
# Set x-goog-api-client
|
1109
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1099
1110
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1100
1111
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1101
1112
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
1113
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1102
1114
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1103
1115
|
|
1104
1116
|
header_params = {}
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# controls how messages related to incidents are sent.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -280,10 +283,11 @@ module Google
|
|
280
283
|
# Customize the options with defaults
|
281
284
|
metadata = @config.rpcs.list_notification_channel_descriptors.metadata.to_h
|
282
285
|
|
283
|
-
# Set x-goog-api-client
|
286
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
284
287
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
285
288
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
286
289
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
290
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
287
291
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
288
292
|
|
289
293
|
header_params = {}
|
@@ -369,10 +373,11 @@ module Google
|
|
369
373
|
# Customize the options with defaults
|
370
374
|
metadata = @config.rpcs.get_notification_channel_descriptor.metadata.to_h
|
371
375
|
|
372
|
-
# Set x-goog-api-client
|
376
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
373
377
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
374
378
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
375
379
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
380
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
376
381
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
377
382
|
|
378
383
|
header_params = {}
|
@@ -492,10 +497,11 @@ module Google
|
|
492
497
|
# Customize the options with defaults
|
493
498
|
metadata = @config.rpcs.list_notification_channels.metadata.to_h
|
494
499
|
|
495
|
-
# Set x-goog-api-client
|
500
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
496
501
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
497
502
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
498
503
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
504
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
499
505
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
500
506
|
|
501
507
|
header_params = {}
|
@@ -584,10 +590,11 @@ module Google
|
|
584
590
|
# Customize the options with defaults
|
585
591
|
metadata = @config.rpcs.get_notification_channel.metadata.to_h
|
586
592
|
|
587
|
-
# Set x-goog-api-client
|
593
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
588
594
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
589
595
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
590
596
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
597
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
591
598
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
592
599
|
|
593
600
|
header_params = {}
|
@@ -686,10 +693,11 @@ module Google
|
|
686
693
|
# Customize the options with defaults
|
687
694
|
metadata = @config.rpcs.create_notification_channel.metadata.to_h
|
688
695
|
|
689
|
-
# Set x-goog-api-client
|
696
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
690
697
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
691
698
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
692
699
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
700
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
693
701
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
694
702
|
|
695
703
|
header_params = {}
|
@@ -782,10 +790,11 @@ module Google
|
|
782
790
|
# Customize the options with defaults
|
783
791
|
metadata = @config.rpcs.update_notification_channel.metadata.to_h
|
784
792
|
|
785
|
-
# Set x-goog-api-client
|
793
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
786
794
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
787
795
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
788
796
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
797
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
789
798
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
790
799
|
|
791
800
|
header_params = {}
|
@@ -879,10 +888,11 @@ module Google
|
|
879
888
|
# Customize the options with defaults
|
880
889
|
metadata = @config.rpcs.delete_notification_channel.metadata.to_h
|
881
890
|
|
882
|
-
# Set x-goog-api-client
|
891
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
883
892
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
884
893
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
885
894
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
895
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
886
896
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
887
897
|
|
888
898
|
header_params = {}
|
@@ -965,10 +975,11 @@ module Google
|
|
965
975
|
# Customize the options with defaults
|
966
976
|
metadata = @config.rpcs.send_notification_channel_verification_code.metadata.to_h
|
967
977
|
|
968
|
-
# Set x-goog-api-client
|
978
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
969
979
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
970
980
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
971
981
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
982
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
972
983
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
973
984
|
|
974
985
|
header_params = {}
|
@@ -1082,10 +1093,11 @@ module Google
|
|
1082
1093
|
# Customize the options with defaults
|
1083
1094
|
metadata = @config.rpcs.get_notification_channel_verification_code.metadata.to_h
|
1084
1095
|
|
1085
|
-
# Set x-goog-api-client
|
1096
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1086
1097
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1087
1098
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1088
1099
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
1100
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1089
1101
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1090
1102
|
|
1091
1103
|
header_params = {}
|
@@ -1177,10 +1189,11 @@ module Google
|
|
1177
1189
|
# Customize the options with defaults
|
1178
1190
|
metadata = @config.rpcs.verify_notification_channel.metadata.to_h
|
1179
1191
|
|
1180
|
-
# Set x-goog-api-client
|
1192
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1181
1193
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1182
1194
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1183
1195
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
1196
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1184
1197
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1185
1198
|
|
1186
1199
|
header_params = {}
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# the time-varying values of a metric.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -233,10 +236,11 @@ module Google
|
|
233
236
|
# Customize the options with defaults
|
234
237
|
metadata = @config.rpcs.query_time_series.metadata.to_h
|
235
238
|
|
236
|
-
# Set x-goog-api-client
|
239
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
237
240
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
238
241
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
239
242
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
243
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
240
244
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
241
245
|
|
242
246
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# taxonomy of categorized Health Metrics.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -265,10 +268,11 @@ module Google
|
|
265
268
|
# Customize the options with defaults
|
266
269
|
metadata = @config.rpcs.create_service.metadata.to_h
|
267
270
|
|
268
|
-
# Set x-goog-api-client
|
271
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
269
272
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
270
273
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
271
274
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
275
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
272
276
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
273
277
|
|
274
278
|
header_params = {}
|
@@ -352,10 +356,11 @@ module Google
|
|
352
356
|
# Customize the options with defaults
|
353
357
|
metadata = @config.rpcs.get_service.metadata.to_h
|
354
358
|
|
355
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
356
360
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
357
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
358
362
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
363
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
359
364
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
360
365
|
|
361
366
|
header_params = {}
|
@@ -472,10 +477,11 @@ module Google
|
|
472
477
|
# Customize the options with defaults
|
473
478
|
metadata = @config.rpcs.list_services.metadata.to_h
|
474
479
|
|
475
|
-
# Set x-goog-api-client
|
480
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
476
481
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
477
482
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
478
483
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
484
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
479
485
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
480
486
|
|
481
487
|
header_params = {}
|
@@ -561,10 +567,11 @@ module Google
|
|
561
567
|
# Customize the options with defaults
|
562
568
|
metadata = @config.rpcs.update_service.metadata.to_h
|
563
569
|
|
564
|
-
# Set x-goog-api-client
|
570
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
565
571
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
566
572
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
567
573
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
574
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
568
575
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
569
576
|
|
570
577
|
header_params = {}
|
@@ -648,10 +655,11 @@ module Google
|
|
648
655
|
# Customize the options with defaults
|
649
656
|
metadata = @config.rpcs.delete_service.metadata.to_h
|
650
657
|
|
651
|
-
# Set x-goog-api-client
|
658
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
652
659
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
653
660
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
654
661
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
662
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
655
663
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
656
664
|
|
657
665
|
header_params = {}
|
@@ -743,10 +751,11 @@ module Google
|
|
743
751
|
# Customize the options with defaults
|
744
752
|
metadata = @config.rpcs.create_service_level_objective.metadata.to_h
|
745
753
|
|
746
|
-
# Set x-goog-api-client
|
754
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
747
755
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
748
756
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
749
757
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
758
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
750
759
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
751
760
|
|
752
761
|
header_params = {}
|
@@ -836,10 +845,11 @@ module Google
|
|
836
845
|
# Customize the options with defaults
|
837
846
|
metadata = @config.rpcs.get_service_level_objective.metadata.to_h
|
838
847
|
|
839
|
-
# Set x-goog-api-client
|
848
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
840
849
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
841
850
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
842
851
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
852
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
843
853
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
844
854
|
|
845
855
|
header_params = {}
|
@@ -943,10 +953,11 @@ module Google
|
|
943
953
|
# Customize the options with defaults
|
944
954
|
metadata = @config.rpcs.list_service_level_objectives.metadata.to_h
|
945
955
|
|
946
|
-
# Set x-goog-api-client
|
956
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
947
957
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
948
958
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
949
959
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
960
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
950
961
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
951
962
|
|
952
963
|
header_params = {}
|
@@ -1032,10 +1043,11 @@ module Google
|
|
1032
1043
|
# Customize the options with defaults
|
1033
1044
|
metadata = @config.rpcs.update_service_level_objective.metadata.to_h
|
1034
1045
|
|
1035
|
-
# Set x-goog-api-client
|
1046
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1036
1047
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1037
1048
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1038
1049
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
1050
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1039
1051
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1040
1052
|
|
1041
1053
|
header_params = {}
|
@@ -1120,10 +1132,11 @@ module Google
|
|
1120
1132
|
# Customize the options with defaults
|
1121
1133
|
metadata = @config.rpcs.delete_service_level_objective.metadata.to_h
|
1122
1134
|
|
1123
|
-
# Set x-goog-api-client
|
1135
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1124
1136
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1125
1137
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1126
1138
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
1139
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1127
1140
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1128
1141
|
|
1129
1142
|
header_params = {}
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# or more alert policies should not fire alerts for the specified duration.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -240,10 +243,11 @@ module Google
|
|
240
243
|
# Customize the options with defaults
|
241
244
|
metadata = @config.rpcs.create_snooze.metadata.to_h
|
242
245
|
|
243
|
-
# Set x-goog-api-client
|
246
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
244
247
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
245
248
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
246
249
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
250
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
247
251
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
248
252
|
|
249
253
|
header_params = {}
|
@@ -356,10 +360,11 @@ module Google
|
|
356
360
|
# Customize the options with defaults
|
357
361
|
metadata = @config.rpcs.list_snoozes.metadata.to_h
|
358
362
|
|
359
|
-
# Set x-goog-api-client
|
363
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
360
364
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
361
365
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
362
366
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
367
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
363
368
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
364
369
|
|
365
370
|
header_params = {}
|
@@ -444,10 +449,11 @@ module Google
|
|
444
449
|
# Customize the options with defaults
|
445
450
|
metadata = @config.rpcs.get_snooze.metadata.to_h
|
446
451
|
|
447
|
-
# Set x-goog-api-client
|
452
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
448
453
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
449
454
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
450
455
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
456
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
451
457
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
452
458
|
|
453
459
|
header_params = {}
|
@@ -553,10 +559,11 @@ module Google
|
|
553
559
|
# Customize the options with defaults
|
554
560
|
metadata = @config.rpcs.update_snooze.metadata.to_h
|
555
561
|
|
556
|
-
# Set x-goog-api-client
|
562
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
557
563
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
558
564
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
559
565
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
566
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
560
567
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
561
568
|
|
562
569
|
header_params = {}
|
@@ -37,6 +37,9 @@ module Google
|
|
37
37
|
# Monitoring, and then clicking on "Uptime".
|
38
38
|
#
|
39
39
|
class Client
|
40
|
+
# @private
|
41
|
+
API_VERSION = ""
|
42
|
+
|
40
43
|
# @private
|
41
44
|
DEFAULT_ENDPOINT_TEMPLATE = "monitoring.$UNIVERSE_DOMAIN$"
|
42
45
|
|
@@ -270,10 +273,11 @@ module Google
|
|
270
273
|
# Customize the options with defaults
|
271
274
|
metadata = @config.rpcs.list_uptime_check_configs.metadata.to_h
|
272
275
|
|
273
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
274
277
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
275
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
276
279
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
280
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
277
281
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
278
282
|
|
279
283
|
header_params = {}
|
@@ -358,10 +362,11 @@ module Google
|
|
358
362
|
# Customize the options with defaults
|
359
363
|
metadata = @config.rpcs.get_uptime_check_config.metadata.to_h
|
360
364
|
|
361
|
-
# Set x-goog-api-client
|
365
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
362
366
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
363
367
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
364
368
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
369
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
365
370
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
366
371
|
|
367
372
|
header_params = {}
|
@@ -449,10 +454,11 @@ module Google
|
|
449
454
|
# Customize the options with defaults
|
450
455
|
metadata = @config.rpcs.create_uptime_check_config.metadata.to_h
|
451
456
|
|
452
|
-
# Set x-goog-api-client
|
457
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
453
458
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
454
459
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
455
460
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
461
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
456
462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
457
463
|
|
458
464
|
header_params = {}
|
@@ -552,10 +558,11 @@ module Google
|
|
552
558
|
# Customize the options with defaults
|
553
559
|
metadata = @config.rpcs.update_uptime_check_config.metadata.to_h
|
554
560
|
|
555
|
-
# Set x-goog-api-client
|
561
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
556
562
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
557
563
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
558
564
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
565
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
559
566
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
560
567
|
|
561
568
|
header_params = {}
|
@@ -641,10 +648,11 @@ module Google
|
|
641
648
|
# Customize the options with defaults
|
642
649
|
metadata = @config.rpcs.delete_uptime_check_config.metadata.to_h
|
643
650
|
|
644
|
-
# Set x-goog-api-client
|
651
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
645
652
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
646
653
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
647
654
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
655
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
648
656
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
649
657
|
|
650
658
|
header_params = {}
|
@@ -739,10 +747,11 @@ module Google
|
|
739
747
|
# Customize the options with defaults
|
740
748
|
metadata = @config.rpcs.list_uptime_check_ips.metadata.to_h
|
741
749
|
|
742
|
-
# Set x-goog-api-client
|
750
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
743
751
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
744
752
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
745
753
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
754
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
746
755
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
747
756
|
|
748
757
|
options.apply_defaults timeout: @config.rpcs.list_uptime_check_ips.timeout,
|
@@ -13,7 +13,7 @@ require 'google/protobuf/wrappers_pb'
|
|
13
13
|
require 'google/rpc/status_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n google/monitoring/v3/alert.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\x1a*google/monitoring/v3/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\
|
16
|
+
descriptor_data = "\n google/monitoring/v3/alert.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\x1a*google/monitoring/v3/mutation_record.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\x8c$\n\x0b\x41lertPolicy\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x46\n\rdocumentation\x18\r \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.Documentation\x12\x46\n\x0buser_labels\x18\x10 \x03(\x0b\x32\x31.google.monitoring.v3.AlertPolicy.UserLabelsEntry\x12?\n\nconditions\x18\x0c \x03(\x0b\x32+.google.monitoring.v3.AlertPolicy.Condition\x12I\n\x08\x63ombiner\x18\x06 \x01(\x0e\x32\x37.google.monitoring.v3.AlertPolicy.ConditionCombinerType\x12+\n\x07\x65nabled\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12$\n\x08validity\x18\x12 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1d\n\x15notification_channels\x18\x0e \x03(\t\x12=\n\x0f\x63reation_record\x18\n \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12=\n\x0fmutation_record\x18\x0b \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12G\n\x0e\x61lert_strategy\x18\x15 \x01(\x0b\x32/.google.monitoring.v3.AlertPolicy.AlertStrategy\x12\x41\n\x08severity\x18\x16 \x01(\x0e\x32*.google.monitoring.v3.AlertPolicy.SeverityB\x03\xe0\x41\x01\x1a\xbe\x01\n\rDocumentation\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\x14\n\x07subject\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x05links\x18\x04 \x03(\x0b\x32\x34.google.monitoring.v3.AlertPolicy.Documentation.LinkB\x03\xe0\x41\x01\x1a)\n\x04Link\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x1a\xf7\x15\n\tCondition\x12\x0c\n\x04name\x18\x0c \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12Z\n\x13\x63ondition_threshold\x18\x01 \x01(\x0b\x32;.google.monitoring.v3.AlertPolicy.Condition.MetricThresholdH\x00\x12U\n\x10\x63ondition_absent\x18\x02 \x01(\x0b\x32\x39.google.monitoring.v3.AlertPolicy.Condition.MetricAbsenceH\x00\x12U\n\x15\x63ondition_matched_log\x18\x14 \x01(\x0b\x32\x34.google.monitoring.v3.AlertPolicy.Condition.LogMatchH\x00\x12{\n#condition_monitoring_query_language\x18\x13 \x01(\x0b\x32L.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageConditionH\x00\x12{\n#condition_prometheus_query_language\x18\x15 \x01(\x0b\x32L.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageConditionH\x00\x1a\x35\n\x07Trigger\x12\x0f\n\x05\x63ount\x18\x01 \x01(\x05H\x00\x12\x11\n\x07percent\x18\x02 \x01(\x01H\x00\x42\x06\n\x04type\x1a\x9e\x05\n\x0fMetricThreshold\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x0c\x61ggregations\x18\x08 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x1a\n\x12\x64\x65nominator_filter\x18\t \x01(\t\x12\x43\n\x18\x64\x65nominator_aggregations\x18\n \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12\x65\n\x10\x66orecast_options\x18\x0c \x01(\x0b\x32K.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold.ForecastOptions\x12\x38\n\ncomparison\x18\x04 \x01(\x0e\x32$.google.monitoring.v3.ComparisonType\x12\x17\n\x0fthreshold_value\x18\x05 \x01(\x01\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x07 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x12\x62\n\x17\x65valuation_missing_data\x18\x0b \x01(\x0e\x32\x41.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData\x1aK\n\x0f\x46orecastOptions\x12\x38\n\x10\x66orecast_horizon\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x1a\xd0\x01\n\rMetricAbsence\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x0c\x61ggregations\x18\x05 \x03(\x0b\x32!.google.monitoring.v3.Aggregation\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x1a\xbc\x01\n\x08LogMatch\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x10label_extractors\x18\x02 \x03(\x0b\x32I.google.monitoring.v3.AlertPolicy.Condition.LogMatch.LabelExtractorsEntry\x1a\x36\n\x14LabelExtractorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x88\x02\n MonitoringQueryLanguageCondition\x12\r\n\x05query\x18\x01 \x01(\t\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x07trigger\x18\x03 \x01(\x0b\x32\x33.google.monitoring.v3.AlertPolicy.Condition.Trigger\x12\x62\n\x17\x65valuation_missing_data\x18\x04 \x01(\x0e\x32\x41.google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData\x1a\xf5\x02\n PrometheusQueryLanguageCondition\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x30\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12;\n\x13\x65valuation_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12m\n\x06labels\x18\x04 \x03(\x0b\x32X.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition.LabelsEntryB\x03\xe0\x41\x01\x12\x17\n\nrule_group\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nalert_rule\x18\x06 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xad\x01\n\x15\x45valuationMissingData\x12\'\n#EVALUATION_MISSING_DATA_UNSPECIFIED\x10\x00\x12$\n EVALUATION_MISSING_DATA_INACTIVE\x10\x01\x12\"\n\x1e\x45VALUATION_MISSING_DATA_ACTIVE\x10\x02\x12!\n\x1d\x45VALUATION_MISSING_DATA_NO_OP\x10\x03:\x97\x02\xea\x41\x93\x02\n.monitoring.googleapis.com/AlertPolicyCondition\x12\x46projects/{project}/alertPolicies/{alert_policy}/conditions/{condition}\x12Porganizations/{organization}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x44\x66olders/{folder}/alertPolicies/{alert_policy}/conditions/{condition}\x12\x01*B\x0b\n\tcondition\x1a\xd7\x03\n\rAlertStrategy\x12\x66\n\x17notification_rate_limit\x18\x01 \x01(\x0b\x32\x45.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit\x12-\n\nauto_close\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12r\n\x1dnotification_channel_strategy\x18\x04 \x03(\x0b\x32K.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy\x1a\x42\n\x15NotificationRateLimit\x12)\n\x06period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1aw\n\x1bNotificationChannelStrategy\x12\"\n\x1anotification_channel_names\x18\x01 \x03(\t\x12\x34\n\x11renotify_interval\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"a\n\x15\x43onditionCombinerType\x12\x17\n\x13\x43OMBINE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41ND\x10\x01\x12\x06\n\x02OR\x10\x02\x12\x1e\n\x1a\x41ND_WITH_MATCHING_RESOURCE\x10\x03\"J\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RITICAL\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\x0b\n\x07WARNING\x10\x03:\xc9\x01\xea\x41\xc5\x01\n%monitoring.googleapis.com/AlertPolicy\x12/projects/{project}/alertPolicies/{alert_policy}\x12\x39organizations/{organization}/alertPolicies/{alert_policy}\x12-folders/{folder}/alertPolicies/{alert_policy}\x12\x01*B\xc5\x01\n\x18\x63om.google.monitoring.v3B\nAlertProtoP\x01ZAcloud.google.com/go/monitoring/apiv3/v2/monitoringpb;monitoringpb\xaa\x02\x1aGoogle.Cloud.Monitoring.V3\xca\x02\x1aGoogle\\Cloud\\Monitoring\\V3\xea\x02\x1dGoogle::Cloud::Monitoring::V3b\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -50,6 +50,7 @@ module Google
|
|
50
50
|
module V3
|
51
51
|
AlertPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy").msgclass
|
52
52
|
AlertPolicy::Documentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Documentation").msgclass
|
53
|
+
AlertPolicy::Documentation::Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Documentation.Link").msgclass
|
53
54
|
AlertPolicy::Condition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition").msgclass
|
54
55
|
AlertPolicy::Condition::Trigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.Trigger").msgclass
|
55
56
|
AlertPolicy::Condition::MetricThreshold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricThreshold").msgclass
|
@@ -161,9 +161,30 @@ module Google
|
|
161
161
|
# variables](https://cloud.google.com/monitoring/alerts/doc-variables).
|
162
162
|
# If this field is missing or empty, a default subject line will be
|
163
163
|
# generated.
|
164
|
+
# @!attribute [rw] links
|
165
|
+
# @return [::Array<::Google::Cloud::Monitoring::V3::AlertPolicy::Documentation::Link>]
|
166
|
+
# Optional. Links to content such as playbooks, repositories, and other
|
167
|
+
# resources. This field can contain up to 3 entries.
|
164
168
|
class Documentation
|
165
169
|
include ::Google::Protobuf::MessageExts
|
166
170
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
171
|
+
|
172
|
+
# Links to content such as playbooks, repositories, and other resources.
|
173
|
+
# @!attribute [rw] display_name
|
174
|
+
# @return [::String]
|
175
|
+
# A short display name for the link. The display name must not be empty
|
176
|
+
# or exceed 63 characters. Example: "playbook".
|
177
|
+
# @!attribute [rw] url
|
178
|
+
# @return [::String]
|
179
|
+
# The url of a webpage.
|
180
|
+
# A url can be templatized by using variables
|
181
|
+
# in the path or the query parameters. The total length of a URL should
|
182
|
+
# not exceed 2083 characters before and after variable expansion.
|
183
|
+
# Example: "https://my_domain.com/playbook?name=$\\{resource.name}"
|
184
|
+
class Link
|
185
|
+
include ::Google::Protobuf::MessageExts
|
186
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
187
|
+
end
|
167
188
|
end
|
168
189
|
|
169
190
|
# A condition is a true/false test that determines when an alerting policy
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring-v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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: 2024-
|
11
|
+
date: 2024-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|