google-apis-monitoring_v1 0.32.0 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa590054ea3f3a33ba9959a499a537f78b56e27b3a85d53a7482a81b0b9719d2
|
4
|
+
data.tar.gz: 30d708eb623494a6d51ad9a4c871d8c6eeac31caf7bfbc7369ccaebbf3dd4c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7bc8c681c646da20f7f67727815ff57cd6696d5c11e63740cbd521e0cc63c793f0ce6b3b0d1f55468996f96ac11b288b6f79aecf4998dbb30168c2908fb4c58
|
7
|
+
data.tar.gz: 89f330bb08f69afec9118452fb3547722613707477ddfbaccc4092d9d7e59c2833899292be03cc7ace3f1f8a6a257e68b29a35f1f740635e0aca46ebadb03574
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-monitoring_v1
|
2
2
|
|
3
|
+
### v0.33.0 (2023-02-05)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230130
|
6
|
+
* Regenerated using generator version 0.11.1
|
7
|
+
|
3
8
|
### v0.32.0 (2022-11-15)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20221107
|
@@ -1041,6 +1041,41 @@ module Google
|
|
1041
1041
|
end
|
1042
1042
|
end
|
1043
1043
|
|
1044
|
+
# QueryExemplarsRequest holds all parameters of the Prometheus upstream API for
|
1045
|
+
# querying exemplars.
|
1046
|
+
class QueryExemplarsRequest
|
1047
|
+
include Google::Apis::Core::Hashable
|
1048
|
+
|
1049
|
+
# The end time to evaluate the query for. Either floating point UNIX seconds or
|
1050
|
+
# RFC3339 formatted timestamp.
|
1051
|
+
# Corresponds to the JSON property `end`
|
1052
|
+
# @return [String]
|
1053
|
+
attr_accessor :end
|
1054
|
+
|
1055
|
+
# A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/
|
1056
|
+
# prometheus/latest/querying/basics/.
|
1057
|
+
# Corresponds to the JSON property `query`
|
1058
|
+
# @return [String]
|
1059
|
+
attr_accessor :query
|
1060
|
+
|
1061
|
+
# The start time to evaluate the query for. Either floating point UNIX seconds
|
1062
|
+
# or RFC3339 formatted timestamp.
|
1063
|
+
# Corresponds to the JSON property `start`
|
1064
|
+
# @return [String]
|
1065
|
+
attr_accessor :start
|
1066
|
+
|
1067
|
+
def initialize(**args)
|
1068
|
+
update!(**args)
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
# Update properties of this object
|
1072
|
+
def update!(**args)
|
1073
|
+
@end = args[:end] if args.key?(:end)
|
1074
|
+
@query = args[:query] if args.key?(:query)
|
1075
|
+
@start = args[:start] if args.key?(:start)
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
1044
1079
|
# QueryInstantRequest holds all parameters of the Prometheus upstream instant
|
1045
1080
|
# query API plus GCM specific parameters.
|
1046
1081
|
class QueryInstantRequest
|
@@ -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.33.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.11.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230130"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -190,6 +190,12 @@ module Google
|
|
190
190
|
include Google::Apis::Core::JsonObjectSupport
|
191
191
|
end
|
192
192
|
|
193
|
+
class QueryExemplarsRequest
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
193
199
|
class QueryInstantRequest
|
194
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
201
|
|
@@ -596,6 +602,15 @@ module Google
|
|
596
602
|
end
|
597
603
|
end
|
598
604
|
|
605
|
+
class QueryExemplarsRequest
|
606
|
+
# @private
|
607
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
608
|
+
property :end, as: 'end'
|
609
|
+
property :query, as: 'query'
|
610
|
+
property :start, as: 'start'
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
599
614
|
class QueryInstantRequest
|
600
615
|
# @private
|
601
616
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -486,6 +486,45 @@ module Google
|
|
486
486
|
execute_or_queue_command(command, &block)
|
487
487
|
end
|
488
488
|
|
489
|
+
# Lists exemplars relevant to a given PromQL query,
|
490
|
+
# @param [String] name
|
491
|
+
# The project on which to execute the request. Data associcated with the project'
|
492
|
+
# s workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER.
|
493
|
+
# Open source API but used as a request path prefix to distinguish different
|
494
|
+
# virtual Prometheus instances of Google Prometheus Engine.
|
495
|
+
# @param [String] location
|
496
|
+
# Location of the resource information. Has to be "global" now.
|
497
|
+
# @param [Google::Apis::MonitoringV1::QueryExemplarsRequest] query_exemplars_request_object
|
498
|
+
# @param [String] fields
|
499
|
+
# Selector specifying which fields to include in a partial response.
|
500
|
+
# @param [String] quota_user
|
501
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
502
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
503
|
+
# @param [Google::Apis::RequestOptions] options
|
504
|
+
# Request-specific options
|
505
|
+
#
|
506
|
+
# @yield [result, err] Result & error if block supplied
|
507
|
+
# @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
|
508
|
+
# @yieldparam err [StandardError] error object if request failed
|
509
|
+
#
|
510
|
+
# @return [Google::Apis::MonitoringV1::HttpBody]
|
511
|
+
#
|
512
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
513
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
514
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
515
|
+
def query_v1_exemplars(name, location, query_exemplars_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
516
|
+
command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/query_exemplars', options)
|
517
|
+
command.request_representation = Google::Apis::MonitoringV1::QueryExemplarsRequest::Representation
|
518
|
+
command.request_object = query_exemplars_request_object
|
519
|
+
command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
|
520
|
+
command.response_class = Google::Apis::MonitoringV1::HttpBody
|
521
|
+
command.params['name'] = name unless name.nil?
|
522
|
+
command.params['location'] = location unless location.nil?
|
523
|
+
command.query['fields'] = fields unless fields.nil?
|
524
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
525
|
+
execute_or_queue_command(command, &block)
|
526
|
+
end
|
527
|
+
|
489
528
|
# Evaluate a PromQL query with start, end time range.
|
490
529
|
# @param [String] name
|
491
530
|
# The project on which to execute the request. Data associcated with the project'
|
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.33.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:
|
11
|
+
date: 2023-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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.33.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Monitoring API V1
|