google-cloud-monitoring-v3 0.4.3 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +7 -5
  3. data/lib/google/cloud/monitoring/v3/group_service/client.rb +10 -8
  4. data/lib/google/cloud/monitoring/v3/metric_service/client.rb +18 -14
  5. data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +15 -11
  6. data/lib/google/cloud/monitoring/v3/query_service/client.rb +2 -1
  7. data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +10 -8
  8. data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +8 -6
  9. data/lib/google/cloud/monitoring/v3/version.rb +1 -1
  10. data/lib/google/monitoring/v3/alert_pb.rb +15 -0
  11. data/lib/google/monitoring/v3/common_pb.rb +0 -6
  12. data/lib/google/monitoring/v3/notification_pb.rb +0 -2
  13. data/lib/google/monitoring/v3/service_pb.rb +2 -0
  14. data/lib/google/monitoring/v3/uptime_service_pb.rb +1 -0
  15. data/proto_docs/google/longrunning/operations.rb +164 -0
  16. data/proto_docs/google/monitoring/v3/alert.rb +66 -1
  17. data/proto_docs/google/monitoring/v3/alert_service.rb +4 -2
  18. data/proto_docs/google/monitoring/v3/common.rb +1 -13
  19. data/proto_docs/google/monitoring/v3/group_service.rb +4 -2
  20. data/proto_docs/google/monitoring/v3/metric.rb +3 -1
  21. data/proto_docs/google/monitoring/v3/metric_service.rb +13 -8
  22. data/proto_docs/google/monitoring/v3/notification.rb +0 -4
  23. data/proto_docs/google/monitoring/v3/notification_service.rb +8 -4
  24. data/proto_docs/google/monitoring/v3/service.rb +38 -6
  25. data/proto_docs/google/monitoring/v3/service_service.rb +4 -2
  26. data/proto_docs/google/monitoring/v3/span_context.rb +2 -2
  27. data/proto_docs/google/monitoring/v3/uptime.rb +5 -2
  28. data/proto_docs/google/monitoring/v3/uptime_service.rb +4 -2
  29. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: decec2701bb1638e5484dc1b0c01717854aa885a3e9e925d18abbe2e8d87b2bc
4
- data.tar.gz: f1d7c511d2571ca589aa5a67a75b3cd76f61719fa7d2de4b1ae3f9f1704d9152
3
+ metadata.gz: 5c4a4b754aa2a207389ae00d3da7aa82d1e54e649ddfa4d352993b3e1e4c55c5
4
+ data.tar.gz: edb8e5a5d6a9f9a8d2eca79d702615fc181d93c830a7013c815d10577d9356da
5
5
  SHA512:
6
- metadata.gz: 2287692ac4638b348c01aae711aaf567eb8f60f975d6e480a4c6b4d75a6f7c6820ac63ba969e8af538688408a1c4c2d87b144e85b5d83bb2cdb859f960bc714f
7
- data.tar.gz: 960ef65d07a93dfd639c5d8fba4107fc93f4a4f03b34522731145f7e000af9f4643bdac7e1219995b697cbeece7fe5bad0867a1ab886cfcb8c74d2f16890fcd5
6
+ metadata.gz: 204e30228200cc150bb96602586058e541e59865432b5c671710931d9c88b0dd45bd9e47ff0f52c6aa04265e7a4a019b8c6de79e50000ff71be93cd172f33438
7
+ data.tar.gz: 6d0eea897a6f29e661d1a02c59700fe303501e50c88638069b16ec53fdd0f96ef0594474aa277a668bea55fcfbc2e9bd01149c793f5fdb42358d556d5364df84
@@ -74,19 +74,19 @@ module Google
74
74
 
75
75
  default_config.rpcs.list_alert_policies.timeout = 30.0
76
76
  default_config.rpcs.list_alert_policies.retry_policy = {
77
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
77
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
78
78
  }
79
79
 
80
80
  default_config.rpcs.get_alert_policy.timeout = 30.0
81
81
  default_config.rpcs.get_alert_policy.retry_policy = {
82
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
82
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
83
83
  }
84
84
 
85
85
  default_config.rpcs.create_alert_policy.timeout = 30.0
86
86
 
87
87
  default_config.rpcs.delete_alert_policy.timeout = 30.0
88
88
  default_config.rpcs.delete_alert_policy.retry_policy = {
89
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
89
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
90
90
  }
91
91
 
92
92
  default_config.rpcs.update_alert_policy.timeout = 30.0
@@ -190,7 +190,8 @@ module Google
190
190
  # the default parameter values, pass an empty Hash as a request object (see above).
191
191
  #
192
192
  # @param name [::String]
193
- # Required. The project whose alert policies are to be listed. The format is:
193
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
194
+ # whose alert policies are to be listed. The format is:
194
195
  #
195
196
  # projects/[PROJECT_ID_OR_NUMBER]
196
197
  #
@@ -356,7 +357,8 @@ module Google
356
357
  # the default parameter values, pass an empty Hash as a request object (see above).
357
358
  #
358
359
  # @param name [::String]
359
- # Required. The project in which to create the alerting policy. The format is:
360
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
361
+ # which to create the alerting policy. The format is:
360
362
  #
361
363
  # projects/[PROJECT_ID_OR_NUMBER]
362
364
  #
@@ -77,29 +77,29 @@ module Google
77
77
 
78
78
  default_config.rpcs.list_groups.timeout = 30.0
79
79
  default_config.rpcs.list_groups.retry_policy = {
80
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
80
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
81
81
  }
82
82
 
83
83
  default_config.rpcs.get_group.timeout = 30.0
84
84
  default_config.rpcs.get_group.retry_policy = {
85
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
85
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
86
86
  }
87
87
 
88
88
  default_config.rpcs.create_group.timeout = 30.0
89
89
 
90
- default_config.rpcs.update_group.timeout = 30.0
90
+ default_config.rpcs.update_group.timeout = 180.0
91
91
  default_config.rpcs.update_group.retry_policy = {
92
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
92
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
93
93
  }
94
94
 
95
95
  default_config.rpcs.delete_group.timeout = 30.0
