google-cloud-monitoring 0.36.0 → 0.37.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/README.md +12 -12
  4. data/lib/google/cloud/monitoring.rb +11 -11
  5. data/lib/google/cloud/monitoring/v3.rb +11 -11
  6. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +27 -8
  7. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/common.rb +1 -1
  8. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group.rb +10 -6
  9. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification.rb +4 -4
  10. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service.rb +27 -7
  11. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/service_service.rb +32 -22
  12. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +5 -4
  13. data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb +12 -8
  14. data/lib/google/cloud/monitoring/v3/metric_service_client.rb +5 -5
  15. data/lib/google/cloud/monitoring/v3/metric_service_client_config.json +3 -3
  16. data/lib/google/cloud/monitoring/v3/service_monitoring_service_client.rb +31 -21
  17. data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +12 -8
  18. data/lib/google/cloud/monitoring/version.rb +1 -1
  19. data/lib/google/monitoring/v3/alert_pb.rb +6 -0
  20. data/lib/google/monitoring/v3/alert_service_services_pb.rb +1 -2
  21. data/lib/google/monitoring/v3/group_service_services_pb.rb +1 -2
  22. data/lib/google/monitoring/v3/metric_pb.rb +48 -0
  23. data/lib/google/monitoring/v3/metric_service_pb.rb +19 -0
  24. data/lib/google/monitoring/v3/metric_service_services_pb.rb +6 -7
  25. data/lib/google/monitoring/v3/notification_service_services_pb.rb +1 -2
  26. data/lib/google/monitoring/v3/service_pb.rb +7 -0
  27. data/lib/google/monitoring/v3/service_service_pb.rb +0 -1
  28. data/lib/google/monitoring/v3/service_service_services_pb.rb +2 -3
  29. data/lib/google/monitoring/v3/uptime_service_services_pb.rb +1 -2
  30. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2612470d049bd952c6d196cf80384d2563741e95b30683537364004d5ca5c97a
4
- data.tar.gz: f454cd84a27301e079783c37d61e26532da45fa7962010c9cb9d1b5088689800
3
+ metadata.gz: 6af720978e439c44e10f5e99f68333623160b4b61bad2b0d9992dc19c40af29f
4
+ data.tar.gz: ea90d22c1b228b97e8fdac047b82821848b1d4b43dc525a9807bcf2bf045db1e
5
5
  SHA512:
6
- metadata.gz: 41df5610f17353955d9b594dc315447113e1c7242163ded4e1b97c33cdf7f705205f5f242150eee17b6b352cb782e7000a84dfd1896097ecdfd7bba65dd7ae4e
7
- data.tar.gz: 8b1f7dc9a7737d6edb53687090960d04546f1ceabfb7066bc9129321058b77e8d6b19482ea33a05b00e9af4a41fd020034fdbef10ef5099f560e5971cadcb55d
6
+ metadata.gz: 03f1574e991fbcc6ad56502c8e5aae30a44c0c607bb19a0fb4be347e2e9b6e79d60b2a79335aeed1ef825391ede43ad88b43b7e0d5b551397d180a96e811d1db
7
+ data.tar.gz: 77f30e9e817cd8d6538586f8140d09faa5f93d1f955092ec47444050401a773f94a8722ece0c3a6a99066c821c21d4f5781381ff3c1d927f38fccfa554472d00
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Stackdriver Monitoring API
2
+ --title=Cloud Monitoring API
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # Ruby Client for Stackdriver Monitoring API
2
-
3
- [Stackdriver Monitoring API][Product Documentation]:
4
- Manages your Stackdriver Monitoring data and configurations. Most projects
5
- must be associated with a Stackdriver account, with a few exceptions as
6
- noted on the individual method pages. The table entries below are
7
- presented in alphabetical order, not in order of common use. For
8
- explanations of the concepts found in the table entries, read the
9
- [Stackdriver Monitoring documentation](/monitoring/docs).
1
+ # Ruby Client for Cloud Monitoring API
2
+
3
+ [Cloud Monitoring API][Product Documentation]:
4
+ Manages your Cloud Monitoring data and configurations. Most projects must
5
+ be associated with a Workspace, with a few exceptions as noted on the
6
+ individual method pages. The table entries below are presented in
7
+ alphabetical order, not in order of common use. For explanations of the
8
+ concepts found in the table entries, read the [Cloud Monitoring
9
+ documentation](/monitoring/docs).
10
10
  - [Client Library Documentation][]
11
11
  - [Product Documentation][]
12
12
 
@@ -16,7 +16,7 @@ steps:
16
16
 
17
17
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
18
18
  2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
19
- 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
19
+ 3. [Enable the Cloud Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
20
20
  4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-monitoring/latest/file.AUTHENTICATION.html)
21
21
 
22
22
  ### Installation
@@ -47,9 +47,9 @@ end
47
47
  ```
48
48
 
49
49
  ### Next Steps
50
- - Read the [Client Library Documentation][] for Stackdriver Monitoring API
50
+ - Read the [Client Library Documentation][] for Cloud Monitoring API
51
51
  to see other available methods on the client.
52
- - Read the [Stackdriver Monitoring API Product documentation][Product Documentation]
52
+ - Read the [Cloud Monitoring API Product documentation][Product Documentation]
53
53
  to learn more about the product and see How-to Guides.
54
54
  - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
55
55
  to see the full list of Cloud APIs that we cover.
@@ -21,15 +21,15 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Stackdriver Monitoring API
24
+ # # Ruby Client for Cloud Monitoring API
25
25
  #
26
- # [Stackdriver Monitoring API][Product Documentation]:
27
- # Manages your Stackdriver Monitoring data and configurations. Most projects
28
- # must be associated with a Stackdriver account, with a few exceptions as
29
- # noted on the individual method pages. The table entries below are
30
- # presented in alphabetical order, not in order of common use. For
31
- # explanations of the concepts found in the table entries, read the
32
- # [Stackdriver Monitoring documentation](/monitoring/docs).
26
+ # [Cloud Monitoring API][Product Documentation]:
27
+ # Manages your Cloud Monitoring data and configurations. Most projects must
28
+ # be associated with a Workspace, with a few exceptions as noted on the
29
+ # individual method pages. The table entries below are presented in
30
+ # alphabetical order, not in order of common use. For explanations of the
31
+ # concepts found in the table entries, read the [Cloud Monitoring
32
+ # documentation](/monitoring/docs).
33
33
  # - [Product Documentation][]
34
34
  #
35
35
  # ## Quick Start
@@ -38,7 +38,7 @@ module Google
38
38
  #
39
39
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
40
40
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
41
- # 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
41
+ # 3. [Enable the Cloud Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
42
42
  # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-monitoring/latest/file.AUTHENTICATION.html)
43
43
  #
44
44
  # ### Installation
@@ -69,7 +69,7 @@ module Google
69
69
  # ```
