google-cloud-monitoring-v3 0.4.3 → 0.7.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/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +113 -20
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +142 -26
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +309 -38
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +227 -41
- data/lib/google/cloud/monitoring/v3/query_service/client.rb +28 -4
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +222 -38
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +135 -21
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/monitoring/v3/alert_pb.rb +18 -2
- data/lib/google/monitoring/v3/alert_service_pb.rb +2 -2
- data/lib/google/monitoring/v3/alert_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/common_pb.rb +2 -2
- data/lib/google/monitoring/v3/group_pb.rb +1 -1
- data/lib/google/monitoring/v3/group_service_pb.rb +2 -2
- data/lib/google/monitoring/v3/group_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/metric_pb.rb +2 -2
- data/lib/google/monitoring/v3/metric_service_pb.rb +2 -2
- data/lib/google/monitoring/v3/metric_service_services_pb.rb +13 -1
- data/lib/google/monitoring/v3/mutation_record_pb.rb +1 -1
- data/lib/google/monitoring/v3/notification_pb.rb +2 -2
- data/lib/google/monitoring/v3/notification_service_pb.rb +2 -2
- data/lib/google/monitoring/v3/notification_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/query_service_pb.rb +2 -2
- data/lib/google/monitoring/v3/query_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/service_pb.rb +5 -2
- data/lib/google/monitoring/v3/service_service_pb.rb +2 -2
- data/lib/google/monitoring/v3/service_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/uptime_pb.rb +2 -2
- data/lib/google/monitoring/v3/uptime_service_pb.rb +3 -2
- data/lib/google/monitoring/v3/uptime_service_services_pb.rb +1 -1
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/monitoring/v3/alert.rb +72 -3
- data/proto_docs/google/monitoring/v3/alert_service.rb +4 -2
- data/proto_docs/google/monitoring/v3/common.rb +18 -6
- data/proto_docs/google/monitoring/v3/group_service.rb +4 -2
- data/proto_docs/google/monitoring/v3/metric.rb +3 -1
- data/proto_docs/google/monitoring/v3/metric_service.rb +13 -8
- data/proto_docs/google/monitoring/v3/notification_service.rb +8 -4
- data/proto_docs/google/monitoring/v3/service.rb +38 -6
- data/proto_docs/google/monitoring/v3/service_service.rb +4 -2
- data/proto_docs/google/monitoring/v3/span_context.rb +2 -2
- data/proto_docs/google/monitoring/v3/uptime.rb +5 -2
- data/proto_docs/google/monitoring/v3/uptime_service.rb +4 -2
- metadata +3 -2
@@ -73,12 +73,12 @@ module Google
|
|
73
73
|
|
74
74
|
default_config.rpcs.list_uptime_check_configs.timeout = 30.0
|
75
75
|
default_config.rpcs.list_uptime_check_configs.retry_policy = {
|
76
|
-
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [
|
76
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
77
77
|
}
|
78
78
|
|
79
79
|
default_config.rpcs.get_uptime_check_config.timeout = 30.0
|
80
80
|
default_config.rpcs.get_uptime_check_config.retry_policy = {
|
81
|
-
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [
|
81
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
82
82
|
}
|
83
83
|
|
84
84
|
default_config.rpcs.create_uptime_check_config.timeout = 30.0
|
@@ -87,12 +87,12 @@ module Google
|
|
87
87
|
|
88
88
|
default_config.rpcs.delete_uptime_check_config.timeout = 30.0
|
89
89
|
default_config.rpcs.delete_uptime_check_config.retry_policy = {
|
90
|
-
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [
|
90
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
91
91
|
}
|
92
92
|
|
93
93
|
default_config.rpcs.list_uptime_check_ips.timeout = 30.0
|
94
94
|
default_config.rpcs.list_uptime_check_ips.retry_policy = {
|
95
|
-
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [
|
95
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
96
96
|
}
|
97
97
|
|
98
98
|
default_config
|
@@ -195,7 +195,8 @@ module Google
|
|
195
195
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
196
196
|
#
|
197
197
|
# @param parent [::String]
|
198
|
-
# Required. The project
|
198
|
+
# Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
|
199
|
+
# whose Uptime check configurations are listed. The format is:
|
199
200
|
#
|
200
201
|
# projects/[PROJECT_ID_OR_NUMBER]
|
201
202
|
# @param page_size [::Integer]
|
@@ -216,6 +217,27 @@ module Google
|
|
216
217
|
#
|
217
218
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
218
219
|
#
|
220
|
+
# @example Basic example
|
221
|
+
# require "google/cloud/monitoring/v3"
|
222
|
+
#
|
223
|
+
# # Create a client object. The client can be reused for multiple calls.
|
224
|
+
# client = Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new
|
225
|
+
#
|
226
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
227
|
+
# request = Google::Cloud::Monitoring::V3::ListUptimeCheckConfigsRequest.new
|
228
|
+
#
|
229
|
+
# # Call the list_uptime_check_configs method.
|
230
|
+
# result = client.list_uptime_check_configs request
|
231
|
+
#
|
232
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
233
|
+
# # iterate over all elements by calling #each, and the enumerable
|
234
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
235
|
+
# # methods are also available for managing paging directly.
|
236
|
+
# result.each do |response|
|
237
|
+
# # Each element is of type ::Google::Cloud::Monitoring::V3::UptimeCheckConfig.
|
238
|
+
# p response
|
239
|
+
# end
|
240
|
+
#
|
219
241
|
def list_uptime_check_configs request, options = nil
|
220
242
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
243
|
|
@@ -233,9 +255,11 @@ module Google
|
|
233
255
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
234
256
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
235
257
|
|
236
|
-
header_params = {
|
237
|
-
|
238
|
-
|
258
|
+
header_params = {}
|
259
|
+
if request.parent
|
260
|
+
header_params["parent"] = request.parent
|
261
|
+
end
|
262
|
+
|
239
263
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
240
264
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
241
265
|
|
@@ -287,6 +311,21 @@ module Google
|
|
287
311
|
#
|
288
312
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
313
|
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/cloud/monitoring/v3"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Cloud::Monitoring::V3::GetUptimeCheckConfigRequest.new
|
322
|
+
#
|
323
|
+
# # Call the get_uptime_check_config method.
|
324
|
+
# result = client.get_uptime_check_config request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Cloud::Monitoring::V3::UptimeCheckConfig.
|
327
|
+
# p result
|
328
|
+
#
|
290
329
|
def get_uptime_check_config request, options = nil
|
291
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
331
|
|
@@ -304,9 +343,11 @@ module Google
|
|
304
343
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
305
344
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
345
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
346
|
+
header_params = {}
|
347
|
+
if request.name
|
348
|
+
header_params["name"] = request.name
|
349
|
+
end
|
350
|
+
|
310
351
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
352
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
353
|
|
@@ -345,7 +386,8 @@ module Google
|
|
345
386
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
346
387
|
#
|
347
388
|
# @param parent [::String]
|
348
|
-
# Required. The project in
|
389
|
+
# Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
|
390
|
+
# which to create the Uptime check. The format is:
|
349
391
|
#
|
350
392
|
# projects/[PROJECT_ID_OR_NUMBER]
|
351
393
|
# @param uptime_check_config [::Google::Cloud::Monitoring::V3::UptimeCheckConfig, ::Hash]
|
@@ -359,6 +401,21 @@ module Google
|
|
359
401
|
#
|
360
402
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
361
403
|
#
|
404
|
+
# @example Basic example
|
405
|
+
# require "google/cloud/monitoring/v3"
|
406
|
+
#
|
407
|
+
# # Create a client object. The client can be reused for multiple calls.
|
408
|
+
# client = Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new
|
409
|
+
#
|
410
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
411
|
+
# request = Google::Cloud::Monitoring::V3::CreateUptimeCheckConfigRequest.new
|
412
|
+
#
|
413
|
+
# # Call the create_uptime_check_config method.
|
414
|
+
# result = client.create_uptime_check_config request
|
415
|
+
#
|
416
|
+
# # The returned object is of type Google::Cloud::Monitoring::V3::UptimeCheckConfig.
|
417
|
+
# p result
|
418
|
+
#
|
362
419
|
def create_uptime_check_config request, options = nil
|
363
420
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
364
421
|
|
@@ -376,9 +433,11 @@ module Google
|
|
376
433
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
377
434
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
378
435
|
|
379
|
-
header_params = {
|
380
|
-
|
381
|
-
|
436
|
+
header_params = {}
|
437
|
+
if request.parent
|
438
|
+
header_params["parent"] = request.parent
|
439
|
+
end
|
440
|
+
|
382
441
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
383
442
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
384
443
|
|
@@ -445,6 +504,21 @@ module Google
|
|
445
504
|
#
|
446
505
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
447
506
|
#
|
507
|
+
# @example Basic example
|
508
|
+
# require "google/cloud/monitoring/v3"
|
509
|
+
#
|
510
|
+
# # Create a client object. The client can be reused for multiple calls.
|
511
|
+
# client = Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new
|
512
|
+
#
|
513
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
514
|
+
# request = Google::Cloud::Monitoring::V3::UpdateUptimeCheckConfigRequest.new
|
515
|
+
#
|
516
|
+
# # Call the update_uptime_check_config method.
|
517
|
+
# result = client.update_uptime_check_config request
|
518
|
+
#
|
519
|
+
# # The returned object is of type Google::Cloud::Monitoring::V3::UptimeCheckConfig.
|
520
|
+
# p result
|
521
|
+
#
|
448
522
|
def update_uptime_check_config request, options = nil
|
449
523
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
450
524
|
|
@@ -462,9 +536,11 @@ module Google
|
|
462
536
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
463
537
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
464
538
|
|
465
|
-
header_params = {
|
466
|
-
|
467
|
-
|
539
|
+
header_params = {}
|
540
|
+
if request.uptime_check_config&.name
|
541
|
+
header_params["uptime_check_config.name"] = request.uptime_check_config.name
|
542
|
+
end
|
543
|
+
|
468
544
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
469
545
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
470
546
|
|
@@ -517,6 +593,21 @@ module Google
|
|
517
593
|
#
|
518
594
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
519
595
|
#
|
596
|
+
# @example Basic example
|
597
|
+
# require "google/cloud/monitoring/v3"
|
598
|
+
#
|
599
|
+
# # Create a client object. The client can be reused for multiple calls.
|
600
|
+
# client = Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new
|
601
|
+
#
|
602
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
603
|
+
# request = Google::Cloud::Monitoring::V3::DeleteUptimeCheckConfigRequest.new
|
604
|
+
#
|
605
|
+
# # Call the delete_uptime_check_config method.
|
606
|
+
# result = client.delete_uptime_check_config request
|
607
|
+
#
|
608
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
609
|
+
# p result
|
610
|
+
#
|
520
611
|
def delete_uptime_check_config request, options = nil
|
521
612
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
522
613
|
|
@@ -534,9 +625,11 @@ module Google
|
|
534
625
|
gapic_version: ::Google::Cloud::Monitoring::V3::VERSION
|
535
626
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
536
627
|
|
537
|
-
header_params = {
|
538
|
-
|
539
|
-
|
628
|
+
header_params = {}
|
629
|
+
if request.name
|
630
|
+
header_params["name"] = request.name
|
631
|
+
end
|
632
|
+
|
540
633
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
541
634
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
542
635
|
|
@@ -594,6 +687,27 @@ module Google
|
|
594
687
|
#
|
595
688
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
596
689
|
#
|
690
|
+
# @example Basic example
|
691
|
+
# require "google/cloud/monitoring/v3"
|
692
|
+
#
|
693
|
+
# # Create a client object. The client can be reused for multiple calls.
|
694
|
+
# client = Google::Cloud::Monitoring::V3::UptimeCheckService::Client.new
|
695
|
+
#
|
696
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
697
|
+
# request = Google::Cloud::Monitoring::V3::ListUptimeCheckIpsRequest.new
|
698
|
+
#
|
699
|
+
# # Call the list_uptime_check_ips method.
|
700
|
+
# result = client.list_uptime_check_ips request
|
701
|
+
#
|
702
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
703
|
+
# # iterate over all elements by calling #each, and the enumerable
|
704
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
705
|
+
# # methods are also available for managing paging directly.
|
706
|
+
# result.each do |response|
|
707
|
+
# # Each element is of type ::Google::Cloud::Monitoring::V3::UptimeCheckIp.
|
708
|
+
# p response
|
709
|
+
# end
|
710
|
+
#
|
597
711
|
def list_uptime_check_ips request, options = nil
|
598
712
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
599
713
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/alert.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/monitoring/v3/common_pb'
|
@@ -10,6 +8,8 @@ require 'google/monitoring/v3/mutation_record_pb'
|
|
10
8
|
require 'google/protobuf/duration_pb'
|
11
9
|
require 'google/protobuf/wrappers_pb'
|
12
10
|
require 'google/rpc/status_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/monitoring/v3/alert.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.monitoring.v3.AlertPolicy" do
|
@@ -24,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
24
|
repeated :notification_channels, :string, 14
|
25
25
|
optional :creation_record, :message, 10, "google.monitoring.v3.MutationRecord"
|
26
26
|
optional :mutation_record, :message, 11, "google.monitoring.v3.MutationRecord"
|
27
|
+
optional :alert_strategy, :message, 21, "google.monitoring.v3.AlertPolicy.AlertStrategy"
|
27
28
|
end
|
28
29
|
add_message "google.monitoring.v3.AlertPolicy.Documentation" do
|
29
30
|
optional :content, :string, 1
|
@@ -35,6 +36,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
35
36
|
oneof :condition do
|
36
37
|
optional :condition_threshold, :message, 1, "google.monitoring.v3.AlertPolicy.Condition.MetricThreshold"
|
37
38
|
optional :condition_absent, :message, 2, "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence"
|
39
|
+
optional :condition_matched_log, :message, 20, "google.monitoring.v3.AlertPolicy.Condition.LogMatch"
|
38
40
|
optional :condition_monitoring_query_language, :message, 19, "google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition"
|
39
41
|
end
|
40
42
|
end
|
@@ -60,11 +62,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
60
62
|
optional :duration, :message, 2, "google.protobuf.Duration"
|
61
63
|
optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
|
62
64
|
end
|
65
|
+
add_message "google.monitoring.v3.AlertPolicy.Condition.LogMatch" do
|
66
|
+
optional :filter, :string, 1
|
67
|
+
map :label_extractors, :string, :string, 2
|
68
|
+
end
|
63
69
|
add_message "google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition" do
|
64
70
|
optional :query, :string, 1
|
65
71
|
optional :duration, :message, 2, "google.protobuf.Duration"
|
66
72
|
optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
|
67
73
|
end
|
74
|
+
add_message "google.monitoring.v3.AlertPolicy.AlertStrategy" do
|
75
|
+
optional :notification_rate_limit, :message, 1, "google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit"
|
76
|
+
optional :auto_close, :message, 3, "google.protobuf.Duration"
|
77
|
+
end
|
78
|
+
add_message "google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit" do
|
79
|
+
optional :period, :message, 1, "google.protobuf.Duration"
|
80
|
+
end
|
68
81
|
add_enum "google.monitoring.v3.AlertPolicy.ConditionCombinerType" do
|
69
82
|
value :COMBINE_UNSPECIFIED, 0
|
70
83
|
value :AND, 1
|
@@ -84,7 +97,10 @@ module Google
|
|
84
97
|
AlertPolicy::Condition::Trigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.Trigger").msgclass
|
85
98
|
AlertPolicy::Condition::MetricThreshold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricThreshold").msgclass
|
86
99
|
AlertPolicy::Condition::MetricAbsence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricAbsence").msgclass
|
100
|
+
AlertPolicy::Condition::LogMatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.LogMatch").msgclass
|
87
101
|
AlertPolicy::Condition::MonitoringQueryLanguageCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition").msgclass
|
102
|
+
AlertPolicy::AlertStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy").msgclass
|
103
|
+
AlertPolicy::AlertStrategy::NotificationRateLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit").msgclass
|
88
104
|
AlertPolicy::ConditionCombinerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.ConditionCombinerType").enummodule
|
89
105
|
end
|
90
106
|
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/alert_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/monitoring/v3/alert_pb'
|
11
9
|
require 'google/protobuf/empty_pb'
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/monitoring/v3/alert_service.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.monitoring.v3.CreateAlertPolicyRequest" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/common.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/distribution_pb'
|
7
5
|
require 'google/protobuf/duration_pb'
|
8
6
|
require 'google/protobuf/timestamp_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/monitoring/v3/common.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.monitoring.v3.TypedValue" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/group.proto
|
3
3
|
|
4
|
+
require 'google/api/resource_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/resource_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/monitoring/v3/group.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.monitoring.v3.Group" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/group_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -11,6 +9,8 @@ require 'google/api/resource_pb'
|
|
11
9
|
require 'google/monitoring/v3/common_pb'
|
12
10
|
require 'google/monitoring/v3/group_pb'
|
13
11
|
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/protobuf'
|
13
|
+
|
14
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
15
|
add_file("google/monitoring/v3/group_service.proto", :syntax => :proto3) do
|
16
16
|
add_message "google.monitoring.v3.ListGroupsRequest" do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/metric.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/distribution_pb'
|
7
5
|
require 'google/api/label_pb'
|
8
6
|
require 'google/api/metric_pb'
|
9
7
|
require 'google/api/monitored_resource_pb'
|
10
8
|
require 'google/monitoring/v3/common_pb'
|
11
9
|
require 'google/protobuf/duration_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/monitoring/v3/metric.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.monitoring.v3.Point" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/metric_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -15,6 +13,8 @@ require 'google/monitoring/v3/metric_pb'
|
|
15
13
|
require 'google/protobuf/duration_pb'
|
16
14
|
require 'google/protobuf/empty_pb'
|
17
15
|
require 'google/rpc/status_pb'
|
16
|
+
require 'google/protobuf'
|
17
|
+
|
18
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
19
19
|
add_file("google/monitoring/v3/metric_service.proto", :syntax => :proto3) do
|
20
20
|
add_message "google.monitoring.v3.ListMonitoredResourceDescriptorsRequest" do
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# time series data.
|
29
29
|
class Service
|
30
30
|
|
31
|
-
include GRPC::GenericService
|
31
|
+
include ::GRPC::GenericService
|
32
32
|
|
33
33
|
self.marshal_class_method = :encode
|
34
34
|
self.unmarshal_class_method = :decode
|
@@ -43,6 +43,8 @@ module Google
|
|
43
43
|
# Gets a single metric descriptor. This method does not require a Workspace.
|
44
44
|
rpc :GetMetricDescriptor, ::Google::Cloud::Monitoring::V3::GetMetricDescriptorRequest, ::Google::Api::MetricDescriptor
|
45
45
|
# Creates a new metric descriptor.
|
46
|
+
# The creation is executed asynchronously and callers may check the returned
|
47
|
+
# operation to track its progress.
|
46
48
|
# User-created metric descriptors define
|
47
49
|
# [custom metrics](https://cloud.google.com/monitoring/custom-metrics).
|
48
50
|
rpc :CreateMetricDescriptor, ::Google::Cloud::Monitoring::V3::CreateMetricDescriptorRequest, ::Google::Api::MetricDescriptor
|
@@ -57,6 +59,16 @@ module Google
|
|
57
59
|
# If any time series could not be written, a corresponding failure message is
|
58
60
|
# included in the error response.
|
59
61
|
rpc :CreateTimeSeries, ::Google::Cloud::Monitoring::V3::CreateTimeSeriesRequest, ::Google::Protobuf::Empty
|
62
|
+
# Creates or adds data to one or more service time series. A service time
|
63
|
+
# series is a time series for a metric from a Google Cloud service. The
|
64
|
+
# response is empty if all time series in the request were written. If any
|
65
|
+
# time series could not be written, a corresponding failure message is
|
66
|
+
# included in the error response. This endpoint rejects writes to
|
67
|
+
# user-defined metrics.
|
68
|
+
# This method is only for use by Google Cloud services. Use
|
69
|
+
# [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
|
70
|
+
# instead.
|
71
|
+
rpc :CreateServiceTimeSeries, ::Google::Cloud::Monitoring::V3::CreateTimeSeriesRequest, ::Google::Protobuf::Empty
|
60
72
|
end
|
61
73
|
|
62
74
|
Stub = Service.rpc_stub_class
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/mutation_record.proto
|
3
3
|
|
4
|
+
require 'google/protobuf/timestamp_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/protobuf/timestamp_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/monitoring/v3/mutation_record.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.monitoring.v3.MutationRecord" do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/notification.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/label_pb'
|
7
5
|
require 'google/api/launch_stage_pb'
|
8
6
|
require 'google/api/resource_pb'
|
9
7
|
require 'google/monitoring/v3/common_pb'
|
10
8
|
require 'google/monitoring/v3/mutation_record_pb'
|
11
9
|
require 'google/protobuf/wrappers_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/monitoring/v3/notification.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.monitoring.v3.NotificationChannelDescriptor" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/notification_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -12,6 +10,8 @@ require 'google/protobuf/empty_pb'
|
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
13
11
|
require 'google/protobuf/struct_pb'
|
14
12
|
require 'google/protobuf/timestamp_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/monitoring/v3/notification_service.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.monitoring.v3.ListNotificationChannelDescriptorsRequest" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/query_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/label_pb'
|
8
6
|
require 'google/monitoring/v3/metric_pb'
|
9
7
|
require 'google/monitoring/v3/metric_service_pb'
|
10
8
|
require 'google/api/client_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/monitoring/v3/query_service.proto", :syntax => :proto3) do
|
13
13
|
end
|
@@ -1,18 +1,20 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/service.proto
|
3
3
|
|
4
|
-
require 'google/
|
5
|
-
|
4
|
+
require 'google/api/field_behavior_pb'
|
6
5
|
require 'google/api/resource_pb'
|
7
6
|
require 'google/protobuf/duration_pb'
|
8
7
|
require 'google/protobuf/timestamp_pb'
|
9
8
|
require 'google/type/calendar_period_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_file("google/monitoring/v3/service.proto", :syntax => :proto3) do
|
12
13
|
add_message "google.monitoring.v3.Service" do
|
13
14
|
optional :name, :string, 1
|
14
15
|
optional :display_name, :string, 2
|
15
16
|
optional :telemetry, :message, 13, "google.monitoring.v3.Service.Telemetry"
|
17
|
+
map :user_labels, :string, :string, 14
|
16
18
|
oneof :identifier do
|
17
19
|
optional :custom, :message, 6, "google.monitoring.v3.Service.Custom"
|
18
20
|
optional :app_engine, :message, 7, "google.monitoring.v3.Service.AppEngine"
|
@@ -54,6 +56,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
54
56
|
optional :display_name, :string, 11
|
55
57
|
optional :service_level_indicator, :message, 3, "google.monitoring.v3.ServiceLevelIndicator"
|
56
58
|
optional :goal, :double, 4
|
59
|
+
map :user_labels, :string, :string, 12
|
57
60
|
oneof :period do
|
58
61
|
optional :rolling_period, :message, 5, "google.protobuf.Duration"
|
59
62
|
optional :calendar_period, :enum, 6, "google.type.CalendarPeriod"
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/monitoring/v3/service_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/monitoring/v3/service_pb'
|
11
9
|
require 'google/protobuf/empty_pb'
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/monitoring/v3/service_service.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.monitoring.v3.CreateServiceRequest" do
|