96
96
  default_config.rpcs.delete_group.retry_policy = {
97
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
97
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
98
98
  }
99
99
 
100
100
  default_config.rpcs.list_group_members.timeout = 30.0
101
101
  default_config.rpcs.list_group_members.retry_policy = {
102
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
102
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
103
103
  }
104
104
 
105
105
  default_config
@@ -201,7 +201,8 @@ module Google
201
201
  # the default parameter values, pass an empty Hash as a request object (see above).
202
202
  #
203
203
  # @param name [::String]
204
- # Required. The project whose groups are to be listed. The format is:
204
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
205
+ # whose groups are to be listed. The format is:
205
206
  #
206
207
  # projects/[PROJECT_ID_OR_NUMBER]
207
208
  # @param children_of_group [::String]
@@ -372,7 +373,8 @@ module Google
372
373
  # the default parameter values, pass an empty Hash as a request object (see above).
373
374
  #
374
375
  # @param name [::String]
375
- # Required. The project in which to create the group. The format is:
376
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
377
+ # which to create the group. The format is:
376
378
  #
377
379
  # projects/[PROJECT_ID_OR_NUMBER]
378
380
  # @param group [::Google::Cloud::Monitoring::V3::Group, ::Hash]
@@ -67,34 +67,34 @@ module Google
67
67
 
68
68
  default_config.rpcs.list_monitored_resource_descriptors.timeout = 30.0
69
69
  default_config.rpcs.list_monitored_resource_descriptors.retry_policy = {
70
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
70
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
71
71
  }
72
72
 
73
73
  default_config.rpcs.get_monitored_resource_descriptor.timeout = 30.0
74
74
  default_config.rpcs.get_monitored_resource_descriptor.retry_policy = {
75
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
75
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
76
76
  }
77
77
 
78
78
  default_config.rpcs.list_metric_descriptors.timeout = 30.0
79
79
  default_config.rpcs.list_metric_descriptors.retry_policy = {
80
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
80
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
81
81
  }
82
82
 
83
83
  default_config.rpcs.get_metric_descriptor.timeout = 30.0
84
84
  default_config.rpcs.get_metric_descriptor.retry_policy = {
85
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
85
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
86
86
  }
87
87
 
88
88
  default_config.rpcs.create_metric_descriptor.timeout = 12.0
89
89
 
90
90
  default_config.rpcs.delete_metric_descriptor.timeout = 30.0
91
91
  default_config.rpcs.delete_metric_descriptor.retry_policy = {
92
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
92
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
93
93
  }
94
94
 
95
- default_config.rpcs.list_time_series.timeout = 30.0
95
+ default_config.rpcs.list_time_series.timeout = 90.0
96
96
  default_config.rpcs.list_time_series.retry_policy = {
97
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
97
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
98
98
  }
99
99
 
100
100
  default_config.rpcs.create_time_series.timeout = 12.0
@@ -198,7 +198,8 @@ module Google
198
198
  # the default parameter values, pass an empty Hash as a request object (see above).
199
199
  #
200
200
  # @param name [::String]
201
- # Required. The project on which to execute the request. The format is:
201
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
202
+ # which to execute the request. The format is:
202
203
  #
203
204
  # projects/[PROJECT_ID_OR_NUMBER]
204
205
  # @param filter [::String]
@@ -355,7 +356,8 @@ module Google
355
356
  # the default parameter values, pass an empty Hash as a request object (see above).
356
357
  #
357
358
  # @param name [::String]
358
- # Required. The project on which to execute the request. The format is:
359
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
360
+ # which to execute the request. The format is:
359
361
  #
360
362
  # projects/[PROJECT_ID_OR_NUMBER]
361
363
  # @param filter [::String]
@@ -516,8 +518,9 @@ module Google
516
518
  # the default parameter values, pass an empty Hash as a request object (see above).
517
519
  #
518
520
  # @param name [::String]
519
- # Required. The project on which to execute the request. The format is:
520
- #
521
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
522
+ # which to execute the request. The format is:
523
+ # 4
521
524
  # projects/[PROJECT_ID_OR_NUMBER]
522
525
  # @param metric_descriptor [::Google::Api::MetricDescriptor, ::Hash]
523
526
  # Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
@@ -664,8 +667,8 @@ module Google
664
667
  # the default parameter values, pass an empty Hash as a request object (see above).
665
668
  #
666
669
  # @param name [::String]
667
- # Required. The project, organization or folder on which to execute the request. The
668
- # format is:
670
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
671
+ # organization or folder on which to execute the request. The format is:
669
672
  #
670
673
  # projects/[PROJECT_ID_OR_NUMBER]
671
674
  # organizations/[ORGANIZATION_ID]
@@ -777,7 +780,8 @@ module Google
777
780
  # the default parameter values, pass an empty Hash as a request object (see above).
778
781
  #
779
782
  # @param name [::String]
780
- # Required. The project on which to execute the request. The format is:
783
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
784
+ # which to execute the request. The format is:
781
785
  #
782
786
  # projects/[PROJECT_ID_OR_NUMBER]
783
787
  # @param time_series [::Array<::Google::Cloud::Monitoring::V3::TimeSeries, ::Hash>]
@@ -67,22 +67,22 @@ module Google
67
67
 
68
68
  default_config.rpcs.list_notification_channel_descriptors.timeout = 30.0
69
69
  default_config.rpcs.list_notification_channel_descriptors.retry_policy = {
70
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
70
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
71
71
  }
72
72
 
73
73
  default_config.rpcs.get_notification_channel_descriptor.timeout = 30.0
74
74
  default_config.rpcs.get_notification_channel_descriptor.retry_policy = {
75
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
75
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
76
76
  }
77
77
 
78
78
  default_config.rpcs.list_notification_channels.timeout = 30.0
79
79
  default_config.rpcs.list_notification_channels.retry_policy = {
80
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
80
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
81
81
  }
82
82
 
83
83
  default_config.rpcs.get_notification_channel.timeout = 30.0
84
84
  default_config.rpcs.get_notification_channel.retry_policy = {
85
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
85
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
86
86
  }
87
87
 
