google-apis-monitoring_v1 0.23.0 → 0.26.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e47e82c2fc9800aa2a14cbb7b1e67fd2e01fabc0472e5076d9884ea0a27ac3a
|
4
|
+
data.tar.gz: 9a9ed7c3f11f444e9ac705d8f3c0efb9f4984e4b43a52a955e50efda80b30e91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2e4701aa6188414b69c63891894c755273e7424e77dbed080a6dec1a67cbd7d3bade6b8d4253d551688b9cdf6cffef4db298870e08597789303132f1d093c0d
|
7
|
+
data.tar.gz: a86b15e9c04f091fecadab86f42af7cfb76a931bfd0aa1317cec70ea141d28304e51412b566abd0fa111e2733ced3dfdce2bc112e91e32642f8e9ac1faaa29cc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-monitoring_v1
|
2
2
|
|
3
|
+
### v0.26.0 (2022-07-08)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220704
|
6
|
+
* Regenerated using generator version 0.9.0
|
7
|
+
|
8
|
+
### v0.25.0 (2022-07-01)
|
9
|
+
|
10
|
+
* Regenerated using generator version 0.8.0
|
11
|
+
|
12
|
+
### v0.24.0 (2022-06-21)
|
13
|
+
|
14
|
+
* Regenerated using generator version 0.7.0
|
15
|
+
|
3
16
|
### v0.23.0 (2022-06-05)
|
4
17
|
|
5
18
|
* Regenerated using generator version 0.5.0
|
@@ -669,6 +669,41 @@ module Google
|
|
669
669
|
end
|
670
670
|
end
|
671
671
|
|
672
|
+
# ListLabelsRequest holds all parameters of the Prometheus upstream API for
|
673
|
+
# returning a list of label names.
|
674
|
+
class ListLabelsRequest
|
675
|
+
include Google::Apis::Core::Hashable
|
676
|
+
|
677
|
+
# The end time to evaluate the query for. Either floating point UNIX seconds or
|
678
|
+
# RFC3339 formatted timestamp.
|
679
|
+
# Corresponds to the JSON property `end`
|
680
|
+
# @return [String]
|
681
|
+
attr_accessor :end
|
682
|
+
|
683
|
+
# A list of matchers encoded in the Prometheus label matcher format to constrain
|
684
|
+
# the values to series that satisfy them.
|
685
|
+
# Corresponds to the JSON property `match`
|
686
|
+
# @return [String]
|
687
|
+
attr_accessor :match
|
688
|
+
|
689
|
+
# The start time to evaluate the query for. Either floating point UNIX seconds
|
690
|
+
# or RFC3339 formatted timestamp.
|
691
|
+
# Corresponds to the JSON property `start`
|
692
|
+
# @return [String]
|
693
|
+
attr_accessor :start
|
694
|
+
|
695
|
+
def initialize(**args)
|
696
|
+
update!(**args)
|
697
|
+
end
|
698
|
+
|
699
|
+
# Update properties of this object
|
700
|
+
def update!(**args)
|
701
|
+
@end = args[:end] if args.key?(:end)
|
702
|
+
@match = args[:match] if args.key?(:match)
|
703
|
+
@start = args[:start] if args.key?(:start)
|
704
|
+
end
|
705
|
+
end
|
706
|
+
|
672
707
|
# Response for the ListMetricsScopesByMonitoredProject method.
|
673
708
|
class ListMetricsScopesByMonitoredProjectResponse
|
674
709
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MonitoringV1
|
18
18
|
# Version of the google-apis-monitoring_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.26.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220704"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -124,6 +124,12 @@ module Google
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
+
class ListLabelsRequest
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
127
133
|
class ListMetricsScopesByMonitoredProjectResponse
|
128
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
135
|
|
@@ -485,6 +491,15 @@ module Google
|
|
485
491
|
end
|
486
492
|
end
|
487
493
|
|
494
|
+
class ListLabelsRequest
|
495
|
+
# @private
|
496
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
497
|
+
property :end, as: 'end'
|
498
|
+
property :match, as: 'match'
|
499
|
+
property :start, as: 'start'
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
488
503
|
class ListMetricsScopesByMonitoredProjectResponse
|
489
504
|
# @private
|
490
505
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -408,6 +408,45 @@ module Google
|
|
408
408
|
execute_or_queue_command(command, &block)
|
409
409
|
end
|
410
410
|
|
411
|
+
# Lists labels for metrics.
|
412
|
+
# @param [String] name
|
413
|
+
# The workspace on which to execute the request. It is not part of the open
|
414
|
+
# source API but used as a request path prefix to distinguish different virtual
|
415
|
+
# Prometheus instances of Google Prometheus Engine. The format is: projects/
|
416
|
+
# PROJECT_ID_OR_NUMBER.
|
417
|
+
# @param [String] location
|
418
|
+
# Location of the resource information. Has to be "global" now.
|
419
|
+
# @param [Google::Apis::MonitoringV1::ListLabelsRequest] list_labels_request_object
|
420
|
+
# @param [String] fields
|
421
|
+
# Selector specifying which fields to include in a partial response.
|
422
|
+
# @param [String] quota_user
|
423
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
424
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
425
|
+
# @param [Google::Apis::RequestOptions] options
|
426
|
+
# Request-specific options
|
427
|
+
#
|
428
|
+
# @yield [result, err] Result & error if block supplied
|
429
|
+
# @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
|
430
|
+
# @yieldparam err [StandardError] error object if request failed
|
431
|
+
#
|
432
|
+
# @return [Google::Apis::MonitoringV1::HttpBody]
|
433
|
+
#
|
434
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
435
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
436
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
437
|
+
def labels_project_location_prometheu_api_v1(name, location, list_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
438
|
+
command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/labels', options)
|
439
|
+
command.request_representation = Google::Apis::MonitoringV1::ListLabelsRequest::Representation
|
440
|
+
command.request_object = list_labels_request_object
|
441
|
+
command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
|
442
|
+
command.response_class = Google::Apis::MonitoringV1::HttpBody
|
443
|
+
command.params['name'] = name unless name.nil?
|
444
|
+
command.params['location'] = location unless location.nil?
|
445
|
+
command.query['fields'] = fields unless fields.nil?
|
446
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
447
|
+
execute_or_queue_command(command, &block)
|
448
|
+
end
|
449
|
+
|
411
450
|
# Evaluate a PromQL query at a single point in time.
|
412
451
|
# @param [String] name
|
413
452
|
# The project on which to execute the request. Data associcated with the project'
|
@@ -576,6 +615,54 @@ module Google
|
|
576
615
|
execute_or_queue_command(command, &block)
|
577
616
|
end
|
578
617
|
|
618
|
+
# Lists labels for metrics.
|
619
|
+
# @param [String] name
|
620
|
+
# The workspace on which to execute the request. It is not part of the open
|
621
|
+
# source API but used as a request path prefix to distinguish different virtual
|
622
|
+
# Prometheus instances of Google Prometheus Engine. The format is: projects/
|
623
|
+
# PROJECT_ID_OR_NUMBER.
|
624
|
+
# @param [String] location
|
625
|
+
# Location of the resource information. Has to be "global" now.
|
626
|
+
# @param [String] end_
|
627
|
+
# The end time to evaluate the query for. Either floating point UNIX seconds or
|
628
|
+
# RFC3339 formatted timestamp.
|
629
|
+
# @param [String] match
|
630
|
+
# A list of matchers encoded in the Prometheus label matcher format to constrain
|
631
|
+
# the values to series that satisfy them.
|
632
|
+
# @param [String] start
|
633
|
+
# The start time to evaluate the query for. Either floating point UNIX seconds
|
634
|
+
# or RFC3339 formatted timestamp.
|
635
|
+
# @param [String] fields
|
636
|
+
# Selector specifying which fields to include in a partial response.
|
637
|
+
# @param [String] quota_user
|
638
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
639
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
640
|
+
# @param [Google::Apis::RequestOptions] options
|
641
|
+
# Request-specific options
|
642
|
+
#
|
643
|
+
# @yield [result, err] Result & error if block supplied
|
644
|
+
# @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
|
645
|
+
# @yieldparam err [StandardError] error object if request failed
|
646
|
+
#
|
647
|
+
# @return [Google::Apis::MonitoringV1::HttpBody]
|
648
|
+
#
|
649
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
650
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
651
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
652
|
+
def list_project_location_prometheu_api_v1_labels(name, location, end_: nil, match: nil, start: nil, fields: nil, quota_user: nil, options: nil, &block)
|
653
|
+
command = make_simple_command(:get, 'v1/{+name}/location/{location}/prometheus/api/v1/labels', options)
|
654
|
+
command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
|
655
|
+
command.response_class = Google::Apis::MonitoringV1::HttpBody
|
656
|
+
command.params['name'] = name unless name.nil?
|
657
|
+
command.params['location'] = location unless location.nil?
|
658
|
+
command.query['end'] = end_ unless end_.nil?
|
659
|
+
command.query['match'] = match unless match.nil?
|
660
|
+
command.query['start'] = start unless start.nil?
|
661
|
+
command.query['fields'] = fields unless fields.nil?
|
662
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
663
|
+
execute_or_queue_command(command, &block)
|
664
|
+
end
|
665
|
+
|
579
666
|
# Lists metadata for metrics.
|
580
667
|
# @param [String] name
|
581
668
|
# Required. The workspace on which to execute the request. It is not part of the
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-monitoring_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.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: 2022-
|
11
|
+
date: 2022-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
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.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.26.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|