google-cloud-monitoring-v3 0.4.0 → 0.5.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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +52 -56
  5. data/lib/google/cloud/monitoring/v3/alert_policy_service/paths.rb +14 -0
  6. data/lib/google/cloud/monitoring/v3/group_service/client.rb +58 -66
  7. data/lib/google/cloud/monitoring/v3/group_service/paths.rb +14 -0
  8. data/lib/google/cloud/monitoring/v3/metric_service/client.rb +72 -77
  9. data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +75 -79
  10. data/lib/google/cloud/monitoring/v3/notification_channel_service/paths.rb +14 -0
  11. data/lib/google/cloud/monitoring/v3/query_service/client.rb +35 -39
  12. data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +70 -73
  13. data/lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb +14 -0
  14. data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +56 -61
  15. data/lib/google/cloud/monitoring/v3/uptime_check_service/paths.rb +14 -0
  16. data/lib/google/cloud/monitoring/v3/version.rb +1 -1
  17. data/lib/google/monitoring/v3/alert_pb.rb +15 -0
  18. data/lib/google/monitoring/v3/common_pb.rb +0 -6
  19. data/lib/google/monitoring/v3/notification_pb.rb +0 -2
  20. data/lib/google/monitoring/v3/service_pb.rb +2 -0
  21. data/lib/google/monitoring/v3/uptime_service_pb.rb +1 -0
  22. data/proto_docs/google/api/distribution.rb +2 -2
  23. data/proto_docs/google/api/field_behavior.rb +7 -1
  24. data/proto_docs/google/api/launch_stage.rb +7 -1
  25. data/proto_docs/google/api/metric.rb +109 -36
  26. data/proto_docs/google/api/monitored_resource.rb +7 -6
  27. data/proto_docs/google/longrunning/operations.rb +164 -0
  28. data/proto_docs/google/monitoring/v3/alert.rb +66 -1
  29. data/proto_docs/google/monitoring/v3/alert_service.rb +4 -2
  30. data/proto_docs/google/monitoring/v3/common.rb +1 -13
  31. data/proto_docs/google/monitoring/v3/group_service.rb +4 -2
  32. data/proto_docs/google/monitoring/v3/metric.rb +3 -1
  33. data/proto_docs/google/monitoring/v3/metric_service.rb +13 -8
  34. data/proto_docs/google/monitoring/v3/notification.rb +0 -4
  35. data/proto_docs/google/monitoring/v3/notification_service.rb +8 -4
  36. data/proto_docs/google/monitoring/v3/service.rb +38 -6
  37. data/proto_docs/google/monitoring/v3/service_service.rb +4 -2
  38. data/proto_docs/google/monitoring/v3/span_context.rb +2 -2
  39. data/proto_docs/google/monitoring/v3/uptime.rb +5 -2
  40. data/proto_docs/google/monitoring/v3/uptime_service.rb +4 -2
  41. metadata +14 -7
@@ -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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-monitoring-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
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-04-05 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.4'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.4'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -226,6 +232,7 @@ files:
226
232
  - proto_docs/google/api/metric.rb
227
233
  - proto_docs/google/api/monitored_resource.rb
228
234
  - proto_docs/google/api/resource.rb
235
+ - proto_docs/google/longrunning/operations.rb
229
236
  - proto_docs/google/monitoring/v3/alert.rb
230
237
  - proto_docs/google/monitoring/v3/alert_service.rb
231
238
  - proto_docs/google/monitoring/v3/common.rb
@@ -270,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
277
  - !ruby/object:Gem::Version
271
278
  version: '0'
272
279
  requirements: []
273
- rubygems_version: 3.2.13
280
+ rubygems_version: 3.2.17
274
281
  signing_key:
275
282
  specification_version: 4
276
283
  summary: API Client library for the Cloud Monitoring V3 API