88
88
  default_config.rpcs.create_notification_channel.timeout = 30.0
@@ -91,19 +91,19 @@ module Google
91
91
 
92
92
  default_config.rpcs.delete_notification_channel.timeout = 30.0
93
93
  default_config.rpcs.delete_notification_channel.retry_policy = {
94
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
94
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
95
95
  }
96
96
 
97
97
  default_config.rpcs.send_notification_channel_verification_code.timeout = 30.0
98
98
 
99
99
  default_config.rpcs.get_notification_channel_verification_code.timeout = 30.0
100
100
  default_config.rpcs.get_notification_channel_verification_code.retry_policy = {
101
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
101
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
102
102
  }
103
103
 
104
104
  default_config.rpcs.verify_notification_channel.timeout = 30.0
105
105
  default_config.rpcs.verify_notification_channel.retry_policy = {
106
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
106
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
107
107
  }
108
108
 
109
109
  default_config
@@ -211,8 +211,10 @@ module Google
211
211
  #
212
212
  # projects/[PROJECT_ID_OR_NUMBER]
213
213
  #
214
- # Note that this names the parent container in which to look for the
215
- # descriptors; to retrieve a single descriptor by name, use the
214
+ # Note that this
215
+ # [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
216
+ # container in which to look for the descriptors; to retrieve a single
217
+ # descriptor by name, use the
216
218
  # {::Google::Cloud::Monitoring::V3::NotificationChannelService::Client#get_notification_channel_descriptor GetNotificationChannelDescriptor}
217
219
  # operation, instead.
218
220
  # @param page_size [::Integer]
@@ -362,7 +364,8 @@ module Google
362
364
  # the default parameter values, pass an empty Hash as a request object (see above).
363
365
  #
364
366
  # @param name [::String]
365
- # Required. The project on which to execute the request. The format is:
367
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
368
+ # which to execute the request. The format is:
366
369
  #
367
370
  # projects/[PROJECT_ID_OR_NUMBER]
368
371
  #
@@ -536,7 +539,8 @@ module Google
536
539
  # the default parameter values, pass an empty Hash as a request object (see above).
537
540
  #
538
541
  # @param name [::String]
539
- # Required. The project on which to execute the request. The format is:
542
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
543
+ # which to execute the request. The format is:
540
544
  #
541
545
  # projects/[PROJECT_ID_OR_NUMBER]
542
546
  #
@@ -163,7 +163,8 @@ module Google
163
163
  # the default parameter values, pass an empty Hash as a request object (see above).
164
164
  #
165
165
  # @param name [::String]
166
- # Required. The project on which to execute the request. The format is:
166
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
167
+ # which to execute the request. The format is:
167
168
  #
168
169
  # projects/[PROJECT_ID_OR_NUMBER]
169
170
  # @param query [::String]
@@ -71,38 +71,38 @@ module Google
71
71
 
72
72
  default_config.rpcs.get_service.timeout = 30.0
73
73
  default_config.rpcs.get_service.retry_policy = {
74
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
74
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
75
75
  }
76
76
 
77
77
  default_config.rpcs.list_services.timeout = 30.0
78
78
  default_config.rpcs.list_services.retry_policy = {
79
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
79
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
80
80
  }
81
81
 
82
82
  default_config.rpcs.update_service.timeout = 30.0
83
83
 
84
84
  default_config.rpcs.delete_service.timeout = 30.0
85
85
  default_config.rpcs.delete_service.retry_policy = {
86
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
86
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
87
87
  }
88
88
 
89
89
  default_config.rpcs.create_service_level_objective.timeout = 30.0
90
90
 
91
91
  default_config.rpcs.get_service_level_objective.timeout = 30.0
92
92
  default_config.rpcs.get_service_level_objective.retry_policy = {
93
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
93
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
94
94
  }
95
95
 
96
96
  default_config.rpcs.list_service_level_objectives.timeout = 30.0
97
97
  default_config.rpcs.list_service_level_objectives.retry_policy = {
98
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
98
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
99
99
  }
100
100
 
101
101
  default_config.rpcs.update_service_level_objective.timeout = 30.0
102
102
 
103
103
  default_config.rpcs.delete_service_level_objective.timeout = 30.0
104
104
  default_config.rpcs.delete_service_level_objective.retry_policy = {
105
- initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [4, 14]
105
+ initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
106
106
  }
107
107
 
108
108
  default_config
@@ -204,7 +204,8 @@ module Google
204
204
  # the default parameter values, pass an empty Hash as a request object (see above).
205
205
  #
206
206
  # @param parent [::String]
207
- # Required. Resource name of the parent workspace. The format is:
207
+ # Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
208
+ # the parent workspace. The format is:
208
209
  #
209
210
  # projects/[PROJECT_ID_OR_NUMBER]
210
211
  # @param service_id [::String]
@@ -350,7 +351,8 @@ module Google
350
351
  #
351
352
  # @param parent [::String]
352
353
  # Required. Resource name of the parent containing the listed services, either a
353
- # project or a Monitoring Workspace. The formats are:
354
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
355
+ # Monitoring Workspace. The formats are:
354
356
  #
355
357
  # projects/[PROJECT_ID_OR_NUMBER]
356
358
  # workspaces/[HOST_PROJECT_ID_OR_NUMBER]
@@ -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: [4, 14]
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: [4, 14]
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: [4, 14]
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: [4, 14]
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 whose Uptime check configurations are listed. The format is:
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]
@@ -345,7 +346,8 @@ module Google
345
346
  # the default parameter values, pass an empty Hash as a request object (see above).
346
347
  #
347
348
  # @param parent [::String]
348
- # Required. The project in which to create the Uptime check. The format is:
349
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
350
+ # which to create the Uptime check. The format is:
349
351
  #
350
352
  # projects/[PROJECT_ID_OR_NUMBER]
351
353
  # @param uptime_check_config [::Google::Cloud::Monitoring::V3::UptimeCheckConfig, ::Hash]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Monitoring
23
23
  module V3
