google-cloud-monitoring-v3 0.10.0 → 0.12.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/alert_pb.rb +29 -81
- data/lib/google/monitoring/v3/alert_service_pb.rb +26 -27
- data/lib/google/monitoring/v3/common_pb.rb +27 -71
- data/lib/google/monitoring/v3/dropped_labels_pb.rb +24 -4
- data/lib/google/monitoring/v3/group_pb.rb +24 -8
- data/lib/google/monitoring/v3/group_service_pb.rb +27 -43
- data/lib/google/monitoring/v3/metric_pb.rb +28 -54
- data/lib/google/monitoring/v3/metric_service_pb.rb +29 -88
- data/lib/google/monitoring/v3/mutation_record_pb.rb +25 -5
- data/lib/google/monitoring/v3/notification_pb.rb +27 -27
- data/lib/google/monitoring/v3/notification_service_pb.rb +27 -55
- data/lib/google/monitoring/v3/query_service_pb.rb +25 -2
- data/lib/google/monitoring/v3/service_pb.rb +25 -118
- data/lib/google/monitoring/v3/service_service_pb.rb +26 -53
- data/lib/google/monitoring/v3/snooze_pb.rb +25 -10
- data/lib/google/monitoring/v3/snooze_service_pb.rb +26 -22
- data/lib/google/monitoring/v3/span_context_pb.rb +24 -4
- data/lib/google/monitoring/v3/uptime_pb.rb +33 -92
- data/lib/google/monitoring/v3/uptime_service_pb.rb +26 -33
- 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
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +7 -7
@@ -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
|
#
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -87,7 +87,7 @@ module Google
|
|
87
87
|
# `NullValue` is a singleton enumeration to represent the null value for the
|
88
88
|
# `Value` type union.
|
89
89
|
#
|
90
|
-
#
|
90
|
+
# The JSON representation for `NullValue` is JSON `null`.
|
91
91
|
module NullValue
|
92
92
|
# Null value.
|
93
93
|
NULL_VALUE = 0
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
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.12.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-31 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.19.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.19.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: []
|