google-cloud-monitoring-v3 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +6 -8
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +10 -14
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +14 -20
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +10 -14
- data/lib/google/cloud/monitoring/v3/query_service/client.rb +6 -8
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +10 -14
- data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +6 -8
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +23 -21
- data/lib/google/cloud/monitoring/v3/uptime_check_service.rb +5 -5
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/monitoring/v3/uptime_pb.rb +54 -0
- data/lib/google/monitoring/v3/uptime_service_pb.rb +1 -0
- data/lib/google/monitoring/v3/uptime_service_services_pb.rb +5 -5
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/api/distribution.rb +2 -0
- data/proto_docs/google/api/metric.rb +10 -6
- data/proto_docs/google/api/monitored_resource.rb +23 -18
- data/proto_docs/google/monitoring/v3/uptime.rb +184 -14
- data/proto_docs/google/monitoring/v3/uptime_service.rb +8 -1
- metadata +7 -7
@@ -25,13 +25,13 @@ module Google
|
|
25
25
|
module V3
|
26
26
|
module UptimeCheckService
|
27
27
|
# The UptimeCheckService API is used to manage (list, create, delete, edit)
|
28
|
-
# Uptime check configurations in the
|
28
|
+
# Uptime check configurations in the Cloud Monitoring product. An Uptime
|
29
29
|
# check is a piece of configuration that determines which resources and
|
30
30
|
# services to monitor for availability. These configurations can also be
|
31
|
-
# configured interactively by navigating to the [Cloud
|
32
|
-
# (
|
33
|
-
# clicking on "Monitoring" on the left-hand side to navigate to
|
34
|
-
# and then clicking on "Uptime".
|
31
|
+
# configured interactively by navigating to the [Cloud console]
|
32
|
+
# (https://console.cloud.google.com), selecting the appropriate project,
|
33
|
+
# clicking on "Monitoring" on the left-hand side to navigate to Cloud
|
34
|
+
# Monitoring, and then clicking on "Uptime".
|
35
35
|
class Service
|
36
36
|
|
37
37
|
include ::GRPC::GenericService
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -133,6 +133,7 @@ module Google
|
|
133
133
|
# following boundaries:
|
134
134
|
#
|
135
135
|
# Upper bound (0 <= i < N-1): offset + (width * i).
|
136
|
+
#
|
136
137
|
# Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
137
138
|
# @!attribute [rw] num_finite_buckets
|
138
139
|
# @return [::Integer]
|
@@ -156,6 +157,7 @@ module Google
|
|
156
157
|
# following boundaries:
|
157
158
|
#
|
158
159
|
# Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
|
160
|
+
#
|
159
161
|
# Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
160
162
|
# @!attribute [rw] num_finite_buckets
|
161
163
|
# @return [::Integer]
|
@@ -174,9 +174,10 @@ module Google
|
|
174
174
|
# @return [::Array<::String>]
|
175
175
|
# Read-only. If present, then a [time
|
176
176
|
# series][google.monitoring.v3.TimeSeries], which is identified partially by
|
177
|
-
# a metric type and a
|
178
|
-
#
|
179
|
-
#
|
177
|
+
# a metric type and a
|
178
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor}, that
|
179
|
+
# is associated with this metric type can only be associated with one of the
|
180
|
+
# monitored resource types listed here.
|
180
181
|
class MetricDescriptor
|
181
182
|
include ::Google::Protobuf::MessageExts
|
182
183
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -184,7 +185,9 @@ module Google
|
|
184
185
|
# Additional annotations that can be used to guide the usage of a metric.
|
185
186
|
# @!attribute [rw] launch_stage
|
186
187
|
# @return [::Google::Api::LaunchStage]
|
187
|
-
# Deprecated. Must use the
|
188
|
+
# Deprecated. Must use the
|
189
|
+
# {::Google::Api::MetricDescriptor#launch_stage MetricDescriptor.launch_stage}
|
190
|
+
# instead.
|
188
191
|
# @!attribute [rw] sample_period
|
189
192
|
# @return [::Google::Protobuf::Duration]
|
190
193
|
# The sampling period of metric data points. For metrics which are written
|
@@ -253,8 +256,9 @@ module Google
|
|
253
256
|
# labels of a {::Google::Api::MetricDescriptor `MetricDescriptor`}.
|
254
257
|
# @!attribute [rw] type
|
255
258
|
# @return [::String]
|
256
|
-
# An existing metric type, see
|
257
|
-
# For example,
|
259
|
+
# An existing metric type, see
|
260
|
+
# {::Google::Api::MetricDescriptor google.api.MetricDescriptor}. For example,
|
261
|
+
# `custom.googleapis.com/invoice/paid/amount`.
|
258
262
|
# @!attribute [rw] labels
|
259
263
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
260
264
|
# The set of label values that uniquely identify this metric. All
|
@@ -19,9 +19,10 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Api
|
22
|
-
# An object that describes the schema of a
|
23
|
-
#
|
24
|
-
#
|
22
|
+
# An object that describes the schema of a
|
23
|
+
# {::Google::Api::MonitoredResource MonitoredResource} object using a type name
|
24
|
+
# and a set of labels. For example, the monitored resource descriptor for
|
25
|
+
# Google Compute Engine VM instances has a type of
|
25
26
|
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and
|
26
27
|
# `"zone"` to identify particular VM instances.
|
27
28
|
#
|
@@ -70,11 +71,13 @@ module Google
|
|
70
71
|
# An object representing a resource that can be used for monitoring, logging,
|
71
72
|
# billing, or other purposes. Examples include virtual machine instances,
|
72
73
|
# databases, and storage devices such as disks. The `type` field identifies a
|
73
|
-
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} object
|
74
|
-
# schema. Information in the `labels` field
|
75
|
-
# its attributes according to the schema.
|
76
|
-
# Engine VM instance could be represented by
|
77
|
-
#
|
74
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} object
|
75
|
+
# that describes the resource's schema. Information in the `labels` field
|
76
|
+
# identifies the actual resource and its attributes according to the schema.
|
77
|
+
# For example, a particular Compute Engine VM instance could be represented by
|
78
|
+
# the following object, because the
|
79
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} for
|
80
|
+
# `"gce_instance"` has labels
|
78
81
|
# `"project_id"`, `"instance_id"` and `"zone"`:
|
79
82
|
#
|
80
83
|
# { "type": "gce_instance",
|
@@ -84,10 +87,12 @@ module Google
|
|
84
87
|
# @!attribute [rw] type
|
85
88
|
# @return [::String]
|
86
89
|
# Required. The monitored resource type. This field must match
|
87
|
-
# the `type` field of a
|
88
|
-
#
|
89
|
-
#
|
90
|
-
# the
|
90
|
+
# the `type` field of a
|
91
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor}
|
92
|
+
# object. For example, the type of a Compute Engine VM instance is
|
93
|
+
# `gce_instance`. Some descriptors include the service name in the type; for
|
94
|
+
# example, the type of a Datastream stream is
|
95
|
+
# `datastream.googleapis.com/Stream`.
|
91
96
|
# @!attribute [rw] labels
|
92
97
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
93
98
|
# Required. Values for all of the labels listed in the associated monitored
|
@@ -107,12 +112,12 @@ module Google
|
|
107
112
|
end
|
108
113
|
end
|
109
114
|
|
110
|
-
# Auxiliary metadata for a {::Google::Api::MonitoredResource MonitoredResource}
|
111
|
-
# {::Google::Api::MonitoredResource MonitoredResource} objects contain the
|
112
|
-
# uniquely identify a monitored resource
|
113
|
-
# auxiliary metadata. Monitoring and
|
114
|
-
# pipeline to extract metadata for cloud resources of
|
115
|
-
# the metadata in this message.
|
115
|
+
# Auxiliary metadata for a {::Google::Api::MonitoredResource MonitoredResource}
|
116
|
+
# object. {::Google::Api::MonitoredResource MonitoredResource} objects contain the
|
117
|
+
# minimum set of information to uniquely identify a monitored resource
|
118
|
+
# instance. There is some other useful auxiliary metadata. Monitoring and
|
119
|
+
# Logging use an ingestion pipeline to extract metadata for cloud resources of
|
120
|
+
# all types, and store the metadata in this message.
|
116
121
|
# @!attribute [rw] system_labels
|
117
122
|
# @return [::Google::Protobuf::Struct]
|
118
123
|
# Output only. Values for predefined system metadata labels.
|
@@ -29,13 +29,13 @@ module Google
|
|
29
29
|
#
|
30
30
|
# projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]
|
31
31
|
#
|
32
|
-
# `[PROJECT_ID_OR_NUMBER]` is the
|
33
|
-
# Uptime check config associated with the internal checker.
|
32
|
+
# `[PROJECT_ID_OR_NUMBER]` is the Cloud Monitoring Metrics Scope project for
|
33
|
+
# the Uptime check config associated with the internal checker.
|
34
34
|
# @!attribute [rw] display_name
|
35
35
|
# @return [::String]
|
36
36
|
# The checker's human-readable name. The display name
|
37
|
-
# should be unique within a
|
38
|
-
# to identify; however, uniqueness is not enforced.
|
37
|
+
# should be unique within a Cloud Monitoring Metrics Scope in order to make
|
38
|
+
# it easier to identify; however, uniqueness is not enforced.
|
39
39
|
# @!attribute [rw] network
|
40
40
|
# @return [::String]
|
41
41
|
# The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the
|
@@ -47,7 +47,7 @@ module Google
|
|
47
47
|
# @!attribute [rw] peer_project_id
|
48
48
|
# @return [::String]
|
49
49
|
# The GCP project ID where the internal checker lives. Not necessary
|
50
|
-
# the same as the
|
50
|
+
# the same as the Metrics Scope project.
|
51
51
|
# @!attribute [rw] state
|
52
52
|
# @return [::Google::Cloud::Monitoring::V3::InternalChecker::State]
|
53
53
|
# The current operational state of the internal checker.
|
@@ -95,8 +95,8 @@ module Google
|
|
95
95
|
# @!attribute [rw] display_name
|
96
96
|
# @return [::String]
|
97
97
|
# A human-friendly name for the Uptime check configuration. The display name
|
98
|
-
# should be unique within a
|
99
|
-
# to identify; however, uniqueness is not enforced. Required.
|
98
|
+
# should be unique within a Cloud Monitoring Workspace in order to make it
|
99
|
+
# easier to identify; however, uniqueness is not enforced. Required.
|
100
100
|
# @!attribute [rw] monitored_resource
|
101
101
|
# @return [::Google::Api::MonitoredResource]
|
102
102
|
# The [monitored
|
@@ -109,6 +109,8 @@ module Google
|
|
109
109
|
# `aws_ec2_instance`,
|
110
110
|
# `aws_elb_load_balancer`
|
111
111
|
# `k8s_service`
|
112
|
+
# `servicedirectory_service`
|
113
|
+
# `cloud_run_revision`
|
112
114
|
# @!attribute [rw] resource_group
|
113
115
|
# @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::ResourceGroup]
|
114
116
|
# The group resource associated with the configuration.
|
@@ -135,6 +137,9 @@ module Google
|
|
135
137
|
# in the `content_matchers` list is supported, and additional entries will
|
136
138
|
# be ignored. This field is optional and should only be specified if a
|
137
139
|
# content match is required as part of the/ Uptime check.
|
140
|
+
# @!attribute [rw] checker_type
|
141
|
+
# @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::CheckerType]
|
142
|
+
# The type of checkers to use to execute the Uptime check.
|
138
143
|
# @!attribute [rw] selected_regions
|
139
144
|
# @return [::Array<::Google::Cloud::Monitoring::V3::UptimeCheckRegion>]
|
140
145
|
# The list of regions from which the check will be run.
|
@@ -154,6 +159,15 @@ module Google
|
|
154
159
|
# `true` and this list is empty, the check will egress from all the
|
155
160
|
# InternalCheckers configured for the project that owns this
|
156
161
|
# `UptimeCheckConfig`.
|
162
|
+
# @!attribute [rw] user_labels
|
163
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
164
|
+
# User-supplied key/value data to be used for organizing and
|
165
|
+
# identifying the `UptimeCheckConfig` objects.
|
166
|
+
#
|
167
|
+
# The field can contain up to 64 entries. Each key and value is limited to
|
168
|
+
# 63 Unicode characters or 128 bytes, whichever is smaller. Labels and
|
169
|
+
# values can contain only lowercase letters, numerals, underscores, and
|
170
|
+
# dashes. Keys must begin with a letter.
|
157
171
|
class UptimeCheckConfig
|
158
172
|
include ::Google::Protobuf::MessageExts
|
159
173
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -173,6 +187,17 @@ module Google
|
|
173
187
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
174
188
|
end
|
175
189
|
|
190
|
+
# Information involved in sending ICMP pings alongside public HTTP/TCP
|
191
|
+
# checks. For HTTP, the pings are performed for each part of the redirect
|
192
|
+
# chain.
|
193
|
+
# @!attribute [rw] pings_count
|
194
|
+
# @return [::Integer]
|
195
|
+
# Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.
|
196
|
+
class PingConfig
|
197
|
+
include ::Google::Protobuf::MessageExts
|
198
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
199
|
+
end
|
200
|
+
|
176
201
|
# Information involved in an HTTP/HTTPS Uptime check request.
|
177
202
|
# @!attribute [rw] request_method
|
178
203
|
# @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::HttpCheck::RequestMethod]
|
@@ -226,6 +251,14 @@ module Google
|
|
226
251
|
# 3. Request method is `POST` and `content_type` is `TYPE_UNSPECIFIED`.
|
227
252
|
# 4. Request method is `POST` and a "Content-Type" header is provided via
|
228
253
|
# `headers` field. The `content_type` field should be used instead.
|
254
|
+
# @!attribute [rw] custom_content_type
|
255
|
+
# @return [::String]
|
256
|
+
# A user provided content type header to use for the check. The invalid
|
257
|
+
# configurations outlined in the `content_type` field apply to
|
258
|
+
# `custom_content_type`, as well as the following:
|
259
|
+
# 1. `content_type` is `URL_ENCODED` and `custom_content_type` is set.
|
260
|
+
# 2. `content_type` is `USER_PROVIDED` and `custom_content_type` is not
|
261
|
+
# set.
|
229
262
|
# @!attribute [rw] validate_ssl
|
230
263
|
# @return [::Boolean]
|
231
264
|
# Boolean specifying whether to include SSL certificate validation as a
|
@@ -238,10 +271,19 @@ module Google
|
|
238
271
|
# is `URL_ENCODED`, the body passed in must be URL-encoded. Users can
|
239
272
|
# provide a `Content-Length` header via the `headers` field or the API will
|
240
273
|
# do so. If the `request_method` is `GET` and `body` is not empty, the API
|
241
|
-
# will return an error. The maximum byte size is 1 megabyte.
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
274
|
+
# will return an error. The maximum byte size is 1 megabyte.
|
275
|
+
#
|
276
|
+
# Note: If client libraries aren't used (which performs the conversion
|
277
|
+
# automatically) base64 encode your `body` data since the field is of
|
278
|
+
# `bytes` type.
|
279
|
+
# @!attribute [rw] accepted_response_status_codes
|
280
|
+
# @return [::Array<::Google::Cloud::Monitoring::V3::UptimeCheckConfig::HttpCheck::ResponseStatusCode>]
|
281
|
+
# If present, the check will only pass if the HTTP response status code is
|
282
|
+
# in this set of status codes. If empty, the HTTP status code will only
|
283
|
+
# pass if the HTTP status code is 200-299.
|
284
|
+
# @!attribute [rw] ping_config
|
285
|
+
# @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::PingConfig]
|
286
|
+
# Contains information needed to add pings to an HTTP check.
|
245
287
|
class HttpCheck
|
246
288
|
include ::Google::Protobuf::MessageExts
|
247
289
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -261,6 +303,43 @@ module Google
|
|
261
303
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
304
|
end
|
263
305
|
|
306
|
+
# A status to accept. Either a status code class like "2xx", or an integer
|
307
|
+
# status code like "200".
|
308
|
+
# @!attribute [rw] status_value
|
309
|
+
# @return [::Integer]
|
310
|
+
# A status code to accept.
|
311
|
+
# @!attribute [rw] status_class
|
312
|
+
# @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::HttpCheck::ResponseStatusCode::StatusClass]
|
313
|
+
# A class of status codes to accept.
|
314
|
+
class ResponseStatusCode
|
315
|
+
include ::Google::Protobuf::MessageExts
|
316
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
317
|
+
|
318
|
+
# An HTTP status code class.
|
319
|
+
module StatusClass
|
320
|
+
# Default value that matches no status codes.
|
321
|
+
STATUS_CLASS_UNSPECIFIED = 0
|
322
|
+
|
323
|
+
# The class of status codes between 100 and 199.
|
324
|
+
STATUS_CLASS_1XX = 100
|
325
|
+
|
326
|
+
# The class of status codes between 200 and 299.
|
327
|
+
STATUS_CLASS_2XX = 200
|
328
|
+
|
329
|
+
# The class of status codes between 300 and 399.
|
330
|
+
STATUS_CLASS_3XX = 300
|
331
|
+
|
332
|
+
# The class of status codes between 400 and 499.
|
333
|
+
STATUS_CLASS_4XX = 400
|
334
|
+
|
335
|
+
# The class of status codes between 500 and 599.
|
336
|
+
STATUS_CLASS_5XX = 500
|
337
|
+
|
338
|
+
# The class of all status codes.
|
339
|
+
STATUS_CLASS_ANY = 1000
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
264
343
|
# @!attribute [rw] key
|
265
344
|
# @return [::String]
|
266
345
|
# @!attribute [rw] value
|
@@ -290,6 +369,11 @@ module Google
|
|
290
369
|
# `body` is in URL-encoded form. Equivalent to setting the `Content-Type`
|
291
370
|
# to `application/x-www-form-urlencoded` in the HTTP request.
|
292
371
|
URL_ENCODED = 1
|
372
|
+
|
373
|
+
# `body` is in `custom_content_type` form. Equivalent to setting the
|
374
|
+
# `Content-Type` to the contents of `custom_content_type` in the HTTP
|
375
|
+
# request.
|
376
|
+
USER_PROVIDED = 2
|
293
377
|
end
|
294
378
|
end
|
295
379
|
|
@@ -299,6 +383,9 @@ module Google
|
|
299
383
|
# The TCP port on the server against which to run the check. Will be
|
300
384
|
# combined with host (specified within the `monitored_resource`) to
|
301
385
|
# construct the full URL. Required.
|
386
|
+
# @!attribute [rw] ping_config
|
387
|
+
# @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::PingConfig]
|
388
|
+
# Contains information needed to add pings to a TCP check.
|
302
389
|
class TcpCheck
|
303
390
|
include ::Google::Protobuf::MessageExts
|
304
391
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -311,16 +398,51 @@ module Google
|
|
311
398
|
# matching.
|
312
399
|
# @!attribute [rw] content
|
313
400
|
# @return [::String]
|
314
|
-
# String or
|
315
|
-
# string indicates no content matching is to be performed.
|
401
|
+
# String, regex or JSON content to match. Maximum 1024 bytes. An empty
|
402
|
+
# `content` string indicates no content matching is to be performed.
|
316
403
|
# @!attribute [rw] matcher
|
317
404
|
# @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::ContentMatcherOption]
|
318
405
|
# The type of content matcher that will be applied to the server output,
|
319
406
|
# compared to the `content` string when the check is run.
|
407
|
+
# @!attribute [rw] json_path_matcher
|
408
|
+
# @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::JsonPathMatcher]
|
409
|
+
# Matcher information for `MATCHES_JSON_PATH` and `NOT_MATCHES_JSON_PATH`
|
320
410
|
class ContentMatcher
|
321
411
|
include ::Google::Protobuf::MessageExts
|
322
412
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
323
413
|
|
414
|
+
# Information needed to perform a JSONPath content match.
|
415
|
+
# Used for `ContentMatcherOption::MATCHES_JSON_PATH` and
|
416
|
+
# `ContentMatcherOption::NOT_MATCHES_JSON_PATH`.
|
417
|
+
# @!attribute [rw] json_path
|
418
|
+
# @return [::String]
|
419
|
+
# JSONPath within the response output pointing to the expected
|
420
|
+
# `ContentMatcher::content` to match against.
|
421
|
+
# @!attribute [rw] json_matcher
|
422
|
+
# @return [::Google::Cloud::Monitoring::V3::UptimeCheckConfig::ContentMatcher::JsonPathMatcher::JsonPathMatcherOption]
|
423
|
+
# The type of JSONPath match that will be applied to the JSON output
|
424
|
+
# (`ContentMatcher.content`)
|
425
|
+
class JsonPathMatcher
|
426
|
+
include ::Google::Protobuf::MessageExts
|
427
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
428
|
+
|
429
|
+
# Options to perform JSONPath content matching.
|
430
|
+
module JsonPathMatcherOption
|
431
|
+
# No JSONPath matcher type specified (not valid).
|
432
|
+
JSON_PATH_MATCHER_OPTION_UNSPECIFIED = 0
|
433
|
+
|
434
|
+
# Selects 'exact string' matching. The match succeeds if the content at
|
435
|
+
# the `json_path` within the output is exactly the same as the
|
436
|
+
# `content` string.
|
437
|
+
EXACT_MATCH = 1
|
438
|
+
|
439
|
+
# Selects regular-expression matching. The match succeeds if the
|
440
|
+
# content at the `json_path` within the output matches the regular
|
441
|
+
# expression specified in the `content` string.
|
442
|
+
REGEX_MATCH = 2
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
324
446
|
# Options to perform content matching.
|
325
447
|
module ContentMatcherOption
|
326
448
|
# No content matcher type specified (maintained for backward
|
@@ -338,7 +460,7 @@ module Google
|
|
338
460
|
# output does _NOT_ contain the `content` string.
|
339
461
|
NOT_CONTAINS_STRING = 2
|
340
462
|
|
341
|
-
# Selects regular-expression matching. The match succeeds
|
463
|
+
# Selects regular-expression matching. The match succeeds if the output
|
342
464
|
# matches the regular expression specified in the `content` string.
|
343
465
|
# Regex matching is only supported for HTTP/HTTPS checks.
|
344
466
|
MATCHES_REGEX = 3
|
@@ -348,8 +470,44 @@ module Google
|
|
348
470
|
# `content` string. Regex matching is only supported for HTTP/HTTPS
|
349
471
|
# checks.
|
350
472
|
NOT_MATCHES_REGEX = 4
|
473
|
+
|
474
|
+
# Selects JSONPath matching. See `JsonPathMatcher` for details on when
|
475
|
+
# the match succeeds. JSONPath matching is only supported for HTTP/HTTPS
|
476
|
+
# checks.
|
477
|
+
MATCHES_JSON_PATH = 5
|
478
|
+
|
479
|
+
# Selects JSONPath matching. See `JsonPathMatcher` for details on when
|
480
|
+
# the match succeeds. Succeeds when output does _NOT_ match as specified.
|
481
|
+
# JSONPath is only supported for HTTP/HTTPS checks.
|
482
|
+
NOT_MATCHES_JSON_PATH = 6
|
351
483
|
end
|
352
484
|
end
|
485
|
+
|
486
|
+
# @!attribute [rw] key
|
487
|
+
# @return [::String]
|
488
|
+
# @!attribute [rw] value
|
489
|
+
# @return [::String]
|
490
|
+
class UserLabelsEntry
|
491
|
+
include ::Google::Protobuf::MessageExts
|
492
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
493
|
+
end
|
494
|
+
|
495
|
+
# What kind of checkers are available to be used by the check.
|
496
|
+
module CheckerType
|
497
|
+
# The default checker type. Currently converted to `STATIC_IP_CHECKERS`
|
498
|
+
# on creation, the default conversion behavior may change in the future.
|
499
|
+
CHECKER_TYPE_UNSPECIFIED = 0
|
500
|
+
|
501
|
+
# `STATIC_IP_CHECKERS` are used for uptime checks that perform egress
|
502
|
+
# across the public internet. `STATIC_IP_CHECKERS` use the static IP
|
503
|
+
# addresses returned by `ListUptimeCheckIps`.
|
504
|
+
STATIC_IP_CHECKERS = 1
|
505
|
+
|
506
|
+
# `VPC_CHECKERS` are used for uptime checks that perform egress using
|
507
|
+
# Service Directory and private network access. When using `VPC_CHECKERS`,
|
508
|
+
# the monitored resource type must be `servicedirectory_service`.
|
509
|
+
VPC_CHECKERS = 3
|
510
|
+
end
|
353
511
|
end
|
354
512
|
|
355
513
|
# Contains the region, location, and list of IP
|
@@ -393,6 +551,18 @@ module Google
|
|
393
551
|
# Allows checks to run from locations within the Asia Pacific area (ex:
|
394
552
|
# Singapore).
|
395
553
|
ASIA_PACIFIC = 4
|
554
|
+
|
555
|
+
# Allows checks to run from locations within the western United States of
|
556
|
+
# America
|
557
|
+
USA_OREGON = 5
|
558
|
+
|
559
|
+
# Allows checks to run from locations within the central United States of
|
560
|
+
# America
|
561
|
+
USA_IOWA = 6
|
562
|
+
|
563
|
+
# Allows checks to run from locations within the eastern United States of
|
564
|
+
# America
|
565
|
+
USA_VIRGINIA = 7
|
396
566
|
end
|
397
567
|
|
398
568
|
# The supported resource types that can be used as values of
|
@@ -29,6 +29,13 @@ module Google
|
|
29
29
|
# Uptime check configurations are listed. The format is:
|
30
30
|
#
|
31
31
|
# projects/[PROJECT_ID_OR_NUMBER]
|
32
|
+
# @!attribute [rw] filter
|
33
|
+
# @return [::String]
|
34
|
+
# If provided, this field specifies the criteria that must be met by
|
35
|
+
# uptime checks to be included in the response.
|
36
|
+
#
|
37
|
+
# For more details, see [Filtering
|
38
|
+
# syntax](https://cloud.google.com/monitoring/api/v3/sorting-and-filtering#filter_syntax).
|
32
39
|
# @!attribute [rw] page_size
|
33
40
|
# @return [::Integer]
|
34
41
|
# The maximum number of results to return in a single response. The server
|
@@ -105,7 +112,7 @@ module Google
|
|
105
112
|
# the values for the set of fields mentioned in the `updateMask`. If an
|
106
113
|
# `updateMask` has not been given, this Uptime check configuration replaces
|
107
114
|
# the current configuration. If a field is mentioned in `updateMask` but
|
108
|
-
# the
|
115
|
+
# the corresponding field is omitted in this partial Uptime check
|
109
116
|
# configuration, it has the effect of deleting/clearing the field from the
|
110
117
|
# configuration on the server.
|
111
118
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring-v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.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: 2023-
|
11
|
+
date: 2023-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.18.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
53
|
+
version: 1.26.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -289,5 +289,5 @@ requirements: []
|
|
289
289
|
rubygems_version: 3.4.2
|
290
290
|
signing_key:
|
291
291
|
specification_version: 4
|
292
|
-
summary:
|
292
|
+
summary: Manages your Cloud Monitoring data and configurations.
|
293
293
|
test_files: []
|