24
- VERSION = "0.4.3"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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,21 @@ 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
+ end
77
+ add_message "google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit" do
78
+ optional :period, :message, 1, "google.protobuf.Duration"
79
+ end
68
80
  add_enum "google.monitoring.v3.AlertPolicy.ConditionCombinerType" do
69
81
  value :COMBINE_UNSPECIFIED, 0
70
82
  value :AND, 1
@@ -84,7 +96,10 @@ module Google
84
96
  AlertPolicy::Condition::Trigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.Trigger").msgclass
85
97
  AlertPolicy::Condition::MetricThreshold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricThreshold").msgclass
86
98
  AlertPolicy::Condition::MetricAbsence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricAbsence").msgclass
99
+ AlertPolicy::Condition::LogMatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.LogMatch").msgclass
87
100
  AlertPolicy::Condition::MonitoringQueryLanguageCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition").msgclass
101
+ AlertPolicy::AlertStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy").msgclass
102
+ AlertPolicy::AlertStrategy::NotificationRateLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit").msgclass
88
103
  AlertPolicy::ConditionCombinerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.ConditionCombinerType").enummodule
89
104
  end
90
105
  end
@@ -73,11 +73,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
73
73
  value :COMPARISON_EQ, 5
74
74
  value :COMPARISON_NE, 6
75
75
  end
76
- add_enum "google.monitoring.v3.ServiceTier" do
77
- value :SERVICE_TIER_UNSPECIFIED, 0
78
- value :SERVICE_TIER_BASIC, 1
79
- value :SERVICE_TIER_PREMIUM, 2
80
- end
81
76
  end
82
77
  end
83
78
 
@@ -91,7 +86,6 @@ module Google
91
86
  Aggregation::Aligner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation.Aligner").enummodule
92
87
  Aggregation::Reducer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Aggregation.Reducer").enummodule
93
88
  ComparisonType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ComparisonType").enummodule
94
- ServiceTier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ServiceTier").enummodule
95
89
  end
96
90
  end
97
91
  end
@@ -6,7 +6,6 @@ require 'google/protobuf'
6
6
  require 'google/api/label_pb'
7
7
  require 'google/api/launch_stage_pb'
8
8
  require 'google/api/resource_pb'
9
- require 'google/monitoring/v3/common_pb'
10
9
  require 'google/monitoring/v3/mutation_record_pb'
11
10
  require 'google/protobuf/wrappers_pb'
12
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -17,7 +16,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
17
16
  optional :display_name, :string, 2
18
17
  optional :description, :string, 3
19
18
  repeated :labels, :message, 4, "google.api.LabelDescriptor"
20
- repeated :supported_tiers, :enum, 5, "google.monitoring.v3.ServiceTier"
21
19
  optional :launch_stage, :enum, 7, "google.api.LaunchStage"
22
20
  end
23
21
  add_message "google.monitoring.v3.NotificationChannel" do
@@ -13,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  optional :name, :string, 1
14
14
  optional :display_name, :string, 2
15
15
  optional :telemetry, :message, 13, "google.monitoring.v3.Service.Telemetry"
16
+ map :user_labels, :string, :string, 14
16
17
  oneof :identifier do
17
18
  optional :custom, :message, 6, "google.monitoring.v3.Service.Custom"
18
19
  optional :app_engine, :message, 7, "google.monitoring.v3.Service.AppEngine"
@@ -54,6 +55,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
54
55
  optional :display_name, :string, 11
55
56
  optional :service_level_indicator, :message, 3, "google.monitoring.v3.ServiceLevelIndicator"
56
57
  optional :goal, :double, 4
58
+ map :user_labels, :string, :string, 12
57
59
  oneof :period do
58
60
  optional :rolling_period, :message, 5, "google.protobuf.Duration"
59
61
  optional :calendar_period, :enum, 6, "google.type.CalendarPeriod"
@@ -7,6 +7,7 @@ require 'google/api/annotations_pb'
7
7
  require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
+ require 'google/longrunning/operations_pb'
10
11
  require 'google/monitoring/v3/uptime_pb'
11
12
  require 'google/protobuf/duration_pb'
12
13
  require 'google/protobuf/empty_pb'
