google-cloud-monitoring-v3 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/monitoring/v3.rb +1 -0
  3. data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +6 -5
  4. data/lib/google/cloud/monitoring/v3/alert_policy_service/paths.rb +25 -6
  5. data/lib/google/cloud/monitoring/v3/group_service/paths.rb +25 -6
  6. data/lib/google/cloud/monitoring/v3/metric_service/client.rb +8 -2
  7. data/lib/google/cloud/monitoring/v3/metric_service/paths.rb +33 -0
  8. data/lib/google/cloud/monitoring/v3/notification_channel_service/paths.rb +25 -6
  9. data/lib/google/cloud/monitoring/v3/query_service.rb +50 -0
  10. data/lib/google/cloud/monitoring/v3/query_service/client.rb +388 -0
  11. data/lib/google/cloud/monitoring/v3/query_service/credentials.rb +53 -0
  12. data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +10 -6
  13. data/lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb +33 -14
  14. data/lib/google/cloud/monitoring/v3/uptime_check_service/paths.rb +33 -14
  15. data/lib/google/cloud/monitoring/v3/version.rb +1 -1
  16. data/lib/google/monitoring/v3/alert_pb.rb +8 -0
  17. data/lib/google/monitoring/v3/alert_service_pb.rb +1 -0
  18. data/lib/google/monitoring/v3/alert_service_services_pb.rb +1 -1
  19. data/lib/google/monitoring/v3/metric_pb.rb +2 -0
  20. data/lib/google/monitoring/v3/metric_service_pb.rb +2 -0
  21. data/lib/google/monitoring/v3/notification_pb.rb +3 -0
  22. data/lib/google/monitoring/v3/notification_service_pb.rb +1 -0
  23. data/lib/google/monitoring/v3/query_service_pb.rb +23 -0
  24. data/lib/google/monitoring/v3/query_service_services_pb.rb +47 -0
  25. data/lib/google/monitoring/v3/service_pb.rb +7 -1
  26. data/proto_docs/google/monitoring/v3/alert.rb +47 -11
  27. data/proto_docs/google/monitoring/v3/alert_service.rb +9 -4
  28. data/proto_docs/google/monitoring/v3/common.rb +28 -19
  29. data/proto_docs/google/monitoring/v3/dropped_labels.rb +10 -9
  30. data/proto_docs/google/monitoring/v3/metric.rb +14 -3
  31. data/proto_docs/google/monitoring/v3/metric_service.rb +19 -3
  32. data/proto_docs/google/monitoring/v3/notification.rb +10 -1
  33. data/proto_docs/google/monitoring/v3/notification_service.rb +4 -0
  34. data/proto_docs/google/monitoring/v3/service.rb +33 -2
  35. data/proto_docs/google/monitoring/v3/service_service.rb +10 -6
  36. data/proto_docs/google/monitoring/v3/uptime.rb +24 -13
  37. metadata +9 -4
@@ -29,10 +29,11 @@ module Google
29
29
  # projects/[PROJECT_ID_OR_NUMBER]
30
30
  #
31
31
  # Note that this field names the parent container in which the alerting
32
- # policy will be written, not the name of the created policy. The alerting
33
- # policy that is returned will have a name that contains a normalized
34
- # representation of this name as a prefix but adds a suffix of the form
35
- # `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
32
+ # policy will be written, not the name of the created policy. |name| must be
33
+ # a host project of a workspace, otherwise INVALID_ARGUMENT error will
34
+ # return. The alerting policy that is returned will have a name that contains
35
+ # a normalized representation of this name as a prefix but adds a suffix of
36
+ # the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
36
37
  # container.
37
38
  # @!attribute [rw] alert_policy
38
39
  # @return [::Google::Cloud::Monitoring::V3::AlertPolicy]
@@ -104,6 +105,10 @@ module Google
104
105
  # If there might be more results than were returned, then this field is set
105
106
  # to a non-empty value. To see the additional results,
106
107
  # use that value as `page_token` in the next call to this method.
108
+ # @!attribute [rw] total_size
109
+ # @return [::Integer]
110
+ # The total number of alert policies in all pages. This number is only an
111
+ # estimate, and may change in subsequent pages. https://aip.dev/158
107
112
  class ListAlertPoliciesResponse
108
113
  include ::Google::Protobuf::MessageExts