70
70
  #
71
71
  # ### Next Steps
72
- # - Read the [Stackdriver Monitoring API Product documentation][Product Documentation]
72
+ # - Read the [Cloud Monitoring API Product documentation][Product Documentation]
73
73
  # to learn more about the product and see How-to Guides.
74
74
  # - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
75
75
  # to see the full list of Cloud APIs that we cover.
@@ -360,7 +360,7 @@ module Google
360
360
 
361
361
  module ServiceMonitoring
362
362
  ##
363
- # The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for
363
+ # The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
364
364
  # managing and querying aspects of a workspace's services. These include the
365
365
  # `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
366
366
  # of categorized Health Metrics.
@@ -28,15 +28,15 @@ module Google
28
28
  # rubocop:disable LineLength
29
29
 
30
30
  ##
31
- # # Ruby Client for Stackdriver Monitoring API
31
+ # # Ruby Client for Cloud Monitoring API
32
32
  #
33
- # [Stackdriver Monitoring API][Product Documentation]:
34
- # Manages your Stackdriver Monitoring data and configurations. Most projects
35
- # must be associated with a Stackdriver account, with a few exceptions as
36
- # noted on the individual method pages. The table entries below are
37
- # presented in alphabetical order, not in order of common use. For
38
- # explanations of the concepts found in the table entries, read the
39
- # [Stackdriver Monitoring documentation](/monitoring/docs).
33
+ # [Cloud Monitoring API][Product Documentation]:
34
+ # Manages your Cloud Monitoring data and configurations. Most projects must
35
+ # be associated with a Workspace, with a few exceptions as noted on the
36
+ # individual method pages. The table entries below are presented in
37
+ # alphabetical order, not in order of common use. For explanations of the
38
+ # concepts found in the table entries, read the [Cloud Monitoring
39
+ # documentation](/monitoring/docs).
40
40
  # - [Product Documentation][]
41
41
  #
42
42
  # ## Quick Start
@@ -45,7 +45,7 @@ module Google
45
45
  #
46
46
  # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
47
47
  # 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
48
- # 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
48
+ # 3. [Enable the Cloud Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
49
49
  # 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-monitoring/latest/file.AUTHENTICATION.html)
50
50
  #
51
51
  # ### Installation
@@ -76,7 +76,7 @@ module Google
76
76
  # ```
77
77
  #
78
78
  # ### Next Steps
79
- # - Read the [Stackdriver Monitoring API Product documentation][Product Documentation]
79
+ # - Read the [Cloud Monitoring API Product documentation][Product Documentation]
80
80
  # to learn more about the product and see How-to Guides.
81
81
  # - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
82
82
  # to see the full list of Cloud APIs that we cover.
@@ -391,7 +391,7 @@ module Google
391
391
 
392
392
  module ServiceMonitoring
393
393
  ##
394
- # The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for
394
+ # The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
395
395
  # managing and querying aspects of a workspace's services. These include the
396
396
  # `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
397
397
  # of categorized Health Metrics.
@@ -157,6 +157,11 @@ module Google
157
157
  # @return [Google::Monitoring::V3::AlertPolicy::Condition::MetricAbsence]
158
158
  # A condition that checks that a time series continues to
159
159
  # receive new data points.
160
+ # @!attribute [rw] condition_time_series_query_language
161
+ # @return [Google::Monitoring::V3::AlertPolicy::Condition::TimeSeriesQueryLanguageCondition]
162
+ # A condition that uses the time series query language format to define
163
+ # alerts.
164
+ # If set, no other conditions can be present.
160
165
  class Condition
161
166
  # Specifies how many time series must fail a predicate to trigger a
162
167
  # condition. If not specified, then a `{count: 1}` trigger is used.
@@ -179,8 +184,8 @@ module Google
179
184
  #
180
185
  # The filter is similar to the one that is specified in the
181
186
  # [`ListTimeSeries`
182
- # request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that
183
- # call is useful to verify the time series that will be retrieved /
187
+ # request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
188
+ # (that call is useful to verify the time series that will be retrieved /
184
189
  # processed) and must specify the metric type and optionally may contain
185
190
  # restrictions on resource type, resource labels, and metric labels.
186
191
  # This field may not exceed 2048 Unicode characters in length.
@@ -194,8 +199,8 @@ module Google
194
199
  # are applied in the order specified.
195
200
  #
196
201
  # This field is similar to the one in the [`ListTimeSeries`
197
- # request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It
198
- # is advisable to use the `ListTimeSeries` method when debugging this
202
+ # request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
203
+ # It is advisable to use the `ListTimeSeries` method when debugging this
199
204
  # field.
200
205
  # @!attribute [rw] denominator_filter
201
206
  # @return [String]
@@ -265,8 +270,8 @@ module Google
265
270
  #
266
271
  # The filter is similar to the one that is specified in the
267
272
  # [`ListTimeSeries`
268
- # request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that
269
- # call is useful to verify the time series that will be retrieved /
273
+ # request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
274
+ # (that call is useful to verify the time series that will be retrieved /
270
275
  # processed) and must specify the metric type and optionally may contain
271
276
  # restrictions on resource type, resource labels, and metric labels.
272
277
  # This field may not exceed 2048 Unicode characters in length.
@@ -280,8 +285,8 @@ module Google
280
285
  # are applied in the order specified.
281
286
  #
282
287
  # This field is similar to the one in the [`ListTimeSeries`
283
- # request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It
284
- # is advisable to use the `ListTimeSeries` method when debugging this
288
+ # request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
289
+ # It is advisable to use the `ListTimeSeries` method when debugging this
285
290
  # field.
286
291
  # @!attribute [rw] duration
287
292
  # @return [Google::Protobuf::Duration]
@@ -298,6 +303,20 @@ module Google
298
303
  # condition will trigger if the comparison is true for any of the
299
304
  # time series that have been identified by `filter` and `aggregations`.
300
305
  class MetricAbsence; end