@@ -0,0 +1,164 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Longrunning
22
+ # This resource represents a long-running operation that is the result of a
23
+ # network API call.
24
+ # @!attribute [rw] name
25
+ # @return [::String]
26
+ # The server-assigned name, which is only unique within the same service that
27
+ # originally returns it. If you use the default HTTP mapping, the
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
+ # @!attribute [rw] metadata
30
+ # @return [::Google::Protobuf::Any]
31
+ # Service-specific metadata associated with the operation. It typically
32
+ # contains progress information and common metadata such as create time.
33
+ # Some services might not provide such metadata. Any method that returns a
34
+ # long-running operation should document the metadata type, if any.
35
+ # @!attribute [rw] done
36
+ # @return [::Boolean]
37
+ # If the value is `false`, it means the operation is still in progress.
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
+ # available.
40
+ # @!attribute [rw] error
41
+ # @return [::Google::Rpc::Status]
42
+ # The error result of the operation in case of failure or cancellation.
43
+ # @!attribute [rw] response
44
+ # @return [::Google::Protobuf::Any]
45
+ # The normal response of the operation in case of success. If the original
46
+ # method returns no data on success, such as `Delete`, the response is
47
+ # `google.protobuf.Empty`. If the original method is standard
48
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
49
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
50
+ # is the original method name. For example, if the original method name
51
+ # is `TakeSnapshot()`, the inferred response type is
52
+ # `TakeSnapshotResponse`.
53
+ class Operation
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
+ end
57
+
58
+ # The request message for Operations.GetOperation.
59
+ # @!attribute [rw] name
60
+ # @return [::String]
61
+ # The name of the operation resource.
62
+ class GetOperationRequest
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+
67
+ # The request message for Operations.ListOperations.
68
+ # @!attribute [rw] name
69
+ # @return [::String]
70
+ # The name of the operation's parent resource.
71
+ # @!attribute [rw] filter
72
+ # @return [::String]
73
+ # The standard list filter.
74
+ # @!attribute [rw] page_size
75
+ # @return [::Integer]
76
+ # The standard list page size.
77
+ # @!attribute [rw] page_token
78
+ # @return [::String]
79
+ # The standard list page token.
80
+ class ListOperationsRequest
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
+ end
84
+
85
+ # The response message for Operations.ListOperations.
86
+ # @!attribute [rw] operations
87
+ # @return [::Array<::Google::Longrunning::Operation>]
88
+ # A list of operations that matches the specified filter in the request.
89
+ # @!attribute [rw] next_page_token
90
+ # @return [::String]
91
+ # The standard List next-page token.
92
+ class ListOperationsResponse
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+
97
+ # The request message for Operations.CancelOperation.
98
+ # @!attribute [rw] name
99
+ # @return [::String]
100
+ # The name of the operation resource to be cancelled.
101
+ class CancelOperationRequest
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
106
+ # The request message for Operations.DeleteOperation.
107
+ # @!attribute [rw] name
108
+ # @return [::String]
109
+ # The name of the operation resource to be deleted.
110
+ class DeleteOperationRequest
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+ end
114
+
115
+ # The request message for Operations.WaitOperation.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # The name of the operation resource to wait on.
119
+ # @!attribute [rw] timeout
120
+ # @return [::Google::Protobuf::Duration]
121
+ # The maximum duration to wait before timing out. If left blank, the wait
122
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
123
+ # If RPC context deadline is also specified, the shorter one will be used.
124
+ class WaitOperationRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
129
+ # A message representing the message types used by a long-running operation.
130
+ #
131
+ # Example:
132
+ #
133
+ # rpc LongRunningRecognize(LongRunningRecognizeRequest)
134
+ # returns (google.longrunning.Operation) {
135
+ # option (google.longrunning.operation_info) = {
136
+ # response_type: "LongRunningRecognizeResponse"
137
+ # metadata_type: "LongRunningRecognizeMetadata"
138
+ # };
139
+ # }
140
+ # @!attribute [rw] response_type
141
+ # @return [::String]
142
+ # Required. The message name of the primary return type for this
143
+ # long-running operation.
144
+ # This type will be used to deserialize the LRO's response.
145
+ #
146
+ # If the response is in a different package from the rpc, a fully-qualified
147
+ # message name must be used (e.g. `google.protobuf.Struct`).
148
+ #
149
+ # Note: Altering this value constitutes a breaking change.
150
+ # @!attribute [rw] metadata_type
151
+ # @return [::String]
152
+ # Required. The message name of the metadata type for this long-running
153
+ # operation.
154
+ #
155
+ # If the response is in a different package from the rpc, a fully-qualified
156
+ # message name must be used (e.g. `google.protobuf.Struct`).
157
+ #
158
+ # Note: Altering this value constitutes a breaking change.
159
+ class OperationInfo
160
+ include ::Google::Protobuf::MessageExts
161
+ extend ::Google::Protobuf::MessageExts::ClassMethods
162
+ end
163
+ end
164
+ end
@@ -33,7 +33,7 @@ module Google
33
33
  # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
34
34
  #
35
35
  # `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
36
- # is created. When calling the
36
+ # is created. When calling the
37
37
  # {::Google::Cloud::Monitoring::V3::AlertPolicyService::Client#create_alert_policy alertPolicies.create}
38
38
  # method, do not include the `name` field in the alerting policy passed as
39
39
  # part of the request.
@@ -104,6 +104,9 @@ module Google
104
104
  # @return [::Google::Cloud::Monitoring::V3::MutationRecord]
105
105
  # A read-only record of the most recent change to the alerting policy. If
106
106
  # provided in a call to create or update, this field will be ignored.
107
+ # @!attribute [rw] alert_strategy
108
+ # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy]
109
+ # Control over how this alert policy's notification channels are notified.
107
110
  class AlertPolicy
108
111
  include ::Google::Protobuf::MessageExts
109
112
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -168,6 +171,10 @@ module Google
168
171
  # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::MetricAbsence]
169
172
  # A condition that checks that a time series continues to
170
173
  # receive new data points.
174
+ # @!attribute [rw] condition_matched_log
175
+ # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::LogMatch]
176
+ # A condition that checks for log messages matching given constraints. If
177
+ # set, no other conditions can be present.
171
178
  # @!attribute [rw] condition_monitoring_query_language
172
179
  # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::MonitoringQueryLanguageCondition]
173
180
  # A condition that uses the Monitoring Query Language to define
@@ -327,6 +334,42 @@ module Google
327
334
  extend ::Google::Protobuf::MessageExts::ClassMethods
328
335
  end
329
336
 
337
+ # A condition type that checks whether a log message in the [scoping
338
+ # project](https://cloud.google.com/monitoring/api/v3#project_name)
339
+ # satisfies the given filter. Logs from other projects in the metrics
340
+ # scope are not evaluated.
341
+ # @!attribute [rw] filter
342
+ # @return [::String]
343
+ # Required. A logs-based filter. See [Advanced Logs
344
+ # Queries](/logging/docs/view/advanced-queries) for how this filter
345
+ # should be constructed.
346
+ # @!attribute [rw] label_extractors
347
+ # @return [::Google::Protobuf::Map{::String => ::String}]
348
+ # Optional. A map from a label key to an extractor expression, which is
349
+ # used to extract the value for this label key. Each entry in this map is
350
+ # a specification for how data should be extracted from log entries that
351
+ # match `filter`. Each combination of extracted values is treated as a
352
+ # separate rule for the purposes of triggering notifications. Label keys
353
+ # and corresponding values can be used in notifications generated by this
354
+ # condition.
355
+ #
356
+ # Please see [the documentation on logs-based metric
357
+ # `valueExtractor`s](/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
358
+ # for syntax and examples.
359
+ class LogMatch
360
+ include ::Google::Protobuf::MessageExts
361
+ extend ::Google::Protobuf::MessageExts::ClassMethods
362
+
363
+ # @!attribute [rw] key
364
+ # @return [::String]
365
+ # @!attribute [rw] value
366
+ # @return [::String]
367
+ class LabelExtractorsEntry
368
+ include ::Google::Protobuf::MessageExts
369
+ extend ::Google::Protobuf::MessageExts::ClassMethods
370
+ end
371
+ end
372
+
330
373
  # A condition type that allows alert policies to be defined using