109
114
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -44,28 +44,34 @@ 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
48
- # includes both: `[startTime, endTime]`. Valid time intervals depend on the
49
- # [`MetricKind`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind)
50
- # of the metric value. In no case can the end time be earlier than the start
51
- # time.
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.
52
48
  #
53
- # * For a `GAUGE` metric, the `startTime` value is technically optional; if
49
+ # * For `GAUGE` metrics, the `startTime` value is technically optional; if
54
50
  # no value is specified, the start time defaults to the value of the
55
51
  # end time, and the interval represents a single point in time. If both
56
52
  # start and end times are specified, they must be identical. Such an
57
53
  # interval is valid only for `GAUGE` metrics, which are point-in-time
58
- # measurements.
54
+ # measurements. The end time of a new interval must be at least a
55
+ # millisecond after the end time of the previous interval.
59
56
  #
60
- # * For `DELTA` and `CUMULATIVE` metrics, the start time must be earlier
61
- # than the end time.
57
+ # * For `DELTA` metrics, the start time and end time must specify a
58
+ # non-zero interval, with subsequent points specifying contiguous and
59
+ # non-overlapping intervals. For `DELTA` metrics, the start time of
60
+ # the next interval must be at least a millisecond after the end time
61
+ # of the previous interval.
62
62
  #
63
- # * In all cases, the start time of the next interval must be
64
- # at least a millisecond after the end time of the previous interval.
65
- # Because the interval is closed, if the start time of a new interval
66
- # is the same as the end time of the previous interval, data written
67
- # at the new start time could overwrite data written at the previous
68
- # end time.
63
+ # * For `CUMULATIVE` metrics, the start time and end time must specify a
64
+ # a non-zero interval, with subsequent points specifying the same
65
+ # start time and increasing end times, until an event resets the
66
+ # cumulative value to zero and sets a new start time for the following
67
+ # points. The new start time must be at least a millisecond after the
68
+ # end time of the previous interval.
69
+ #
70
+ # * The start time of a new interval must be at least a millisecond after the
71
+ # end time of the previous interval because intervals are closed. If the
72
+ # start time of a new interval is the same as the end time of the previous
73
+ # interval, then data written at the new start time could overwrite data
74
+ # written at the previous end time.
69
75
  # @!attribute [rw] end_time
70
76
  # @return [::Google::Protobuf::Timestamp]
71
77
  # Required. The end of the time interval.
@@ -113,10 +119,13 @@ module Google
113
119
  # time. This will be done before the per-series aligner can be applied to
114
120
  # the data.
115
121
  #
116
- # The value must be at least 60 seconds. If a per-series aligner other than
117
- # `ALIGN_NONE` is specified, this field is required or an error is returned.
118
- # If no per-series aligner is specified, or the aligner `ALIGN_NONE` is
119
- # specified, then this field is ignored.
122
+ # The value must be at least 60 seconds. If a per-series
123
+ # aligner other than `ALIGN_NONE` is specified, this field is required or an
124
+ # error is returned. If no per-series aligner is specified, or the aligner
125
+ # `ALIGN_NONE` is specified, then this field is ignored.
126
+ #
127
+ # The maximum value of the `alignment_period` is 104 weeks (2 years) for
128
+ # charts, and 90,000 seconds (25 hours) for alerting policies.
120
129
  # @!attribute [rw] per_series_aligner
121
130
  # @return [::Google::Cloud::Monitoring::V3::Aggregation::Aligner]
122
131
  # An `Aligner` describes how to bring the data points in a single
@@ -21,16 +21,17 @@ module Google
21
21
  module Cloud
22
22
  module Monitoring
23
23
  module V3
24
- # A set of (label, value) pairs which were dropped during aggregation, attached
25
- # to google.api.Distribution.Exemplars in google.api.Distribution values during
26
- # aggregation.
24
+ # A set of (label, value) pairs that were removed from a Distribution
25
+ # time series during aggregation and then added as an attachment to a
26
+ # Distribution.Exemplar.
27
27
  #
28
- # These values are used in combination with the label values that remain on the
29
- # aggregated Distribution timeseries to construct the full label set for the
30
- # exemplar values. The resulting full label set may be used to identify the
31
- # specific task/job/instance (for example) which may be contributing to a
32
- # long-tail, while allowing the storage savings of only storing aggregated
33
- # distribution values for a large group.
28
+ # The full label set for the exemplars is constructed by using the dropped
29
+ # pairs in combination with the label values that remain on the aggregated
30
+ # Distribution time series. The constructed full label set can be used to
31
+ # identify the specific entity, such as the instance or job, which might be
32
+ # contributing to a long-tail. However, with dropped labels, the storage
33
+ # requirements are reduced because only the aggregated distribution values for
34
+ # a large group of time series are stored.
34
35
  #