306
+
307
+ # A condition type that allows alert policies to be defined using the
308
+ # time series query language.
309
+ # @!attribute [rw] query
310
+ # @return [String]
311
+ # A query in the time series query language format that generates time
312
+ # series indicating points in time that the condition should be
313
+ # considered active.
314
+ # @!attribute [rw] summary
315
+ # @return [String]
316
+ # A short explanation of what the query represents. For example:
317
+ #
318
+ # "Error ratio exceeds 15% for >5% of servers in >2 regions"
319
+ class TimeSeriesQueryLanguageCondition; end
301
320
  end
302
321
 
303
322
  # Operators for combining conditions.
@@ -89,7 +89,7 @@ module Google
89
89
  # representative data can be more easily graphed and comprehended, and the
90
90
  # individual time series data is still available for later drilldown. For more
91
91
  # details, see [Aggregating Time
92
- # Series](/monitoring/api/v3/metrics#aggregating_time_series).
92
+ # Series](https://cloud.google.com/monitoring/api/v3/metrics#aggregating_time_series).
93
93
  # @!attribute [rw] alignment_period
94
94
  # @return [Google::Protobuf::Duration]
95
95
  # The `alignment_period` specifies a time interval, in seconds, that is used
@@ -44,19 +44,23 @@ module Google
44
44
  # group and its ancestors.
45
45
  # @!attribute [rw] name
46
46
  # @return [String]
47
- # Output only. The name of this group. The format is
48
- # `"projects/{project_id_or_number}/groups/{group_id}"`.
47
+ # Output only. The name of this group. The format is:
48
+ #
49
+ # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
50
+ #
49
51
  # When creating a group, this field is ignored and a new name is created
50
52
  # consisting of the project specified in the call to `CreateGroup`
51
- # and a unique `{group_id}` that is generated automatically.
53
+ # and a unique `[GROUP_ID]` that is generated automatically.
52
54
  # @!attribute [rw] display_name
53
55
  # @return [String]
54
56
  # A user-assigned name for this group, used only for display purposes.
55
57
  # @!attribute [rw] parent_name
56
58
  # @return [String]
57
- # The name of the group's parent, if it has one.
58
- # The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
59
- # For groups with no parent, `parentName` is the empty string, `""`.
59
+ # The name of the group's parent, if it has one. The format is:
60
+ #
61
+ # projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
62
+ #
63
+ # For groups with no parent, `parent_name` is the empty string, `""`.
60
64
  # @!attribute [rw] filter
61
65
  # @return [String]
62
66
  # The filter used to determine which monitored resources belong to this
@@ -21,9 +21,9 @@ module Google
21
21
  # must be specified to configure channels of a given type.
22
22
  # @!attribute [rw] name
23
23
  # @return [String]
24
- # The full REST resource name for this descriptor. The syntax is:
24
+ # The full REST resource name for this descriptor. The format is:
25
25
  #
26
- # projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE]
26
+ # projects/[PROJECT_ID_OR_NUMBER]/notificationChannelDescriptors/[TYPE]
27
27
  #
28
28
  # In the above, `[TYPE]` is the value of the `type` field.
29
29
  # @!attribute [rw] type
@@ -64,9 +64,9 @@ module Google
64
64
  # value of the {Google::Monitoring::V3::NotificationChannelDescriptor#type NotificationChannelDescriptor#type} field.
65
65
  # @!attribute [rw] name
66
66
  # @return [String]
67
- # The full REST resource name for this channel. The syntax is:
67
+ # The full REST resource name for this channel. The format is:
68
68
  #
69
- # projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
69
+ # projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
70
70
  #
71
71
  # The `[CHANNEL_ID]` is automatically assigned by the server on creation.
72
72
  # @!attribute [rw] display_name
@@ -19,12 +19,13 @@ module Google
19
19
  # A `Service` is a discrete, autonomous, and network-accessible unit, designed
20
20
  # to solve an individual concern
21
21
  # ([Wikipedia](https://en.wikipedia.org/wiki/Service-orientation)). In
22
- # Stackdriver Monitoring, a `Service` acts as the root resource under which
22
+ # Cloud Monitoring, a `Service` acts as the root resource under which
23
23
  # operational aspects of the service are accessible.
24
24
  # @!attribute [rw] name
25
25
  # @return [String]
26
- # Resource name for this Service. Of the form
27
- # `projects/{project_id}/services/{service_id}`.
26
+ # Resource name for this Service. The format is:
27
+ #
28
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
28
29
  # @!attribute [rw] display_name
29
30
  # @return [String]
30
31
  # Name used for UI elements listing this Service.
@@ -40,6 +41,9 @@ module Google
40
41
  # @!attribute [rw] cluster_istio
41
42
  # @return [Google::Monitoring::V3::Service::ClusterIstio]
42
43
  # Type used for Istio services that live in a Kubernetes cluster.
44
+ # @!attribute [rw] mesh_istio
45
+ # @return [Google::Monitoring::V3::Service::MeshIstio]
46
+ # Type used for Istio services scoped to an Istio mesh.
43
47
  # @!attribute [rw] telemetry
44
48
  # @return [Google::Monitoring::V3::Service::Telemetry]
45
49
  # Configuration for how to query telemetry on a Service.
@@ -64,7 +68,8 @@ module Google
64
68
  # resource: https://cloud.google.com/monitoring/api/resources#tag_api
65
69
  class CloudEndpoints; end
66
70
 
67
- # Istio service. Learn more at http://istio.io.
71
+ # Istio service scoped to a single Kubernetes cluster. Learn more at
72
+ # http://istio.io.
68
73
  # @!attribute [rw] location
69
74
  # @return [String]
70
75
  # The location of the Kubernetes cluster in which this Istio service is
@@ -85,6 +90,21 @@ module Google
85
90
  # `destination_service_name` metric label in Istio metrics.
86
91
  class ClusterIstio; end
87
92
 
93
+ # Istio service scoped to an Istio mesh
94
+ # @!attribute [rw] mesh_uid
95
+ # @return [String]
96
+ # Identifier for the mesh in which this Istio service is defined.
97
+ # Corresponds to the `mesh_uid` metric label in Istio metrics.
98
+ # @!attribute [rw] service_namespace
99
+ # @return [String]
100
+ # The namespace of the Istio service underlying this service. Corresponds
101
+ # to the `destination_service_namespace` metric label in Istio metrics.
102
+ # @!attribute [rw] service_name
103
+ # @return [String]
104
+ # The name of the Istio service underlying this service. Corresponds to the
105
+ # `destination_service_name` metric label in Istio metrics.
106
+ class MeshIstio; end
107
+
88
108
  # Configuration for how to query telemetry on a Service.
89
109
  # @!attribute [rw] resource_name