331
374
  # [Monitoring Query Language](https://cloud.google.com/monitoring/mql).
332
375
  # @!attribute [rw] query
@@ -359,6 +402,28 @@ module Google
359
402
  end
360
403
  end
361
404
 
405
+ # Control over how the notification channels in `notification_channels`
406
+ # are notified when this alert fires.
407
+ # @!attribute [rw] notification_rate_limit
408
+ # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationRateLimit]
409
+ # Required for alert policies with a `LogMatch` condition.
410
+ #
411
+ # This limit is not implemented for alert policies that are not log-based.
412
+ class AlertStrategy
413
+ include ::Google::Protobuf::MessageExts
414
+ extend ::Google::Protobuf::MessageExts::ClassMethods
415
+
416
+ # Control over the rate of notifications sent to this alert policy's
417
+ # notification channels.
418
+ # @!attribute [rw] period
419
+ # @return [::Google::Protobuf::Duration]
420
+ # Not more than one notification per `period`.
421
+ class NotificationRateLimit
422
+ include ::Google::Protobuf::MessageExts
423
+ extend ::Google::Protobuf::MessageExts::ClassMethods
424
+ end
425
+ end
426
+
362
427
  # @!attribute [rw] key
363
428
  # @return [::String]
364
429
  # @!attribute [rw] value
@@ -24,7 +24,8 @@ module Google
24
24
  # The protocol for the `CreateAlertPolicy` request.
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
- # Required. The project in which to create the alerting policy. The format is:
27
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
28
+ # which to create the alerting policy. The format is:
28
29
  #
29
30
  # projects/[PROJECT_ID_OR_NUMBER]
30
31
  #
@@ -59,7 +60,8 @@ module Google
59
60
  # The protocol for the `ListAlertPolicies` request.
60
61
  # @!attribute [rw] name
61
62
  # @return [::String]
62
- # Required. The project whose alert policies are to be listed. The format is:
63
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
64
+ # whose alert policies are to be listed. The format is:
63
65
  #
64
66
  # projects/[PROJECT_ID_OR_NUMBER]
65
67
  #
@@ -44,7 +44,7 @@ module Google
44
44
  extend ::Google::Protobuf::MessageExts::ClassMethods
45
45
  end
46
46
 
47
- # A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
47
+ # A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. The end time must not be earlier than the start time. When writing data points, the start time must not be more than 25 hours in the past and the end time must not be more than five minutes in the future.
48
48
  #
49
49
  # * For `GAUGE` metrics, the `startTime` value is technically optional; if
50
50
  # no value is specified, the start time defaults to the value of the
@@ -459,18 +459,6 @@ module Google
459
459
  # True if the left argument is not equal to the right argument.
460
460
  COMPARISON_NE = 6
461
461
  end
462
-
463
- # Obsolete.
464
- module ServiceTier
465
- # Obsolete.
466
- SERVICE_TIER_UNSPECIFIED = 0
467
-
468
- # Obsolete.
469
- SERVICE_TIER_BASIC = 1
470
-
471
- # Obsolete.
472
- SERVICE_TIER_PREMIUM = 2
473
- end
474
462
  end
475
463
  end
476
464
  end
@@ -24,7 +24,8 @@ module Google
24
24
  # The `ListGroup` request.
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
- # Required. The project whose groups are to be listed. The format is:
27
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
28
+ # whose groups are to be listed. The format is:
28
29
  #
29
30
  # projects/[PROJECT_ID_OR_NUMBER]
30
31
  # @!attribute [rw] children_of_group
@@ -95,7 +96,8 @@ module Google
95
96
  # The `CreateGroup` request.
96
97
  # @!attribute [rw] name
97
98
  # @return [::String]
98
- # Required. The project in which to create the group. The format is:
99
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
100
+ # which to create the group. The format is:
99
101
  #
100
102
  # projects/[PROJECT_ID_OR_NUMBER]
101
103
  # @!attribute [rw] group
@@ -52,7 +52,9 @@ module Google
52
52
  # @!attribute [rw] resource
53
53
  # @return [::Google::Api::MonitoredResource]
54
54
  # The associated monitored resource. Custom metrics can use only certain
55
- # monitored resource types in their time series data.
55
+ # monitored resource types in their time series data. For more information,
56
+ # see [Monitored resources for custom
57
+ # metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
56
58
  # @!attribute [rw] metadata
57
59
  # @return [::Google::Api::MonitoredResourceMetadata]
58
60
  # Output only. The associated monitored resource metadata. When reading a
@@ -24,7 +24,8 @@ module Google
24
24
  # The `ListMonitoredResourceDescriptors` request.
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
- # Required. The project on which to execute the request. The format is:
27
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
28
+ # which to execute the request. The format is:
28
29
  #
29
30
  # projects/[PROJECT_ID_OR_NUMBER]
30
31
  # @!attribute [rw] filter
@@ -80,7 +81,8 @@ module Google
80
81
  # The `ListMetricDescriptors` request.
81
82
  # @!attribute [rw] name
82
83
  # @return [::String]
83
- # Required. The project on which to execute the request. The format is:
84
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
85
+ # which to execute the request. The format is:
84
86
  #
85
87
  # projects/[PROJECT_ID_OR_NUMBER]
86
88
  # @!attribute [rw] filter
@@ -138,8 +140,9 @@ module Google
138
140
  # The `CreateMetricDescriptor` request.
139
141
  # @!attribute [rw] name
140
142
  # @return [::String]
141
- # Required. The project on which to execute the request. The format is:
142
- #
143
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
144
+ # which to execute the request. The format is:
145
+ # 4
143
146
  # projects/[PROJECT_ID_OR_NUMBER]
144
147
  # @!attribute [rw] metric_descriptor
145
148
  # @return [::Google::Api::MetricDescriptor]
@@ -167,8 +170,8 @@ module Google
167
170
  # The `ListTimeSeries` request.
168
171
  # @!attribute [rw] name
169
172
  # @return [::String]