35
36
  # Note that there are no guarantees on ordering of the labels from
36
37
  # exemplar-to-exemplar and from distribution-to-distribution in the same
@@ -56,8 +56,8 @@ module Google
56
56
  # @!attribute [rw] metadata
57
57
  # @return [::Google::Api::MonitoredResourceMetadata]
58
58
  # Output only. The associated monitored resource metadata. When reading a
59
- # a timeseries, this field will include metadata labels that are explicitly
60
- # named in the reduction. When creating a timeseries, this field is ignored.
59
+ # time series, this field will include metadata labels that are explicitly
60
+ # named in the reduction. When creating a time series, this field is ignored.
61
61
  # @!attribute [rw] metric_kind
62
62
  # @return [::Google::Api::MetricDescriptor::MetricKind]
63
63
  # The metric kind of the time series. When listing time series, this metric
@@ -87,12 +87,17 @@ module Google
87
87
  # metric. If the associated metric's descriptor must be auto-created, then
88
88
  # the value type of the descriptor is determined by the point's type, which
89
89
  # must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
90
+ # @!attribute [rw] unit
91
+ # @return [::String]
92
+ # The units in which the metric value is reported. It is only applicable
93
+ # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
94
+ # defines the representation of the stored metric values.
90
95
  class TimeSeries
91
96
  include ::Google::Protobuf::MessageExts
92
97
  extend ::Google::Protobuf::MessageExts::ClassMethods
93
98
  end
94
99
 
95
- # A descriptor for the labels and points in a timeseries.
100
+ # A descriptor for the labels and points in a time series.
96
101
  # @!attribute [rw] label_descriptors
97
102
  # @return [::Array<::Google::Api::LabelDescriptor>]
98
103
  # Descriptors for the labels.
@@ -113,6 +118,12 @@ module Google
113
118
  # @!attribute [rw] metric_kind
114
119
  # @return [::Google::Api::MetricDescriptor::MetricKind]
115
120
  # The value stream kind.
121
+ # @!attribute [rw] unit
122
+ # @return [::String]
123
+ # The unit in which `time_series` point values are reported. `unit`
124
+ # follows the UCUM format for units as seen in
125
+ # https://unitsofmeasure.org/ucum.html.
126
+ # `unit` is only valid if `value_type` is INTEGER, DOUBLE, DISTRIBUTION.
116
127
  class ValueDescriptor
117
128
  include ::Google::Protobuf::MessageExts
118
129
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -167,9 +167,12 @@ module Google
167
167
  # The `ListTimeSeries` request.
168
168
  # @!attribute [rw] name
169
169
  # @return [::String]
170
- # Required. The project on which to execute the request. The format is:
170
+ # Required. The project, organization or folder on which to execute the request. The
171
+ # format is:
171
172
  #
172
173
  # projects/[PROJECT_ID_OR_NUMBER]
174
+ # organizations/[ORGANIZATION_ID]
175
+ # folders/[FOLDER_ID]
173
176
  # @!attribute [rw] filter
174
177
  # @return [::String]
175
178
  # Required. A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
@@ -191,6 +194,10 @@ module Google
191
194
  #
192
195
  # By default (if no `aggregation` is explicitly specified), the raw time
193
196
  # series data is returned.
197
+ # @!attribute [rw] secondary_aggregation
198
+ # @return [::Google::Cloud::Monitoring::V3::Aggregation]
199
+ # Apply a second aggregation after `aggregation` is applied. May only be
200
+ # specified if `aggregation` is specified.
194
201
  # @!attribute [rw] order_by
195
202
  # @return [::String]
196
203
  # Unsupported: must be left blank. The points in each time series are
@@ -239,6 +246,14 @@ module Google
239
246
  # @return [::Array<::Google::Rpc::Status>]
240
247
  # Query execution errors that may have caused the time series data returned
241
248
  # to be incomplete.
249
+ # @!attribute [rw] unit
250
+ # @return [::String]
251
+ # The unit in which all `time_series` point values are reported. `unit`
252
+ # follows the UCUM format for units as seen in
253
+ # https://unitsofmeasure.org/ucum.html.
254
+ # If different `time_series` have different units (for example, because they
255
+ # come from different metric types, or a unit is absent), then `unit` will be
256
+ # "\\{not_a_unit}".
242
257
  class ListTimeSeriesResponse