90
110
  # @return [String]
@@ -101,9 +121,9 @@ module Google
101
121
  # "99.5% of requests in each calendar month return successfully."
102
122
  # @!attribute [rw] name
103
123
  # @return [String]
104
- # Resource name for this `ServiceLevelObjective`.
105
- # Of the form
106
- # `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
124
+ # Resource name for this `ServiceLevelObjective`. The format is:
125
+ #
126
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
107
127
  # @!attribute [rw] display_name
108
128
  # @return [String]
109
129
  # Name used for UI elements listing this SLO.
@@ -19,12 +19,13 @@ module Google
19
19
  # The `CreateService` request.
20
20
  # @!attribute [rw] parent
21
21
  # @return [String]
22
- # Required. Resource name of the parent workspace.
23
- # Of the form `projects/{project_id}`.
22
+ # Required. Resource name of the parent workspace. The format is:
23
+ #
24
+ # projects/[PROJECT_ID_OR_NUMBER]
24
25
  # @!attribute [rw] service_id
25
26
  # @return [String]
26
27
  # Optional. The Service id to use for this Service. If omitted, an id will be
27
- # generated instead. Must match the pattern [a-z0-9\-]+
28
+ # generated instead. Must match the pattern `[a-z0-9\-]+`
28
29
  # @!attribute [rw] service
29
30
  # @return [Google::Monitoring::V3::Service]
30
31
  # Required. The `Service` to create.
@@ -33,15 +34,19 @@ module Google
33
34
  # The `GetService` request.
34
35
  # @!attribute [rw] name
35
36
  # @return [String]
36
- # Required. Resource name of the `Service`.
37
- # Of the form `projects/{project_id}/services/{service_id}`.
37
+ # Required. Resource name of the `Service`. The format is:
38
+ #
39
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
38
40
  class GetServiceRequest; end
39
41
 
40
42
  # The `ListServices` request.
41
43
  # @!attribute [rw] parent
42
44
  # @return [String]
43
- # Required. Resource name of the parent `Workspace`.
44
- # Of the form `projects/{project_id}`.
45
+ # Required. Resource name of the parent containing the listed services, either a
46
+ # project or a Monitoring Workspace. The formats are:
47
+ #
48
+ # projects/[PROJECT_ID_OR_NUMBER]
49
+ # workspaces/[HOST_PROJECT_ID_OR_NUMBER]
45
50
  # @!attribute [rw] filter
46
51
  # @return [String]
47
52
  # A filter specifying what `Service`s to return. The filter currently
@@ -78,7 +83,7 @@ module Google
78
83
  # @return [String]
79
84
  # If there are more results than have been returned, then this field is set
80
85
  # to a non-empty value. To see the additional results,
81
- # use that value as `pageToken` in the next call to this method.
86
+ # use that value as `page_token` in the next call to this method.
82
87
  class ListServicesResponse; end
83
88
 
84
89
  # The `UpdateService` request.
@@ -94,20 +99,22 @@ module Google
94
99
  # The `DeleteService` request.
95
100
  # @!attribute [rw] name
96
101
  # @return [String]
97
- # Required. Resource name of the `Service` to delete.
98
- # Of the form `projects/{project_id}/services/{service_id}`.
102
+ # Required. Resource name of the `Service` to delete. The format is:
103
+ #
104
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
99
105
  class DeleteServiceRequest; end
100
106
 
101
107
  # The `CreateServiceLevelObjective` request.
102
108
  # @!attribute [rw] parent
103
109
  # @return [String]
104
- # Required. Resource name of the parent `Service`.
105
- # Of the form `projects/{project_id}/services/{service_id}`.
110
+ # Required. Resource name of the parent `Service`. The format is:
111
+ #
112
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
106
113
  # @!attribute [rw] service_level_objective_id
107
114
  # @return [String]
108
115
  # Optional. The ServiceLevelObjective id to use for this
109
116
  # ServiceLevelObjective. If omitted, an id will be generated instead. Must
110
- # match the pattern [a-z0-9\-]+
117
+ # match the pattern `[a-z0-9\-]+`
111
118
  # @!attribute [rw] service_level_objective
112
119
  # @return [Google::Monitoring::V3::ServiceLevelObjective]
113
120
  # Required. The `ServiceLevelObjective` to create.
@@ -118,9 +125,9 @@ module Google
118
125
  # The `GetServiceLevelObjective` request.
119
126
  # @!attribute [rw] name
120
127
  # @return [String]
121
- # Required. Resource name of the `ServiceLevelObjective` to get.
122
- # Of the form
123
- # `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
128
+ # Required. Resource name of the `ServiceLevelObjective` to get. The format is:
129
+ #
130
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
124
131
  # @!attribute [rw] view
125
132
  # @return [Google::Monitoring::V3::ServiceLevelObjective::View]
126
133
  # View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
@@ -132,8 +139,11 @@ module Google
132
139
  # The `ListServiceLevelObjectives` request.
133
140
  # @!attribute [rw] parent
134
141
  # @return [String]
135
- # Required. Resource name of the parent `Service`.
136
- # Of the form `projects/{project_id}/services/{service_id}`.
142
+ # Required. Resource name of the parent containing the listed SLOs, either a
143
+ # project or a Monitoring Workspace. The formats are:
144
+ #
145
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
146
+ # workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
137
147
  # @!attribute [rw] filter
138
148
  # @return [String]
139
149
  # A filter specifying what `ServiceLevelObjective`s to return.
@@ -162,7 +172,7 @@ module Google
162
172
  # @return [String]
163
173
  # If there are more results than have been returned, then this field is set
164
174
  # to a non-empty value. To see the additional results,
165
- # use that value as `pageToken` in the next call to this method.
175
+ # use that value as `page_token` in the next call to this method.
166
176
  class ListServiceLevelObjectivesResponse; end
167
177
 
168
178
  # The `UpdateServiceLevelObjective` request.
@@ -178,9 +188,9 @@ module Google
178
188
  # The `DeleteServiceLevelObjective` request.
179
189
  # @!attribute [rw] name
180
190
  # @return [String]
181
- # Required. Resource name of the `ServiceLevelObjective` to delete.
182
- # Of the form
183
- # `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
191
+ # Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
192
+ #
193
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
184
194
  class DeleteServiceLevelObjectiveRequest; end
185
195
  end
186
196
  end
@@ -22,9 +22,9 @@ module Google
22
22
  # @return [String]
23
23
  # A unique resource name for this InternalChecker. The format is:
24
24
  #
