google-cloud-monitoring-v3 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +38 -15
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +29 -7
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +30 -10
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +39 -21
- data/lib/google/cloud/monitoring/v3/query_service/client.rb +28 -2
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +29 -11
- data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +28 -5
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +29 -7
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/monitoring/v3/alert_pb.rb +2 -1
- data/lib/google/monitoring/v3/alert_service_pb.rb +1 -1
- data/lib/google/monitoring/v3/notification_pb.rb +2 -1
- data/lib/google/monitoring/v3/notification_service_pb.rb +1 -1
- data/lib/google/monitoring/v3/snooze_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/api/metric.rb +18 -0
- data/proto_docs/google/monitoring/v3/alert.rb +39 -20
- data/proto_docs/google/monitoring/v3/alert_service.rb +10 -9
- data/proto_docs/google/monitoring/v3/notification.rb +1 -1
- data/proto_docs/google/monitoring/v3/notification_service.rb +10 -10
- data/proto_docs/google/monitoring/v3/snooze.rb +1 -1
- metadata +5 -5
@@ -198,8 +198,28 @@ module Google
|
|
198
198
|
universe_domain: @config.universe_domain,
|
199
199
|
channel_args: @config.channel_args,
|
200
200
|
interceptors: @config.interceptors,
|
201
|
-
channel_pool_config: @config.channel_pool
|
201
|
+
channel_pool_config: @config.channel_pool,
|
202
|
+
logger: @config.logger
|
202
203
|
)
|
204
|
+
|
205
|
+
@service_monitoring_service_stub.stub_logger&.info do |entry|
|
206
|
+
entry.set_system_name
|
207
|
+
entry.set_service
|
208
|
+
entry.message = "Created client for #{entry.service}"
|
209
|
+
entry.set_credentials_fields credentials
|
210
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
211
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
212
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
##
|
217
|
+
# The logger used for request/response debug logging.
|
218
|
+
#
|
219
|
+
# @return [Logger]
|
220
|
+
#
|
221
|
+
def logger
|
222
|
+
@service_monitoring_service_stub.logger
|
203
223
|
end
|
204
224
|
|
205
225
|
# Service calls
|
@@ -293,7 +313,6 @@ module Google
|
|
293
313
|
|
294
314
|
@service_monitoring_service_stub.call_rpc :create_service, request, options: options do |response, operation|
|
295
315
|
yield response, operation if block_given?
|
296
|
-
return response
|
297
316
|
end
|
298
317
|
rescue ::GRPC::BadStatus => e
|
299
318
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -381,7 +400,6 @@ module Google
|
|
381
400
|
|
382
401
|
@service_monitoring_service_stub.call_rpc :get_service, request, options: options do |response, operation|
|
383
402
|
yield response, operation if block_given?
|
384
|
-
return response
|
385
403
|
end
|
386
404
|
rescue ::GRPC::BadStatus => e
|
387
405
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -503,7 +521,7 @@ module Google
|
|
503
521
|
@service_monitoring_service_stub.call_rpc :list_services, request, options: options do |response, operation|
|
504
522
|
response = ::Gapic::PagedEnumerable.new @service_monitoring_service_stub, :list_services, request, response, operation, options
|
505
523
|
yield response, operation if block_given?
|
506
|
-
|
524
|
+
throw :response, response
|
507
525
|
end
|
508
526
|
rescue ::GRPC::BadStatus => e
|
509
527
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -592,7 +610,6 @@ module Google
|
|
592
610
|
|
593
611
|
@service_monitoring_service_stub.call_rpc :update_service, request, options: options do |response, operation|
|
594
612
|
yield response, operation if block_given?
|
595
|
-
return response
|
596
613
|
end
|
597
614
|
rescue ::GRPC::BadStatus => e
|
598
615
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -680,7 +697,6 @@ module Google
|
|
680
697
|
|
681
698
|
@service_monitoring_service_stub.call_rpc :delete_service, request, options: options do |response, operation|
|
682
699
|
yield response, operation if block_given?
|
683
|
-
return response
|
684
700
|
end
|
685
701
|
rescue ::GRPC::BadStatus => e
|
686
702
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -776,7 +792,6 @@ module Google
|
|
776
792
|
|
777
793
|
@service_monitoring_service_stub.call_rpc :create_service_level_objective, request, options: options do |response, operation|
|
778
794
|
yield response, operation if block_given?
|
779
|
-
return response
|
780
795
|
end
|
781
796
|
rescue ::GRPC::BadStatus => e
|
782
797
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -870,7 +885,6 @@ module Google
|
|
870
885
|
|
871
886
|
@service_monitoring_service_stub.call_rpc :get_service_level_objective, request, options: options do |response, operation|
|
872
887
|
yield response, operation if block_given?
|
873
|
-
return response
|
874
888
|
end
|
875
889
|
rescue ::GRPC::BadStatus => e
|
876
890
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -979,7 +993,7 @@ module Google
|
|
979
993
|
@service_monitoring_service_stub.call_rpc :list_service_level_objectives, request, options: options do |response, operation|
|
980
994
|
response = ::Gapic::PagedEnumerable.new @service_monitoring_service_stub, :list_service_level_objectives, request, response, operation, options
|
981
995
|
yield response, operation if block_given?
|
982
|
-
|
996
|
+
throw :response, response
|
983
997
|
end
|
984
998
|
rescue ::GRPC::BadStatus => e
|
985
999
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1068,7 +1082,6 @@ module Google
|
|
1068
1082
|
|
1069
1083
|
@service_monitoring_service_stub.call_rpc :update_service_level_objective, request, options: options do |response, operation|
|
1070
1084
|
yield response, operation if block_given?
|
1071
|
-
return response
|
1072
1085
|
end
|
1073
1086
|
rescue ::GRPC::BadStatus => e
|
1074
1087
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1157,7 +1170,6 @@ module Google
|
|
1157
1170
|
|
1158
1171
|
@service_monitoring_service_stub.call_rpc :delete_service_level_objective, request, options: options do |response, operation|
|
1159
1172
|
yield response, operation if block_given?
|
1160
|
-
return response
|
1161
1173
|
end
|
1162
1174
|
rescue ::GRPC::BadStatus => e
|
1163
1175
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1246,6 +1258,11 @@ module Google
|
|
1246
1258
|
# default endpoint URL. The default value of nil uses the environment
|
1247
1259
|
# universe (usually the default "googleapis.com" universe).
|
1248
1260
|
# @return [::String,nil]
|
1261
|
+
# @!attribute [rw] logger
|
1262
|
+
# A custom logger to use for request/response debug logging, or the value
|
1263
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1264
|
+
# explicitly disable logging.
|
1265
|
+
# @return [::Logger,:default,nil]
|
1249
1266
|
#
|
1250
1267
|
class Configuration
|
1251
1268
|
extend ::Gapic::Config
|
@@ -1270,6 +1287,7 @@ module Google
|
|
1270
1287
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1271
1288
|
config_attr :quota_project, nil, ::String, nil
|
1272
1289
|
config_attr :universe_domain, nil, ::String, nil
|
1290
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1273
1291
|
|
1274
1292
|
# @private
|
1275
1293
|
def initialize parent_config = nil
|
@@ -173,8 +173,28 @@ module Google
|
|
173
173
|
universe_domain: @config.universe_domain,
|
174
174
|
channel_args: @config.channel_args,
|
175
175
|
interceptors: @config.interceptors,
|
176
|
-
channel_pool_config: @config.channel_pool
|
176
|
+
channel_pool_config: @config.channel_pool,
|
177
|
+
logger: @config.logger
|
177
178
|
)
|
179
|
+
|
180
|
+
@snooze_service_stub.stub_logger&.info do |entry|
|
181
|
+
entry.set_system_name
|
182
|
+
entry.set_service
|
183
|
+
entry.message = "Created client for #{entry.service}"
|
184
|
+
entry.set_credentials_fields credentials
|
185
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
186
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
187
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
##
|
192
|
+
# The logger used for request/response debug logging.
|
193
|
+
#
|
194
|
+
# @return [Logger]
|
195
|
+
#
|
196
|
+
def logger
|
197
|
+
@snooze_service_stub.logger
|
178
198
|
end
|
179
199
|
|
180
200
|
# Service calls
|
@@ -268,7 +288,6 @@ module Google
|
|
268
288
|
|
269
289
|
@snooze_service_stub.call_rpc :create_snooze, request, options: options do |response, operation|
|
270
290
|
yield response, operation if block_given?
|
271
|
-
return response
|
272
291
|
end
|
273
292
|
rescue ::GRPC::BadStatus => e
|
274
293
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -386,7 +405,7 @@ module Google
|
|
386
405
|
@snooze_service_stub.call_rpc :list_snoozes, request, options: options do |response, operation|
|
387
406
|
response = ::Gapic::PagedEnumerable.new @snooze_service_stub, :list_snoozes, request, response, operation, options
|
388
407
|
yield response, operation if block_given?
|
389
|
-
|
408
|
+
throw :response, response
|
390
409
|
end
|
391
410
|
rescue ::GRPC::BadStatus => e
|
392
411
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -474,7 +493,6 @@ module Google
|
|
474
493
|
|
475
494
|
@snooze_service_stub.call_rpc :get_snooze, request, options: options do |response, operation|
|
476
495
|
yield response, operation if block_given?
|
477
|
-
return response
|
478
496
|
end
|
479
497
|
rescue ::GRPC::BadStatus => e
|
480
498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -584,7 +602,6 @@ module Google
|
|
584
602
|
|
585
603
|
@snooze_service_stub.call_rpc :update_snooze, request, options: options do |response, operation|
|
586
604
|
yield response, operation if block_given?
|
587
|
-
return response
|
588
605
|
end
|
589
606
|
rescue ::GRPC::BadStatus => e
|
590
607
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -673,6 +690,11 @@ module Google
|
|
673
690
|
# default endpoint URL. The default value of nil uses the environment
|
674
691
|
# universe (usually the default "googleapis.com" universe).
|
675
692
|
# @return [::String,nil]
|
693
|
+
# @!attribute [rw] logger
|
694
|
+
# A custom logger to use for request/response debug logging, or the value
|
695
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
696
|
+
# explicitly disable logging.
|
697
|
+
# @return [::Logger,:default,nil]
|
676
698
|
#
|
677
699
|
class Configuration
|
678
700
|
extend ::Gapic::Config
|
@@ -697,6 +719,7 @@ module Google
|
|
697
719
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
698
720
|
config_attr :quota_project, nil, ::String, nil
|
699
721
|
config_attr :universe_domain, nil, ::String, nil
|
722
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
700
723
|
|
701
724
|
# @private
|
702
725
|
def initialize parent_config = nil
|
@@ -188,8 +188,28 @@ module Google
|
|
188
188
|
universe_domain: @config.universe_domain,
|
189
189
|
channel_args: @config.channel_args,
|
190
190
|
interceptors: @config.interceptors,
|
191
|
-
channel_pool_config: @config.channel_pool
|
191
|
+
channel_pool_config: @config.channel_pool,
|
192
|
+
logger: @config.logger
|
192
193
|
)
|
194
|
+
|
195
|
+
@uptime_check_service_stub.stub_logger&.info do |entry|
|
196
|
+
entry.set_system_name
|
197
|
+
entry.set_service
|
198
|
+
entry.message = "Created client for #{entry.service}"
|
199
|
+
entry.set_credentials_fields credentials
|
200
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
201
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
202
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
##
|
207
|
+
# The logger used for request/response debug logging.
|
208
|
+
#
|
209
|
+
# @return [Logger]
|
210
|
+
#
|
211
|
+
def logger
|
212
|
+
@uptime_check_service_stub.logger
|
193
213
|
end
|
194
214
|
|
195
215
|
# Service calls
|
@@ -299,7 +319,7 @@ module Google
|
|
299
319
|
@uptime_check_service_stub.call_rpc :list_uptime_check_configs, request, options: options do |response, operation|
|
300
320
|
response = ::Gapic::PagedEnumerable.new @uptime_check_service_stub, :list_uptime_check_configs, request, response, operation, options
|
301
321
|
yield response, operation if block_given?
|
302
|
-
|
322
|
+
throw :response, response
|
303
323
|
end
|
304
324
|
rescue ::GRPC::BadStatus => e
|
305
325
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -387,7 +407,6 @@ module Google
|
|
387
407
|
|
388
408
|
@uptime_check_service_stub.call_rpc :get_uptime_check_config, request, options: options do |response, operation|
|
389
409
|
yield response, operation if block_given?
|
390
|
-
return response
|
391
410
|
end
|
392
411
|
rescue ::GRPC::BadStatus => e
|
393
412
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -479,7 +498,6 @@ module Google
|
|
479
498
|
|
480
499
|
@uptime_check_service_stub.call_rpc :create_uptime_check_config, request, options: options do |response, operation|
|
481
500
|
yield response, operation if block_given?
|
482
|
-
return response
|
483
501
|
end
|
484
502
|
rescue ::GRPC::BadStatus => e
|
485
503
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -583,7 +601,6 @@ module Google
|
|
583
601
|
|
584
602
|
@uptime_check_service_stub.call_rpc :update_uptime_check_config, request, options: options do |response, operation|
|
585
603
|
yield response, operation if block_given?
|
586
|
-
return response
|
587
604
|
end
|
588
605
|
rescue ::GRPC::BadStatus => e
|
589
606
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -673,7 +690,6 @@ module Google
|
|
673
690
|
|
674
691
|
@uptime_check_service_stub.call_rpc :delete_uptime_check_config, request, options: options do |response, operation|
|
675
692
|
yield response, operation if block_given?
|
676
|
-
return response
|
677
693
|
end
|
678
694
|
rescue ::GRPC::BadStatus => e
|
679
695
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -765,7 +781,7 @@ module Google
|
|
765
781
|
@uptime_check_service_stub.call_rpc :list_uptime_check_ips, request, options: options do |response, operation|
|
766
782
|
response = ::Gapic::PagedEnumerable.new @uptime_check_service_stub, :list_uptime_check_ips, request, response, operation, options
|
767
783
|
yield response, operation if block_given?
|
768
|
-
|
784
|
+
throw :response, response
|
769
785
|
end
|
770
786
|
rescue ::GRPC::BadStatus => e
|
771
787
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -854,6 +870,11 @@ module Google
|
|
854
870
|
# default endpoint URL. The default value of nil uses the environment
|
855
871
|
# universe (usually the default "googleapis.com" universe).
|
856
872
|
# @return [::String,nil]
|
873
|
+
# @!attribute [rw] logger
|
874
|
+
# A custom logger to use for request/response debug logging, or the value
|
875
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
876
|
+
# explicitly disable logging.
|
877
|
+
# @return [::Logger,:default,nil]
|
857
878
|
#
|
858
879
|
class Configuration
|
859
880
|
extend ::Gapic::Config
|
@@ -878,6 +899,7 @@ module Google
|
|
878
899
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
879
900
|
config_attr :quota_project, nil, ::String, nil
|
880
901
|
config_attr :universe_domain, nil, ::String, nil
|
902
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
881
903
|
|
882
904
|
# @private
|
883
905
|
def initialize parent_config = nil
|
@@ -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\"\xc6%\n\x0b\x41lertPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\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\x8c\x05\n\rAlertStrategy\x12\x66\n\x17notification_rate_limit\x18\x01 \x01(\x0b\x32\x45.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit\x12`\n\x14notification_prompts\x18\x02 \x03(\x0e\x32\x42.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt\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\"Q\n\x12NotificationPrompt\x12#\n\x1fNOTIFICATION_PROMPT_UNSPECIFIED\x10\x00\x12\n\n\x06OPENED\x10\x01\x12\n\n\x06\x43LOSED\x10\x03\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
|
|
@@ -63,6 +63,7 @@ module Google
|
|
63
63
|
AlertPolicy::AlertStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy").msgclass
|
64
64
|
AlertPolicy::AlertStrategy::NotificationRateLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit").msgclass
|
65
65
|
AlertPolicy::AlertStrategy::NotificationChannelStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy").msgclass
|
66
|
+
AlertPolicy::AlertStrategy::NotificationPrompt = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt").enummodule
|
66
67
|
AlertPolicy::ConditionCombinerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.ConditionCombinerType").enummodule
|
67
68
|
AlertPolicy::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Severity").enummodule
|
68
69
|
end
|
@@ -13,7 +13,7 @@ require 'google/protobuf/empty_pb'
|
|
13
13
|
require 'google/protobuf/field_mask_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n(google/monitoring/v3/alert_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/monitoring/v3/alert.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x95\x01\n\x18\x43reateAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%monitoring.googleapis.com/AlertPolicy\x12<\n\x0c\x61lert_policy\x18\x02 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicyB\x03\xe0\x41\x02\"T\n\x15GetAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy\"\
|
16
|
+
descriptor_data = "\n(google/monitoring/v3/alert_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/monitoring/v3/alert.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x95\x01\n\x18\x43reateAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%monitoring.googleapis.com/AlertPolicy\x12<\n\x0c\x61lert_policy\x18\x02 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicyB\x03\xe0\x41\x02\"T\n\x15GetAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy\"\xb4\x01\n\x18ListAlertPoliciesRequest\x12;\n\x04name\x18\x04 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%monitoring.googleapis.com/AlertPolicy\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x19ListAlertPoliciesResponse\x12\x39\n\x0e\x61lert_policies\x18\x03 \x03(\x0b\x32!.google.monitoring.v3.AlertPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x04 \x01(\x05\"\x8e\x01\n\x18UpdateAlertPolicyRequest\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12<\n\x0c\x61lert_policy\x18\x03 \x01(\x0b\x32!.google.monitoring.v3.AlertPolicyB\x03\xe0\x41\x02\"W\n\x18\x44\x65leteAlertPolicyRequest\x12;\n\x04name\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy2\x9e\x08\n\x12\x41lertPolicyService\x12\xa8\x01\n\x11ListAlertPolicies\x12..google.monitoring.v3.ListAlertPoliciesRequest\x1a/.google.monitoring.v3.ListAlertPoliciesResponse\"2\xda\x41\x04name\x82\xd3\xe4\x93\x02%\x12#/v3/{name=projects/*}/alertPolicies\x12\x96\x01\n\x0eGetAlertPolicy\x12+.google.monitoring.v3.GetAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'\x12%/v3/{name=projects/*/alertPolicies/*}\x12\xb5\x01\n\x11\x43reateAlertPolicy\x12..google.monitoring.v3.CreateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"M\xda\x41\x11name,alert_policy\x82\xd3\xe4\x93\x02\x33\"#/v3/{name=projects/*}/alertPolicies:\x0c\x61lert_policy\x12\x91\x01\n\x11\x44\x65leteAlertPolicy\x12..google.monitoring.v3.DeleteAlertPolicyRequest\x1a\x16.google.protobuf.Empty\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'*%/v3/{name=projects/*/alertPolicies/*}\x12\xcb\x01\n\x11UpdateAlertPolicy\x12..google.monitoring.v3.UpdateAlertPolicyRequest\x1a!.google.monitoring.v3.AlertPolicy\"c\xda\x41\x18update_mask,alert_policy\x82\xd3\xe4\x93\x02\x42\x32\x32/v3/{alert_policy.name=projects/*/alertPolicies/*}:\x0c\x61lert_policy\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xcc\x01\n\x18\x63om.google.monitoring.v3B\x11\x41lertServiceProtoP\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
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/api/label_pb'
|
8
9
|
require 'google/api/launch_stage_pb'
|
9
10
|
require 'google/api/resource_pb'
|
@@ -12,7 +13,7 @@ require 'google/monitoring/v3/mutation_record_pb'
|
|
12
13
|
require 'google/protobuf/wrappers_pb'
|
13
14
|
|
14
15
|
|
15
|
-
descriptor_data = "\n\'google/monitoring/v3/notification.proto\x12\x14google.monitoring.v3\x1a\x16google/api/label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\x1a*google/monitoring/v3/mutation_record.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xa5\x04\n\x1dNotificationChannelDescriptor\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12+\n\x06labels\x18\x04 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12>\n\x0fsupported_tiers\x18\x05 \x03(\x0e\x32!.google.monitoring.v3.ServiceTierB\x02\x18\x01\x12-\n\x0claunch_stage\x18\x07 \x01(\x0e\x32\x17.google.api.LaunchStage:\xa0\x02\xea\x41\x9c\x02\n7monitoring.googleapis.com/NotificationChannelDescriptor\x12\x46projects/{project}/notificationChannelDescriptors/{channel_descriptor}\x12Porganizations/{organization}/notificationChannelDescriptors/{channel_descriptor}\x12\x44\x66olders/{folder}/notificationChannelDescriptors/{channel_descriptor}\x12\x01*\"\
|
16
|
+
descriptor_data = "\n\'google/monitoring/v3/notification.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x16google/api/label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\x1a*google/monitoring/v3/mutation_record.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xa5\x04\n\x1dNotificationChannelDescriptor\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12+\n\x06labels\x18\x04 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12>\n\x0fsupported_tiers\x18\x05 \x03(\x0e\x32!.google.monitoring.v3.ServiceTierB\x02\x18\x01\x12-\n\x0claunch_stage\x18\x07 \x01(\x0e\x32\x17.google.api.LaunchStage:\xa0\x02\xea\x41\x9c\x02\n7monitoring.googleapis.com/NotificationChannelDescriptor\x12\x46projects/{project}/notificationChannelDescriptors/{channel_descriptor}\x12Porganizations/{organization}/notificationChannelDescriptors/{channel_descriptor}\x12\x44\x66olders/{folder}/notificationChannelDescriptors/{channel_descriptor}\x12\x01*\"\xbb\x07\n\x13NotificationChannel\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x11\n\x04name\x18\x06 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x35.google.monitoring.v3.NotificationChannel.LabelsEntry\x12N\n\x0buser_labels\x18\x08 \x03(\x0b\x32\x39.google.monitoring.v3.NotificationChannel.UserLabelsEntry\x12Y\n\x13verification_status\x18\t \x01(\x0e\x32<.google.monitoring.v3.NotificationChannel.VerificationStatus\x12+\n\x07\x65nabled\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12=\n\x0f\x63reation_record\x18\x0c \x01(\x0b\x32$.google.monitoring.v3.MutationRecord\x12>\n\x10mutation_records\x18\r \x03(\x0b\x32$.google.monitoring.v3.MutationRecord\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"W\n\x12VerificationStatus\x12#\n\x1fVERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\x0e\n\nUNVERIFIED\x10\x01\x12\x0c\n\x08VERIFIED\x10\x02:\xfe\x01\xea\x41\xfa\x01\n-monitoring.googleapis.com/NotificationChannel\x12>projects/{project}/notificationChannels/{notification_channel}\x12Horganizations/{organization}/notificationChannels/{notification_channel}\x12<folders/{folder}/notificationChannels/{notification_channel}\x12\x01*B\xcc\x01\n\x18\x63om.google.monitoring.v3B\x11NotificationProtoP\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"
|
16
17
|
|
17
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
19
|
|
@@ -14,7 +14,7 @@ require 'google/protobuf/field_mask_pb'
|
|
14
14
|
require 'google/protobuf/timestamp_pb'
|
15
15
|
|
16
16
|
|
17
|
-
descriptor_data = "\n/google/monitoring/v3/notification_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/monitoring/v3/notification.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa1\x01\n)ListNotificationChannelDescriptorsRequest\x12M\n\x04name\x18\x04 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37monitoring.googleapis.com/NotificationChannelDescriptor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x97\x01\n*ListNotificationChannelDescriptorsResponse\x12P\n\x13\x63hannel_descriptors\x18\x01 \x03(\x0b\x32\x33.google.monitoring.v3.NotificationChannelDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"x\n\'GetNotificationChannelDescriptorRequest\x12M\n\x04name\x18\x03 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7monitoring.googleapis.com/NotificationChannelDescriptor\"\xb5\x01\n CreateNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-monitoring.googleapis.com/NotificationChannel\x12L\n\x14notification_channel\x18\x02 \x01(\x0b\x32).google.monitoring.v3.NotificationChannelB\x03\xe0\x41\x02\"\
|
17
|
+
descriptor_data = "\n/google/monitoring/v3/notification_service.proto\x12\x14google.monitoring.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/monitoring/v3/notification.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa1\x01\n)ListNotificationChannelDescriptorsRequest\x12M\n\x04name\x18\x04 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37monitoring.googleapis.com/NotificationChannelDescriptor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x97\x01\n*ListNotificationChannelDescriptorsResponse\x12P\n\x13\x63hannel_descriptors\x18\x01 \x03(\x0b\x32\x33.google.monitoring.v3.NotificationChannelDescriptor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"x\n\'GetNotificationChannelDescriptorRequest\x12M\n\x04name\x18\x03 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7monitoring.googleapis.com/NotificationChannelDescriptor\"\xb5\x01\n CreateNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-monitoring.googleapis.com/NotificationChannel\x12L\n\x14notification_channel\x18\x02 \x01(\x0b\x32).google.monitoring.v3.NotificationChannelB\x03\xe0\x41\x02\"\xc3\x01\n\x1fListNotificationChannelsRequest\x12\x43\n\x04name\x18\x05 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-monitoring.googleapis.com/NotificationChannel\x12\x13\n\x06\x66ilter\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n ListNotificationChannelsResponse\x12H\n\x15notification_channels\x18\x03 \x03(\x0b\x32).google.monitoring.v3.NotificationChannel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x04 \x01(\x05\"d\n\x1dGetNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\"\xa6\x01\n UpdateNotificationChannelRequest\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12L\n\x14notification_channel\x18\x03 \x01(\x0b\x32).google.monitoring.v3.NotificationChannelB\x03\xe0\x41\x02\"v\n DeleteNotificationChannelRequest\x12\x43\n\x04name\x18\x03 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12\r\n\x05\x66orce\x18\x05 \x01(\x08\"u\n.SendNotificationChannelVerificationCodeRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\"\xa5\x01\n-GetNotificationChannelVerificationCodeRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"o\n.GetNotificationChannelVerificationCodeResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"z\n VerifyNotificationChannelRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-monitoring.googleapis.com/NotificationChannel\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\x32\xea\x12\n\x1aNotificationChannelService\x12\xec\x01\n\"ListNotificationChannelDescriptors\x12?.google.monitoring.v3.ListNotificationChannelDescriptorsRequest\x1a@.google.monitoring.v3.ListNotificationChannelDescriptorsResponse\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*}/notificationChannelDescriptors\x12\xdd\x01\n GetNotificationChannelDescriptor\x12=.google.monitoring.v3.GetNotificationChannelDescriptorRequest\x1a\x33.google.monitoring.v3.NotificationChannelDescriptor\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v3/{name=projects/*/notificationChannelDescriptors/*}\x12\xc4\x01\n\x18ListNotificationChannels\x12\x35.google.monitoring.v3.ListNotificationChannelsRequest\x1a\x36.google.monitoring.v3.ListNotificationChannelsResponse\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*}/notificationChannels\x12\xb5\x01\n\x16GetNotificationChannel\x12\x33.google.monitoring.v3.GetNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v3/{name=projects/*/notificationChannels/*}\x12\xe4\x01\n\x19\x43reateNotificationChannel\x12\x36.google.monitoring.v3.CreateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"d\xda\x41\x19name,notification_channel\x82\xd3\xe4\x93\x02\x42\"*/v3/{name=projects/*}/notificationChannels:\x14notification_channel\x12\x83\x02\n\x19UpdateNotificationChannel\x12\x36.google.monitoring.v3.UpdateNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"\x82\x01\xda\x41 update_mask,notification_channel\x82\xd3\xe4\x93\x02Y2A/v3/{notification_channel.name=projects/*/notificationChannels/*}:\x14notification_channel\x12\xae\x01\n\x19\x44\x65leteNotificationChannel\x12\x36.google.monitoring.v3.DeleteNotificationChannelRequest\x1a\x16.google.protobuf.Empty\"A\xda\x41\nname,force\x82\xd3\xe4\x93\x02.*,/v3/{name=projects/*/notificationChannels/*}\x12\xdc\x01\n\'SendNotificationChannelVerificationCode\x12\x44.google.monitoring.v3.SendNotificationChannelVerificationCodeRequest\x1a\x16.google.protobuf.Empty\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\"A/v3/{name=projects/*/notificationChannels/*}:sendVerificationCode:\x01*\x12\x87\x02\n&GetNotificationChannelVerificationCode\x12\x43.google.monitoring.v3.GetNotificationChannelVerificationCodeRequest\x1a\x44.google.monitoring.v3.GetNotificationChannelVerificationCodeResponse\"R\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45\"@/v3/{name=projects/*/notificationChannels/*}:getVerificationCode:\x01*\x12\xca\x01\n\x19VerifyNotificationChannel\x12\x36.google.monitoring.v3.VerifyNotificationChannelRequest\x1a).google.monitoring.v3.NotificationChannel\"J\xda\x41\tname,code\x82\xd3\xe4\x93\x02\x38\"3/v3/{name=projects/*/notificationChannels/*}:verify:\x01*\x1a\xa9\x01\xca\x41\x19monitoring.googleapis.com\xd2\x41\x89\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.readB\xd3\x01\n\x18\x63om.google.monitoring.v3B\x18NotificationServiceProtoP\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"
|
18
18
|
|
19
19
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
20
|
|
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/monitoring/v3/common_pb'
|
10
10
|
|
11
11
|
|
12
|
-
descriptor_data = "\n!google/monitoring/v3/snooze.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\"\xc5\x02\n\x06Snooze\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\
|
12
|
+
descriptor_data = "\n!google/monitoring/v3/snooze.proto\x12\x14google.monitoring.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/monitoring/v3/common.proto\"\xc5\x02\n\x06Snooze\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12<\n\x08\x63riteria\x18\x03 \x01(\x0b\x32%.google.monitoring.v3.Snooze.CriteriaB\x03\xe0\x41\x02\x12\x39\n\x08interval\x18\x04 \x01(\x0b\x32\".google.monitoring.v3.TimeIntervalB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x1aH\n\x08\x43riteria\x12<\n\x08policies\x18\x01 \x03(\tB*\xfa\x41\'\n%monitoring.googleapis.com/AlertPolicy:J\xea\x41G\n monitoring.googleapis.com/Snooze\x12#projects/{project}/snoozes/{snooze}B\xc6\x01\n\x18\x63om.google.monitoring.v3B\x0bSnoozeProtoP\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"
|
13
13
|
|
14
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
15
|
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -212,6 +215,12 @@ module Google
|
|
212
215
|
# enabled. By default, asynchronous REST clients will not be generated.
|
213
216
|
# This feature will be enabled by default 1 month after launching the
|
214
217
|
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
215
224
|
class ExperimentalFeatures
|
216
225
|
include ::Google::Protobuf::MessageExts
|
217
226
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -297,9 +306,28 @@ module Google
|
|
297
306
|
# @!attribute [rw] common
|
298
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
299
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
300
319
|
class GoSettings
|
301
320
|
include ::Google::Protobuf::MessageExts
|
302
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
303
331
|
end
|
304
332
|
|
305
333
|
# Describes the generator configuration for a method.
|
@@ -375,6 +403,17 @@ module Google
|
|
375
403
|
end
|
376
404
|
end
|
377
405
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
407
|
+
# a service for client libraries.
|
408
|
+
# @!attribute [rw] methods
|
409
|
+
# @return [::Array<::String>]
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
411
|
+
# on public client surfaces.
|
412
|
+
class SelectiveGapicGeneration
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
378
417
|
# The organization for which the client libraries are being published.
|
379
418
|
# Affects the url where generated docs are published, etc.
|
380
419
|
module ClientLibraryOrganization
|
@@ -200,9 +200,27 @@ module Google
|
|
200
200
|
# The delay of data points caused by ingestion. Data points older than this
|
201
201
|
# age are guaranteed to be ingested and available to be read, excluding
|
202
202
|
# data loss due to errors.
|
203
|
+
# @!attribute [rw] time_series_resource_hierarchy_level
|
204
|
+
# @return [::Array<::Google::Api::MetricDescriptor::MetricDescriptorMetadata::TimeSeriesResourceHierarchyLevel>]
|
205
|
+
# The scope of the timeseries data of the metric.
|
203
206
|
class MetricDescriptorMetadata
|
204
207
|
include ::Google::Protobuf::MessageExts
|
205
208
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
|
210
|
+
# The resource hierarchy level of the timeseries data of a metric.
|
211
|
+
module TimeSeriesResourceHierarchyLevel
|
212
|
+
# Do not use this default value.
|
213
|
+
TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0
|
214
|
+
|
215
|
+
# Scopes a metric to a project.
|
216
|
+
PROJECT = 1
|
217
|
+
|
218
|
+
# Scopes a metric to an organization.
|
219
|
+
ORGANIZATION = 2
|
220
|
+
|
221
|
+
# Scopes a metric to a folder.
|
222
|
+
FOLDER = 3
|
223
|
+
end
|
206
224
|
end
|
207
225
|
|
208
226
|
# The kind of measurement. It describes how the data is reported.
|