243
258
  include ::Google::Protobuf::MessageExts
244
259
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -311,8 +326,9 @@ module Google
311
326
  # projects/[PROJECT_ID_OR_NUMBER]
312
327
  # @!attribute [rw] query
313
328
  # @return [::String]
314
- # Required. The query in the monitoring query language format. The default
315
- # time zone is in UTC.
329
+ # Required. The query in the [Monitoring Query
330
+ # Language](https://cloud.google.com/monitoring/mql/reference) format.
331
+ # The default time zone is in UTC.
316
332
  # @!attribute [rw] page_size
317
333
  # @return [::Integer]
318
334
  # A positive number that is the maximum number of time_series_data to return.
@@ -33,7 +33,10 @@ module Google
33
33
  # In the above, `[TYPE]` is the value of the `type` field.
34
34
  # @!attribute [rw] type
35
35
  # @return [::String]
36
- # The type of notification channel, such as "email", "sms", etc.
36
+ # The type of notification channel, such as "email" and "sms". To view the
37
+ # full list of channels, see
38
+ # [Channel
39
+ # descriptors](https://cloud.google.com/monitoring/alerts/using-channels-api#ncd).
37
40
  # Notification channel types are globally unique.
38
41
  # @!attribute [rw] display_name
39
42
  # @return [::String]
@@ -134,6 +137,12 @@ module Google
134
137
  # the channel. This is a more convenient approach when the change is
135
138
  # temporary and you want to receive notifications from the same set
136
139
  # of alerting policies on the channel at some point in the future.
140
+ # @!attribute [rw] creation_record
141
+ # @return [::Google::Cloud::Monitoring::V3::MutationRecord]
142
+ # Record of the creation of this channel.
143
+ # @!attribute [rw] mutation_records
144
+ # @return [::Array<::Google::Cloud::Monitoring::V3::MutationRecord>]
145
+ # Records of the modification of this channel.
137
146
  class NotificationChannel
138
147
  include ::Google::Protobuf::MessageExts
139
148
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -147,6 +147,10 @@ module Google
147
147
  # the request. Use the value in the `page_token` field in a
148
148
  # subsequent request to fetch the next set of results. If empty,
149
149
  # all results have been returned.
150
+ # @!attribute [rw] total_size
151
+ # @return [::Integer]
152
+ # The total number of notification channels in all pages. This number is only
153
+ # an estimate, and may change in subsequent pages. https://aip.dev/158
150
154
  class ListNotificationChannelsResponse
151
155
  include ::Google::Protobuf::MessageExts
152
156
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -49,6 +49,11 @@ module Google
49
49
  # @!attribute [rw] mesh_istio
50
50
  # @return [::Google::Cloud::Monitoring::V3::Service::MeshIstio]
51
51
  # Type used for Istio services scoped to an Istio mesh.
52
+ # @!attribute [rw] istio_canonical_service
53
+ # @return [::Google::Cloud::Monitoring::V3::Service::IstioCanonicalService]
54
+ # Type used for canonical services scoped to an Istio mesh.
55
+ # Metrics for Istio are
56
+ # [documented here](https://istio.io/latest/docs/reference/config/metrics/)
52
57
  # @!attribute [rw] telemetry
53
58
  # @return [::Google::Cloud::Monitoring::V3::Service::Telemetry]
54
59
  # Configuration for how to query telemetry on a Service.
@@ -86,7 +91,8 @@ module Google
86
91
  end
87
92
 
88
93
  # Istio service scoped to a single Kubernetes cluster. Learn more at
89
- # http://istio.io.
94
+ # https://istio.io. Clusters running OSS Istio will have their services
95
+ # ingested as this type.
90
96
  # @!attribute [rw] location
91
97
  # @return [::String]
92
98
  # The location of the Kubernetes cluster in which this Istio service is
@@ -110,7 +116,8 @@ module Google
110
116
  extend ::Google::Protobuf::MessageExts::ClassMethods
111
117
  end
112
118
 
113
- # Istio service scoped to an Istio mesh
119
+ # Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
120
+ # will have their services ingested as this type.
114
121
  # @!attribute [rw] mesh_uid
115
122
  # @return [::String]
116
123
  # Identifier for the mesh in which this Istio service is defined.
@@ -128,6 +135,30 @@ module Google
128
135
  extend ::Google::Protobuf::MessageExts::ClassMethods