25
- # `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
25
+ # projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
26
26
  #
27
- # `[PROJECT_ID]` is the Stackdriver Workspace project for the
27
+ # `[PROJECT_ID_OR_NUMBER]` is the Stackdriver Workspace project for the
28
28
  # Uptime check config associated with the internal checker.
29
29
  # @!attribute [rw] display_name
30
30
  # @return [String]
@@ -76,7 +76,7 @@ module Google
76
76
  # @return [String]
77
77
  # A unique resource name for this Uptime check configuration. The format is:
78
78
  #
79
- # `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
79
+ # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
80
80
  #
81
81
  # This field should be omitted when creating the Uptime check configuration;
82
82
  # on create, the resource name is assigned by the server and included in the
@@ -148,7 +148,8 @@ module Google
148
148
  # @!attribute [rw] group_id
149
149
  # @return [String]
150
150
  # The group of resources being monitored. Should be only the `[GROUP_ID]`,
151
- # and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
151
+ # and not the full-path
152
+ # `projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]`.
152
153
  # @!attribute [rw] resource_type
153
154
  # @return [Google::Monitoring::V3::GroupResourceType]
154
155
  # The resource type of the group members.
@@ -19,8 +19,9 @@ module Google
19
19
  # The protocol for the `ListUptimeCheckConfigs` request.
20
20
  # @!attribute [rw] parent
21
21
  # @return [String]
22
- # Required. The project whose Uptime check configurations are listed. The format
23
- # is `projects/[PROJECT_ID]`.
22
+ # Required. The project whose Uptime check configurations are listed. The format is:
23
+ #
24
+ # projects/[PROJECT_ID_OR_NUMBER]
24
25
  # @!attribute [rw] page_size
25
26
  # @return [Integer]
26
27
  # The maximum number of results to return in a single response. The server
@@ -54,15 +55,17 @@ module Google
54
55
  # The protocol for the `GetUptimeCheckConfig` request.
55
56
  # @!attribute [rw] name
56
57
  # @return [String]
57
- # Required. The Uptime check configuration to retrieve. The format
58
- # is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
58
+ # Required. The Uptime check configuration to retrieve. The format is:
59
+ #
60
+ # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
59
61
  class GetUptimeCheckConfigRequest; end
60
62
 
61
63
  # The protocol for the `CreateUptimeCheckConfig` request.
62
64
  # @!attribute [rw] parent
63
65
  # @return [String]
64
- # Required. The project in which to create the Uptime check. The format
65
- # is `projects/[PROJECT_ID]`.
66
+ # Required. The project in which to create the Uptime check. The format is:
67
+ #
68
+ # projects/[PROJECT_ID_OR_NUMBER]
66
69
  # @!attribute [rw] uptime_check_config
67
70
  # @return [Google::Monitoring::V3::UptimeCheckConfig]
68
71
  # Required. The new Uptime check configuration.
@@ -93,8 +96,9 @@ module Google
93
96
  # The protocol for the `DeleteUptimeCheckConfig` request.
94
97
  # @!attribute [rw] name
95
98
  # @return [String]
96
- # Required. The Uptime check configuration to delete. The format
97
- # is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
99
+ # Required. The Uptime check configuration to delete. The format is:
100
+ #
101
+ # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
98
102
  class DeleteUptimeCheckConfigRequest; end
99
103
 
100
104
  # The protocol for the `ListUptimeCheckIps` request.
@@ -309,7 +309,7 @@ module Google
309
309
 
310
310
  # Service calls
311
311
 
312
- # Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
312
+ # Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
313
313
  #
314
314
  # @param name [String]
315
315
  # Required. The project on which to execute the request. The format is:
@@ -374,7 +374,7 @@ module Google
374
374
  @list_monitored_resource_descriptors.call(req, options, &block)
375
375
  end
376
376
 
377
- # Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
377
+ # Gets a single monitored resource descriptor. This method does not require a Workspace.
378
378
  #
379
379
  # @param name [String]
380
380
  # Required. The monitored resource descriptor to get. The format is:
@@ -409,7 +409,7 @@ module Google
409
409
  @get_monitored_resource_descriptor.call(req, options, &block)
410
410
  end
411
411
 
412
- # Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
412
+ # Lists metric descriptors that match a filter. This method does not require a Workspace.
413
413
  #
414
414
  # @param name [String]
415
415
  # Required. The project on which to execute the request. The format is:
@@ -476,7 +476,7 @@ module Google
476
476
  @list_metric_descriptors.call(req, options, &block)
477
477
  end
478
478
 
479
- # Gets a single metric descriptor. This method does not require a Stackdriver account.
479
+ # Gets a single metric descriptor. This method does not require a Workspace.
480
480
  #
481
481
  # @param name [String]
482
482
  # Required. The metric descriptor on which to execute the request. The format is:
@@ -592,7 +592,7 @@ module Google
592
592
  nil
593
593
  end
594
594
 
595
- # Lists time series that match a filter. This method does not require a Stackdriver account.
595
+ # Lists time series that match a filter. This method does not require a Workspace.
596
596
  #
597
597
  # @param name [String]
598
598
  # Required. The project on which to execute the request. The format is:
@@ -13,9 +13,9 @@
13
13
  "initial_retry_delay_millis": 100,
14
14
  "retry_delay_multiplier": 1.3,
15
15
  "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
17
- "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
16
+ "initial_rpc_timeout_millis": 30000,
17
+ "rpc_timeout_multiplier": 1.3,
18
+ "max_rpc_timeout_millis": 90000,
19
19
  "total_timeout_millis": 600000
20
20
  }
21
21
  },
@@ -33,7 +33,7 @@ module Google
33
33
  module Cloud
34
34
  module Monitoring
35
35
  module V3
36
- # The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for
36
+ # The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
37
37
  # managing and querying aspects of a workspace's services. These include the
38
38
  # `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
39
39
  # of categorized Health Metrics.
@@ -328,15 +328,16 @@ module Google
328
328
  # Create a `Service`.
329
329
  #
330
330
  # @param parent [String]
331
- # Required. Resource name of the parent workspace.
332
- # Of the form `projects/{project_id}`.
331
+ # Required. Resource name of the parent workspace. The format is:
332
+ #
333
+ # projects/[PROJECT_ID_OR_NUMBER]
333
334
  # @param service [Google::Monitoring::V3::Service | Hash]
334
335
  # Required. The `Service` to create.
335
336
  # A hash of the same form as `Google::Monitoring::V3::Service`
336
337
  # can also be provided.