170
- # Required. The project, organization or folder on which to execute the request. The
171
- # format is:
173
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name),
174
+ # organization or folder on which to execute the request. The format is:
172
175
  #
173
176
  # projects/[PROJECT_ID_OR_NUMBER]
174
177
  # organizations/[ORGANIZATION_ID]
@@ -262,7 +265,8 @@ module Google
262
265
  # The `CreateTimeSeries` request.
263
266
  # @!attribute [rw] name
264
267
  # @return [::String]
265
- # Required. The project on which to execute the request. The format is:
268
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
269
+ # which to execute the request. The format is:
266
270
  #
267
271
  # projects/[PROJECT_ID_OR_NUMBER]
268
272
  # @!attribute [rw] time_series
@@ -321,7 +325,8 @@ module Google
321
325
  # The `QueryTimeSeries` request.
322
326
  # @!attribute [rw] name
323
327
  # @return [::String]
324
- # Required. The project on which to execute the request. The format is:
328
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
329
+ # which to execute the request. The format is:
325
330
  #
326
331
  # projects/[PROJECT_ID_OR_NUMBER]
327
332
  # @!attribute [rw] query
@@ -52,10 +52,6 @@ module Google
52
52
  # The set of labels that must be defined to identify a particular
53
53
  # channel of the corresponding type. Each label includes a
54
54
  # description for how that field should be populated.
55
- # @!attribute [rw] supported_tiers
56
- # @return [::Array<::Google::Cloud::Monitoring::V3::ServiceTier>]
57
- # The tiers that support this notification channel; the project service tier
58
- # must be one of the supported_tiers.
59
55
  # @!attribute [rw] launch_stage
60
56
  # @return [::Google::Api::LaunchStage]
61
57
  # The product launch stage for channels of this type.
@@ -29,8 +29,10 @@ module Google
29
29
  #
30
30
  # projects/[PROJECT_ID_OR_NUMBER]
31
31
  #
32
- # Note that this names the parent container in which to look for the
33
- # descriptors; to retrieve a single descriptor by name, use the
32
+ # Note that this
33
+ # [names](https://cloud.google.com/monitoring/api/v3#project_name) the parent
34
+ # container in which to look for the descriptors; to retrieve a single
35
+ # descriptor by name, use the
34
36
  # {::Google::Cloud::Monitoring::V3::NotificationChannelService::Client#get_notification_channel_descriptor GetNotificationChannelDescriptor}
35
37
  # operation, instead.
36
38
  # @!attribute [rw] page_size
@@ -78,7 +80,8 @@ module Google
78
80
  # The `CreateNotificationChannel` request.
79
81
  # @!attribute [rw] name
80
82
  # @return [::String]
81
- # Required. The project on which to execute the request. The format is:
83
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
84
+ # which to execute the request. The format is:
82
85
  #
83
86
  # projects/[PROJECT_ID_OR_NUMBER]
84
87
  #
@@ -97,7 +100,8 @@ module Google
97
100
  # The `ListNotificationChannels` request.
98
101
  # @!attribute [rw] name
99
102
  # @return [::String]
100
- # Required. The project on which to execute the request. The format is:
103
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
104
+ # which to execute the request. The format is:
101
105
  #
102
106
  # projects/[PROJECT_ID_OR_NUMBER]
103
107
  #
@@ -57,6 +57,14 @@ module Google
57
57
  # @!attribute [rw] telemetry
58
58
  # @return [::Google::Cloud::Monitoring::V3::Service::Telemetry]
59
59
  # Configuration for how to query telemetry on a Service.
60
+ # @!attribute [rw] user_labels
61
+ # @return [::Google::Protobuf::Map{::String => ::String}]
62
+ # Labels which have been used to annotate the service. Label keys must start
63
+ # with a letter. Label keys and values may contain lowercase letters,
64
+ # numbers, underscores, and dashes. Label keys and values have a maximum
65
+ # length of 63 characters, and must be less than 128 bytes in size. Up to 64
66
+ # label entries may be stored. For labels which do not have a semantic value,
67
+ # the empty string may be supplied for the label value.
60
68
  class Service
61
69
  include ::Google::Protobuf::MessageExts
62
70
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -168,6 +176,15 @@ module Google
168
176
  include ::Google::Protobuf::MessageExts
169
177
  extend ::Google::Protobuf::MessageExts::ClassMethods
170
178
  end
179
+
180
+ # @!attribute [rw] key
181
+ # @return [::String]
182
+ # @!attribute [rw] value
183
+ # @return [::String]
184
+ class UserLabelsEntry
185
+ include ::Google::Protobuf::MessageExts
186
+ extend ::Google::Protobuf::MessageExts::ClassMethods
187
+ end
171
188
  end
172
189
 
173
190
  # A Service-Level Objective (SLO) describes a level of desired good service. It
@@ -202,10 +219,27 @@ module Google
202
219
  # A calendar period, semantically "since the start of the current
203
220
  # `<calendar_period>`". At this time, only `DAY`, `WEEK`, `FORTNIGHT`, and
204
221
  # `MONTH` are supported.
222
+ # @!attribute [rw] user_labels
223
+ # @return [::Google::Protobuf::Map{::String => ::String}]
224
+ # Labels which have been used to annotate the service-level objective. Label
225
+ # keys must start with a letter. Label keys and values may contain lowercase
226
+ # letters, numbers, underscores, and dashes. Label keys and values have a
227
+ # maximum length of 63 characters, and must be less than 128 bytes in size.
228
+ # Up to 64 label entries may be stored. For labels which do not have a
229
+ # semantic value, the empty string may be supplied for the label value.
205
230
  class ServiceLevelObjective
206
231
  include ::Google::Protobuf::MessageExts
207
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
208
233
 
234
+ # @!attribute [rw] key
235
+ # @return [::String]
236
+ # @!attribute [rw] value
237
+ # @return [::String]
238
+ class UserLabelsEntry
239
+ include ::Google::Protobuf::MessageExts
240
+ extend ::Google::Protobuf::MessageExts::ClassMethods
241
+ end
242
+
209
243
  # `ServiceLevelObjective.View` determines what form of