129
136
  end
130
137
 
138
+ # Canonical service scoped to an Istio mesh. Anthos clusters running ASM >=
139
+ # 1.6.8 will have their services ingested as this type.
140
+ # @!attribute [rw] mesh_uid
141
+ # @return [::String]
142
+ # Identifier for the Istio mesh in which this canonical service is defined.
143
+ # Corresponds to the `mesh_uid` metric label in
144
+ # [Istio metrics](https://cloud.google.com/monitoring/api/metrics_istio).
145
+ # @!attribute [rw] canonical_service_namespace
146
+ # @return [::String]
147
+ # The namespace of the canonical service underlying this service.
148
+ # Corresponds to the `destination_canonical_service_namespace` metric
149
+ # label in [Istio
150
+ # metrics](https://cloud.google.com/monitoring/api/metrics_istio).
151
+ # @!attribute [rw] canonical_service
152
+ # @return [::String]
153
+ # The name of the canonical service underlying this service.
154
+ # Corresponds to the `destination_canonical_service_name` metric label in
155
+ # label in [Istio
156
+ # metrics](https://cloud.google.com/monitoring/api/metrics_istio).
157
+ class IstioCanonicalService
158
+ include ::Google::Protobuf::MessageExts
159
+ extend ::Google::Protobuf::MessageExts::ClassMethods
160
+ end
161
+
131
162
  # Configuration for how to query telemetry on a Service.
132
163
  # @!attribute [rw] resource_name
133
164
  # @return [::String]
@@ -65,16 +65,20 @@ module Google
65
65
  #
66
66
  # - `identifier_case`
67
67
  # - `app_engine.module_id`
68
- # - `cloud_endpoints.service`
69
- # - `cluster_istio.location`
70
- # - `cluster_istio.cluster_name`
71
- # - `cluster_istio.service_namespace`
72
- # - `cluster_istio.service_name`
68
+ # - `cloud_endpoints.service` (reserved for future use)
69
+ # - `mesh_istio.mesh_uid`
70
+ # - `mesh_istio.service_namespace`
71
+ # - `mesh_istio.service_name`
72
+ # - `cluster_istio.location` (deprecated)
73
+ # - `cluster_istio.cluster_name` (deprecated)
74
+ # - `cluster_istio.service_namespace` (deprecated)
75
+ # - `cluster_istio.service_name` (deprecated)
73
76
  #
74
77
  # `identifier_case` refers to which option in the identifier oneof is
75
78
  # populated. For example, the filter `identifier_case = "CUSTOM"` would match
76
79
  # all services with a value for the `custom` field. Valid options are
77
- # "CUSTOM", "APP_ENGINE", "CLOUD_ENDPOINTS", and "CLUSTER_ISTIO".
80
+ # "CUSTOM", "APP_ENGINE", "MESH_ISTIO", plus "CLUSTER_ISTIO" (deprecated)
81
+ # and "CLOUD_ENDPOINTS" (reserved for future use).
78
82
  # @!attribute [rw] page_size
79
83
  # @return [::Integer]
80
84
  # A non-negative number that is the maximum number of results to return.
@@ -86,6 +86,9 @@ module Google
86
86
  #
87
87
  # projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]
88
88
  #
89
+ # `[PROJECT_ID_OR_NUMBER]` is the Workspace host project associated with the
90
+ # Uptime check.
91
+ #
89
92
  # This field should be omitted when creating the Uptime check configuration;
90
93
  # on create, the resource name is assigned by the server and included in the
91
94
  # response.
@@ -172,7 +175,8 @@ module Google
172
175
  # Information involved in an HTTP/HTTPS Uptime check request.
173
176
  # @!attribute [rw] request_method
174
177
  # @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::HttpCheck::RequestMethod]
175
- # The HTTP request method to use for the check.
178
+ # The HTTP request method to use for the check. If set to
179
+ # `METHOD_UNSPECIFIED` then `request_method` defaults to `GET`.
176
180
  # @!attribute [rw] use_ssl
177
181
  # @return [::Boolean]
178
182
  # If `true`, use HTTPS instead of HTTP to run the check.
@@ -195,7 +199,7 @@ module Google
195
199
  # defaults to empty.
196
200
  # @!attribute [rw] mask_headers
197
201
  # @return [::Boolean]
198
- # Boolean specifiying whether to encrypt the header information.
202
+ # Boolean specifying whether to encrypt the header information.
199
203
  # Encryption should be specified for any headers related to authentication