337
338
  # @param service_id [String]
338
339
  # Optional. The Service id to use for this Service. If omitted, an id will be
339
- # generated instead. Must match the pattern [a-z0-9\-]+
340
+ # generated instead. Must match the pattern `[a-z0-9\-]+`
340
341
  # @param options [Google::Gax::CallOptions]
341
342
  # Overrides the default settings for this call, e.g, timeout,
342
343
  # retries, etc.
@@ -373,8 +374,9 @@ module Google
373
374
  # Get the named `Service`.
374
375
  #
375
376
  # @param name [String]
376
- # Required. Resource name of the `Service`.
377
- # Of the form `projects/{project_id}/services/{service_id}`.
377
+ # Required. Resource name of the `Service`. The format is:
378
+ #
379
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
378
380
  # @param options [Google::Gax::CallOptions]
379
381
  # Overrides the default settings for this call, e.g, timeout,
380
382
  # retries, etc.
@@ -404,8 +406,11 @@ module Google
404
406
  # List `Service`s for this workspace.
405
407
  #
406
408
  # @param parent [String]
407
- # Required. Resource name of the parent `Workspace`.
408
- # Of the form `projects/{project_id}`.
409
+ # Required. Resource name of the parent containing the listed services, either a
410
+ # project or a Monitoring Workspace. The formats are:
411
+ #
412
+ # projects/[PROJECT_ID_OR_NUMBER]
413
+ # workspaces/[HOST_PROJECT_ID_OR_NUMBER]
409
414
  # @param filter [String]
410
415
  # A filter specifying what `Service`s to return. The filter currently
411
416
  # supports the following fields:
@@ -518,8 +523,9 @@ module Google
518
523
  # Soft delete this `Service`.
519
524
  #
520
525
  # @param name [String]
521
- # Required. Resource name of the `Service` to delete.
522
- # Of the form `projects/{project_id}/services/{service_id}`.
526
+ # Required. Resource name of the `Service` to delete. The format is:
527
+ #
528
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
523
529
  # @param options [Google::Gax::CallOptions]
524
530
  # Overrides the default settings for this call, e.g, timeout,
525
531
  # retries, etc.
@@ -549,8 +555,9 @@ module Google
549
555
  # Create a `ServiceLevelObjective` for the given `Service`.
550
556
  #
551
557
  # @param parent [String]
552
- # Required. Resource name of the parent `Service`.
553
- # Of the form `projects/{project_id}/services/{service_id}`.
558
+ # Required. Resource name of the parent `Service`. The format is:
559
+ #
560
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
554
561
  # @param service_level_objective [Google::Monitoring::V3::ServiceLevelObjective | Hash]
555
562
  # Required. The `ServiceLevelObjective` to create.
556
563
  # The provided `name` will be respected if no `ServiceLevelObjective` exists
@@ -560,7 +567,7 @@ module Google
560
567
  # @param service_level_objective_id [String]
561
568
  # Optional. The ServiceLevelObjective id to use for this
562
569
  # ServiceLevelObjective. If omitted, an id will be generated instead. Must
563
- # match the pattern [a-z0-9\-]+
570
+ # match the pattern `[a-z0-9\-]+`
564
571
  # @param options [Google::Gax::CallOptions]
565
572
  # Overrides the default settings for this call, e.g, timeout,
566
573
  # retries, etc.
@@ -597,9 +604,9 @@ module Google
597
604
  # Get a `ServiceLevelObjective` by name.
598
605
  #
599
606
  # @param name [String]
600
- # Required. Resource name of the `ServiceLevelObjective` to get.
601
- # Of the form
602
- # `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
607
+ # Required. Resource name of the `ServiceLevelObjective` to get. The format is:
608
+ #
609
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
603
610
  # @param view [Google::Monitoring::V3::ServiceLevelObjective::View]
604
611
  # View of the `ServiceLevelObjective` to return. If `DEFAULT`, return the
605
612
  # `ServiceLevelObjective` as originally defined. If `EXPLICIT` and the
@@ -636,8 +643,11 @@ module Google
636
643
  # List the `ServiceLevelObjective`s for the given `Service`.
637
644
  #
638
645
  # @param parent [String]
639
- # Required. Resource name of the parent `Service`.
640
- # Of the form `projects/{project_id}/services/{service_id}`.
646
+ # Required. Resource name of the parent containing the listed SLOs, either a
647
+ # project or a Monitoring Workspace. The formats are:
648
+ #
649
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
650
+ # workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-
641
651
  # @param filter [String]
642
652
  # A filter specifying what `ServiceLevelObjective`s to return.
643
653
  # @param page_size [Integer]
@@ -743,9 +753,9 @@ module Google
743
753
  # Delete the given `ServiceLevelObjective`.
744
754
  #
745
755
  # @param name [String]
746
- # Required. Resource name of the `ServiceLevelObjective` to delete.
747
- # Of the form
748
- # `projects/{project_id}/services/{service_id}/serviceLevelObjectives/{slo_name}`.
756
+ # Required. Resource name of the `ServiceLevelObjective` to delete. The format is:
757
+ #
758
+ # projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
749
759
  # @param options [Google::Gax::CallOptions]
750
760
  # Overrides the default settings for this call, e.g, timeout,
751
761
  # retries, etc.
@@ -279,8 +279,9 @@ module Google
279
279
  # (leaving out any invalid configurations).
280
280
  #
281
281
  # @param parent [String]
282
- # Required. The project whose Uptime check configurations are listed. The format
283
- # is `projects/[PROJECT_ID]`.
282
+ # Required. The project whose Uptime check configurations are listed. The format is:
283
+ #
284
+ # projects/[PROJECT_ID_OR_NUMBER]
284
285
  # @param page_size [Integer]
285
286
  # The maximum number of resources contained in the underlying API
286
287
  # response. If page streaming is performed per-resource, this
@@ -334,8 +335,9 @@ module Google
334
335
  # Gets a single Uptime check configuration.
335
336
  #
336
337
  # @param name [String]
337
- # Required. The Uptime check configuration to retrieve. The format
338
- # is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
338
+ # Required. The Uptime check configuration to retrieve. The format is:
339
+ #
340
+ # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
339
341
  # @param options [Google::Gax::CallOptions]
340
342
  # Overrides the default settings for this call, e.g, timeout,
341
343
  # retries, etc.
@@ -365,8 +367,9 @@ module Google
365
367
  # Creates a new Uptime check configuration.
366
368
  #
367
369
  # @param parent [String]