210
244
  # `ServiceLevelObjective` is returned from `GetServiceLevelObjective`,
211
245
  # `ListServiceLevelObjectives`, and `ListServiceLevelObjectiveVersions` RPCs.
@@ -309,9 +343,7 @@ module Google
309
343
  end
310
344
  end
311
345
 
312
- # Range of numerical values, inclusive of `min` and exclusive of `max`. If the
313
- # open range "< range.max" is desired, set `range.min = -infinity`. If the open
314
- # range ">= range.min" is desired, set `range.max = infinity`.
346
+ # Range of numerical values within `min` and `max`.
315
347
  # @!attribute [rw] min
316
348
  # @return [::Float]
317
349
  # Range minimum.
@@ -373,8 +405,8 @@ module Google
373
405
  # A `DistributionCut` defines a `TimeSeries` and thresholds used for measuring
374
406
  # good service and total service. The `TimeSeries` must have `ValueType =
375
407
  # DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`. The
376
- # computed `good_service` will be the count of values x in the `Distribution`
377
- # such that `range.min <= x < range.max`.
408
+ # computed `good_service` will be the estimated count of values in the
409
+ # `Distribution` that fall within the specified `min` and `max`.
378
410
  # @!attribute [rw] distribution_filter
379
411
  # @return [::String]
380
412
  # A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
@@ -433,7 +465,7 @@ module Google
433
465
  end
434
466
 
435
467
  # A `MetricRange` is used when each window is good when the value x of a
436
- # single `TimeSeries` satisfies `range.min <= x < range.max`. The provided
468
+ # single `TimeSeries` satisfies `range.min <= x <= range.max`. The provided
437
469
  # `TimeSeries` must have `ValueType = INT64` or `ValueType = DOUBLE` and
438
470
  # `MetricKind = GAUGE`.
439
471
  # @!attribute [rw] time_series
@@ -24,7 +24,8 @@ module Google
24
24
  # The `CreateService` request.
25
25
  # @!attribute [rw] parent
26
26
  # @return [::String]
27
- # Required. Resource name of the parent workspace. The format is:
27
+ # Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
28
+ # the parent workspace. The format is:
28
29
  #
29
30
  # projects/[PROJECT_ID_OR_NUMBER]
30
31
  # @!attribute [rw] service_id
@@ -54,7 +55,8 @@ module Google
54
55
  # @!attribute [rw] parent
55
56
  # @return [::String]
56
57
  # Required. Resource name of the parent containing the listed services, either a
57
- # project or a Monitoring Workspace. The formats are:
58
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) or a
59
+ # Monitoring Workspace. The formats are:
58
60
  #
59
61
  # projects/[PROJECT_ID_OR_NUMBER]
60
62
  # workspaces/[HOST_PROJECT_ID_OR_NUMBER]
@@ -21,8 +21,8 @@ module Google
21
21
  module Cloud
22
22
  module Monitoring
23
23
  module V3
24
- # The context of a span, attached to
25
- # [Exemplars][google.api.Distribution.Exemplars]
24
+ # The context of a span. This is attached to an
25
+ # {::Google::Api::Distribution::Exemplar Exemplar}
26
26
  # in {::Google::Api::Distribution Distribution} values during aggregation.
27
27
  #
28
28
  # It contains the name of a span with format:
@@ -102,12 +102,13 @@ module Google
102
102
  # The [monitored
103
103
  # resource](https://cloud.google.com/monitoring/api/resources) associated
104
104
  # with the configuration.
105
- # The following monitored resource types are supported for Uptime checks:
105
+ # The following monitored resource types are valid for this field:
106
106
  # `uptime_url`,
107
107
  # `gce_instance`,
108
108
  # `gae_app`,
109
109
  # `aws_ec2_instance`,
110
110
  # `aws_elb_load_balancer`
111
+ # `k8s_service`
111
112
  # @!attribute [rw] resource_group
112
113
  # @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::ResourceGroup]
113
114
  # The group resource associated with the configuration.
@@ -339,11 +340,13 @@ module Google
339
340
 
340
341
  # Selects regular-expression matching. The match succeeds of the output
341
342
  # matches the regular expression specified in the `content` string.
343
+ # Regex matching is only supported for HTTP/HTTPS checks.
342
344
  MATCHES_REGEX = 3
343
345
 
344
346
  # Selects negation of regular-expression matching. The match succeeds if
345
347
  # the output does _NOT_ match the regular expression specified in the
346
- # `content` string.
348
+ # `content` string. Regex matching is only supported for HTTP/HTTPS
349
+ # checks.
347
350
  NOT_MATCHES_REGEX = 4
348
351
  end
349
352
  end
@@ -24,7 +24,8 @@ module Google
24
24
  # The protocol for the `ListUptimeCheckConfigs` request.
25
25
  # @!attribute [rw] parent
26
26
  # @return [::String]
27
- # Required. The project whose Uptime check configurations are listed. The format is:
27
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
28
+ # whose Uptime check configurations are listed. The format is:
28
29
  #
29
30
  # projects/[PROJECT_ID_OR_NUMBER]
30
31
  # @!attribute [rw] page_size
@@ -77,7 +78,8 @@ module Google
77
78
  # The protocol for the `CreateUptimeCheckConfig` request.
78
79
  # @!attribute [rw] parent
79
80
  # @return [::String]
80
- # Required. The project in which to create the Uptime check. The format is:
81
+ # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
82
+ # which to create the Uptime check. The format is:
81
83
  #
82
84
  # projects/[PROJECT_ID_OR_NUMBER]
83
85
  # @!attribute [rw] uptime_check_config
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.3
4
+ version: 0.5.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: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -232,6 +232,7 @@ files:
232
232
  - proto_docs/google/api/metric.rb
233
233
  - proto_docs/google/api/monitored_resource.rb
234
234
  - proto_docs/google/api/resource.rb
235
+ - proto_docs/google/longrunning/operations.rb
235
236
  - proto_docs/google/monitoring/v3/alert.rb
236
237
  - proto_docs/google/monitoring/v3/alert_service.rb
237
238
  - proto_docs/google/monitoring/v3/common.rb