200
204
  # that you do not wish to be seen when retrieving the configuration. The
201
205
  # server will be responsible for encrypting the headers.
@@ -213,7 +217,14 @@ module Google
213
217
  # The maximum number of headers allowed is 100.
214
218
  # @!attribute [rw] content_type
215
219
  # @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::HttpCheck::ContentType]
216
- # The content type to use for the check.
220
+ # The content type header to use for the check. The following
221
+ # configurations result in errors:
222
+ # 1. Content type is specified in both the `headers` field and the
223
+ # `content_type` field.
224
+ # 2. Request method is `GET` and `content_type` is not `TYPE_UNSPECIFIED`
225
+ # 3. Request method is `POST` and `content_type` is `TYPE_UNSPECIFIED`.
226
+ # 4. Request method is `POST` and a "Content-Type" header is provided via
227
+ # `headers` field. The `content_type` field should be used instead.
217
228
  # @!attribute [rw] validate_ssl
218
229
  # @return [::Boolean]
219
230
  # Boolean specifying whether to include SSL certificate validation as a
@@ -222,11 +233,14 @@ module Google
222
233
  # setting `validate_ssl` to `true` has no effect.
223
234
  # @!attribute [rw] body
224
235
  # @return [::String]
225
- # The request body associated with the HTTP request. If `content_type` is
226
- # `URL_ENCODED`, the body passed in must be URL-encoded. Users can provide
227
- # a `Content-Length` header via the `headers` field or the API will do
228
- # so. The maximum byte size is 1 megabyte. Note: As with all `bytes` fields
229
- # JSON representations are base64 encoded.
236
+ # The request body associated with the HTTP POST request. If `content_type`
237
+ # is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
238
+ # provide a `Content-Length` header via the `headers` field or the API will
239
+ # do so. If the `request_method` is `GET` and `body` is not empty, the API
240
+ # will return an error. The maximum byte size is 1 megabyte. Note: As with
241
+ # all `bytes` fields, JSON representations are base64 encoded. e.g.:
242
+ # "foo=bar" in URL-encoded form is "foo%3Dbar" and in base64 encoding is
243
+ # "Zm9vJTI1M0RiYXI=".
230
244
  class HttpCheck
231
245
  include ::Google::Protobuf::MessageExts
232
246
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -267,12 +281,9 @@ module Google
267
281
  POST = 2
268
282
  end
269
283
 
270
- # Header options corresponding to the Content-Type of the body in HTTP
271
- # requests. Note that a `Content-Type` header cannot be present in the
272
- # `headers` field if this field is specified.
284
+ # Header options corresponding to the content type of a HTTP request body.
273
285
  module ContentType
274
- # No content type specified. If the request method is POST, an
275
- # unspecified content type results in a check creation rejection.
286
+ # No content type specified.
276
287
  TYPE_UNSPECIFIED = 0
277
288
 
278
289
  # `body` is in URL-encoded form. Equivalent to setting the `Content-Type`
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.3.0
4
+ version: 0.4.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.3'
26
+ version: '0.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -182,6 +182,9 @@ files:
182
182
  - lib/google/cloud/monitoring/v3/notification_channel_service/client.rb
183
183
  - lib/google/cloud/monitoring/v3/notification_channel_service/credentials.rb
184
184
  - lib/google/cloud/monitoring/v3/notification_channel_service/paths.rb
185
+ - lib/google/cloud/monitoring/v3/query_service.rb
186
+ - lib/google/cloud/monitoring/v3/query_service/client.rb
187
+ - lib/google/cloud/monitoring/v3/query_service/credentials.rb
185
188
  - lib/google/cloud/monitoring/v3/service_monitoring_service.rb
186
189
  - lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb
187
190
  - lib/google/cloud/monitoring/v3/service_monitoring_service/credentials.rb
@@ -206,6 +209,8 @@ files:
206
209
  - lib/google/monitoring/v3/notification_pb.rb
207
210
  - lib/google/monitoring/v3/notification_service_pb.rb
208
211
  - lib/google/monitoring/v3/notification_service_services_pb.rb
212
+ - lib/google/monitoring/v3/query_service_pb.rb
213
+ - lib/google/monitoring/v3/query_service_services_pb.rb
209
214
  - lib/google/monitoring/v3/service_pb.rb
210
215
  - lib/google/monitoring/v3/service_service_pb.rb
211
216
  - lib/google/monitoring/v3/service_service_services_pb.rb