368
- # Required. The project in which to create the Uptime check. The format
369
- # is `projects/[PROJECT_ID]`.
370
+ # Required. The project in which to create the Uptime check. The format is:
371
+ #
372
+ # projects/[PROJECT_ID_OR_NUMBER]
370
373
  # @param uptime_check_config [Google::Monitoring::V3::UptimeCheckConfig | Hash]
371
374
  # Required. The new Uptime check configuration.
372
375
  # A hash of the same form as `Google::Monitoring::V3::UptimeCheckConfig`
@@ -463,8 +466,9 @@ module Google
463
466
  # other dependent configs that would be rendered invalid by the deletion.
464
467
  #
465
468
  # @param name [String]
466
- # Required. The Uptime check configuration to delete. The format
467
- # is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
469
+ # Required. The Uptime check configuration to delete. The format is:
470
+ #
471
+ # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
468
472
  # @param options [Google::Gax::CallOptions]
469
473
  # Overrides the default settings for this call, e.g, timeout,
470
474
  # retries, etc.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Monitoring
19
- VERSION = "0.36.0".freeze
19
+ VERSION = "0.37.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -34,6 +34,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
34
34
  oneof :condition do
35
35
  optional :condition_threshold, :message, 1, "google.monitoring.v3.AlertPolicy.Condition.MetricThreshold"
36
36
  optional :condition_absent, :message, 2, "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence"
37
+ optional :condition_time_series_query_language, :message, 14, "google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition"
37
38
  end
38
39
  end
39
40
  add_message "google.monitoring.v3.AlertPolicy.Condition.Trigger" do
@@ -58,6 +59,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
58
59
  optional :duration, :message, 2, "google.protobuf.Duration"
59
60
  optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
60
61
  end
62
+ add_message "google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition" do
63
+ optional :query, :string, 1
64
+ optional :summary, :string, 2
65
+ end
61
66
  add_enum "google.monitoring.v3.AlertPolicy.ConditionCombinerType" do
62
67
  value :COMBINE_UNSPECIFIED, 0
63
68
  value :AND, 1
@@ -75,6 +80,7 @@ module Google
75
80
  AlertPolicy::Condition::Trigger = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.Trigger").msgclass
76
81
  AlertPolicy::Condition::MetricThreshold = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricThreshold").msgclass
77
82
  AlertPolicy::Condition::MetricAbsence = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricAbsence").msgclass
83
+ AlertPolicy::Condition::TimeSeriesQueryLanguageCondition = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition").msgclass
78
84
  AlertPolicy::ConditionCombinerType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.ConditionCombinerType").enummodule
79
85
  end
80
86
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/alert_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/group_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -9,6 +9,7 @@ require 'google/api/label_pb'
9
9
  require 'google/api/metric_pb'
10
10
  require 'google/api/monitored_resource_pb'
11
11
  require 'google/monitoring/v3/common_pb'
12
+ require 'google/protobuf/duration_pb'
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_message "google.monitoring.v3.Point" do
14
15
  optional :interval, :message, 1, "google.monitoring.v3.TimeInterval"
@@ -22,6 +23,45 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
23
  optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
23
24
  repeated :points, :message, 5, "google.monitoring.v3.Point"
24
25
  end
26
+ add_message "google.monitoring.v3.TimeSeriesDescriptor" do
27
+ repeated :label_descriptors, :message, 1, "google.api.LabelDescriptor"
28
+ repeated :point_descriptors, :message, 5, "google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor"
29
+ end
30
+ add_message "google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor" do
31
+ optional :key, :string, 1
32
+ optional :value_type, :enum, 2, "google.api.MetricDescriptor.ValueType"
33
+ optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
34
+ end
35
+ add_message "google.monitoring.v3.TimeSeriesData" do
36
+ repeated :label_values, :message, 1, "google.monitoring.v3.LabelValue"
37
+ repeated :point_data, :message, 2, "google.monitoring.v3.TimeSeriesData.PointData"
38
+ end
39
+ add_message "google.monitoring.v3.TimeSeriesData.PointData" do
40
+ repeated :values, :message, 1, "google.monitoring.v3.TypedValue"
41
+ optional :time_interval, :message, 2, "google.monitoring.v3.TimeInterval"
42
+ end
43
+ add_message "google.monitoring.v3.LabelValue" do
44
+ oneof :value do
45
+ optional :bool_value, :bool, 1
46
+ optional :int64_value, :int64, 2
47
+ optional :string_value, :string, 3
48
+ end
49
+ end
50
+ add_message "google.monitoring.v3.QueryError" do
51
+ optional :locator, :message, 1, "google.monitoring.v3.TextLocator"
52
+ optional :message, :string, 2
53
+ end
54
+ add_message "google.monitoring.v3.TextLocator" do
55
+ optional :source, :string, 1
56
+ optional :start_position, :message, 2, "google.monitoring.v3.TextLocator.Position"
57
+ optional :end_position, :message, 3, "google.monitoring.v3.TextLocator.Position"
58
+ optional :nested_locator, :message, 4, "google.monitoring.v3.TextLocator"
59
+ optional :nesting_reason, :string, 5
60
+ end
61
+ add_message "google.monitoring.v3.TextLocator.Position" do
62
+ optional :line, :int32, 1
63
+ optional :column, :int32, 2
64
+ end
25
65
  end
26
66
 
27
67
  module Google
@@ -29,6 +69,14 @@ module Google
29
69
  module V3
30
70
  Point = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Point").msgclass
31
71
  TimeSeries = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeries").msgclass
72
+ TimeSeriesDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeriesDescriptor").msgclass
73
+ TimeSeriesDescriptor::ValueDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor").msgclass
74
+ TimeSeriesData = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeriesData").msgclass
75
+ TimeSeriesData::PointData = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TimeSeriesData.PointData").msgclass
76
+ LabelValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.LabelValue").msgclass
77
+ QueryError = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.QueryError").msgclass
78
+ TextLocator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TextLocator").msgclass
79
+ TextLocator::Position = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.TextLocator.Position").msgclass
32
80
  end
33
81
  end
34
82
  end
@@ -86,6 +86,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
86
  optional :status, :message, 1, "google.rpc.Status"
87
87
  optional :point_count, :int32, 2
88
88
  end
89
+ add_message "google.monitoring.v3.QueryTimeSeriesRequest" do
90
+ optional :name, :string, 1
91
+ optional :query, :string, 7
92
+ optional :page_size, :int32, 9
93
+ optional :page_token, :string, 10
94
+ end
95
+ add_message "google.monitoring.v3.QueryTimeSeriesResponse" do
96
+ optional :time_series_descriptor, :message, 8, "google.monitoring.v3.TimeSeriesDescriptor"
97
+ repeated :time_series_data, :message, 9, "google.monitoring.v3.TimeSeriesData"
98
+ optional :next_page_token, :string, 10
99
+ repeated :partial_errors, :message, 11, "google.rpc.Status"
100
+ end
101
+ add_message "google.monitoring.v3.QueryErrorList" do
102
+ repeated :errors, :message, 1, "google.monitoring.v3.QueryError"
103
+ optional :error_summary, :string, 2
104
+ end
89
105
  end
90
106
 
91
107
  module Google
@@ -106,6 +122,9 @@ module Google
106
122
  CreateTimeSeriesError = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateTimeSeriesError").msgclass
107
123
  CreateTimeSeriesSummary = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateTimeSeriesSummary").msgclass
108
124
  CreateTimeSeriesSummary::Error = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateTimeSeriesSummary.Error").msgclass
125
+ QueryTimeSeriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.QueryTimeSeriesRequest").msgclass
126
+ QueryTimeSeriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.QueryTimeSeriesResponse").msgclass
127
+ QueryErrorList = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.QueryErrorList").msgclass
109
128
  end
110
129
  end
111
130
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/metric_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -35,13 +34,13 @@ module Google
35
34
  self.unmarshal_class_method = :decode
36
35
  self.service_name = 'google.monitoring.v3.MetricService'
37
36
 
38
- # Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
37
+ # Lists monitored resource descriptors that match a filter. This method does not require a Workspace.
39
38
  rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
40
- # Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
39
+ # Gets a single monitored resource descriptor. This method does not require a Workspace.
41
40
  rpc :GetMonitoredResourceDescriptor, GetMonitoredResourceDescriptorRequest, Google::Api::MonitoredResourceDescriptor
42
- # Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
41
+ # Lists metric descriptors that match a filter. This method does not require a Workspace.
43
42
  rpc :ListMetricDescriptors, ListMetricDescriptorsRequest, ListMetricDescriptorsResponse
44
- # Gets a single metric descriptor. This method does not require a Stackdriver account.
43
+ # Gets a single metric descriptor. This method does not require a Workspace.
45
44
  rpc :GetMetricDescriptor, GetMetricDescriptorRequest, Google::Api::MetricDescriptor
46
45
  # Creates a new metric descriptor.
47
46
  # User-created metric descriptors define
@@ -51,7 +50,7 @@ module Google
51
50
  # [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be
52
51
  # deleted.
53
52
  rpc :DeleteMetricDescriptor, DeleteMetricDescriptorRequest, Google::Protobuf::Empty
54
- # Lists time series that match a filter. This method does not require a Stackdriver account.
53
+ # Lists time series that match a filter. This method does not require a Workspace.
55
54
  rpc :ListTimeSeries, ListTimeSeriesRequest, ListTimeSeriesResponse
56
55
  # Creates or adds data to one or more time series.
57
56
  # The response is empty if all time series in the request were written.
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/notification_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -19,6 +19,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
19
  optional :app_engine, :message, 7, "google.monitoring.v3.Service.AppEngine"
20
20
  optional :cloud_endpoints, :message, 8, "google.monitoring.v3.Service.CloudEndpoints"
21
21
  optional :cluster_istio, :message, 9, "google.monitoring.v3.Service.ClusterIstio"
22
+ optional :mesh_istio, :message, 10, "google.monitoring.v3.Service.MeshIstio"
22
23
  end
23
24
  end
24
25
  add_message "google.monitoring.v3.Service.Custom" do
@@ -35,6 +36,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
35
36
  optional :service_namespace, :string, 3
36
37
  optional :service_name, :string, 4
37
38
  end
39
+ add_message "google.monitoring.v3.Service.MeshIstio" do
40
+ optional :mesh_uid, :string, 1
41
+ optional :service_namespace, :string, 3
42
+ optional :service_name, :string, 4
43
+ end
38
44
  add_message "google.monitoring.v3.Service.Telemetry" do
39
45
  optional :resource_name, :string, 1
40
46
  end
@@ -123,6 +129,7 @@ module Google
123
129
  Service::AppEngine = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.AppEngine").msgclass
124
130
  Service::CloudEndpoints = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.CloudEndpoints").msgclass
125
131
  Service::ClusterIstio = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.ClusterIstio").msgclass
132
+ Service::MeshIstio = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.MeshIstio").msgclass
126
133
  Service::Telemetry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.Service.Telemetry").msgclass
127
134
  ServiceLevelObjective = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ServiceLevelObjective").msgclass
128
135
  ServiceLevelObjective::View = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ServiceLevelObjective.View").enummodule
@@ -7,7 +7,6 @@ require 'google/protobuf'
7
7
  require 'google/api/annotations_pb'
8
8
  require 'google/api/client_pb'
9
9
  require 'google/api/field_behavior_pb'
10
- require 'google/api/monitored_resource_pb'
11
10
  require 'google/api/resource_pb'
12
11
  require 'google/monitoring/v3/service_pb'
13
12
  require 'google/protobuf/empty_pb'
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/service_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
@@ -25,7 +24,7 @@ module Google
25
24
  module Monitoring
26
25
  module V3
27
26
  module ServiceMonitoringService
28
- # The Stackdriver Monitoring Service-Oriented Monitoring API has endpoints for
27
+ # The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
29
28
  # managing and querying aspects of a workspace's services. These include the
30
29
  # `Service`'s monitored resources, its Service-Level Objectives, and a taxonomy
31
30
  # of categorized Health Metrics.
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/monitoring/v3/uptime_service.proto for package 'google.monitoring.v3'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
 
21
20
  require 'grpc'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.37.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: 2020-03-11 00:00:00.000000000 Z
11
+ date: 2020-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -134,7 +134,7 @@ dependencies:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0.9'
137
- description: google-cloud-monitoring is the official library for Stackdriver Monitoring
137
+ description: google-cloud-monitoring is the official library for Cloud Monitoring
138
138
  API.
139
139
  email: googleapis-packages@google.com
140
140
  executables: []
@@ -260,5 +260,5 @@ requirements: []
260
260
  rubygems_version: 3.0.6
261
261
  signing_key:
262
262
  specification_version: 4
263
- summary: API Client library for Stackdriver Monitoring API
263
+ summary: API Client library for Cloud Monitoring API
264
264
  test_files: []