google-apis-monitoring_v1 0.13.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/monitoring_v1/classes.rb +210 -0
- data/lib/google/apis/monitoring_v1/gem_version.rb +2 -2
- data/lib/google/apis/monitoring_v1/representations.rb +78 -0
- data/lib/google/apis/monitoring_v1/service.rb +212 -6
- data/lib/google/apis/monitoring_v1.rb +1 -6
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6be56f332503d860ae91d17b876ea85240fd89a51cb38d1cc06a6bff48c88193
|
4
|
+
data.tar.gz: 7f106e97ce0ffa9c39847ef75efbe509862bd3641775f1a55a9f3998904f354f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 948280af2ba9125236b8a8c3f764b88798c0ae42d022157c8c5e2749d71df182482a7d2b82e98af214f8aa9a9a3739a271ef1f823a168efe4f82c6d2e8d35709
|
7
|
+
data.tar.gz: c66cc57b8fe4f08022c80375cdffd35d755b341a3b5e825a52fd39bcc6e9c1e767361a9b00d1f209cc11ec59099c05c5c1a3592ec4daebcefbc0e577f89b8306
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-monitoring_v1
|
2
2
|
|
3
|
+
### v0.17.0 (2021-11-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211108
|
6
|
+
|
7
|
+
### v0.16.0 (2021-11-05)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211031
|
10
|
+
|
11
|
+
### v0.15.0 (2021-10-29)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211026
|
14
|
+
|
15
|
+
### v0.14.0 (2021-10-22)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211017
|
18
|
+
* Unspecified changes
|
19
|
+
|
3
20
|
### v0.13.0 (2021-09-24)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210922
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Monitoring service in particular.)
|
67
67
|
|
@@ -260,6 +260,11 @@ module Google
|
|
260
260
|
# @return [Google::Apis::MonitoringV1::GridLayout]
|
261
261
|
attr_accessor :grid_layout
|
262
262
|
|
263
|
+
# Labels applied to the dashboard
|
264
|
+
# Corresponds to the JSON property `labels`
|
265
|
+
# @return [Hash<String,String>]
|
266
|
+
attr_accessor :labels
|
267
|
+
|
263
268
|
# A mosaic layout divides the available space into a grid of blocks, and
|
264
269
|
# overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid
|
265
270
|
# blocks and can be placed at arbitrary locations in the grid.
|
@@ -288,6 +293,7 @@ module Google
|
|
288
293
|
@display_name = args[:display_name] if args.key?(:display_name)
|
289
294
|
@etag = args[:etag] if args.key?(:etag)
|
290
295
|
@grid_layout = args[:grid_layout] if args.key?(:grid_layout)
|
296
|
+
@labels = args[:labels] if args.key?(:labels)
|
291
297
|
@mosaic_layout = args[:mosaic_layout] if args.key?(:mosaic_layout)
|
292
298
|
@name = args[:name] if args.key?(:name)
|
293
299
|
@row_layout = args[:row_layout] if args.key?(:row_layout)
|
@@ -523,6 +529,54 @@ module Google
|
|
523
529
|
end
|
524
530
|
end
|
525
531
|
|
532
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
533
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
534
|
+
# HTML page.This message can be used both in streaming and non-streaming API
|
535
|
+
# methods in the request as well as the response.It can be used as a top-level
|
536
|
+
# request field, which is convenient if one wants to extract parameters from
|
537
|
+
# either the URL or HTTP template into the request fields and also want access
|
538
|
+
# to the raw HTTP body.Example: message GetResourceRequest ` // A unique request
|
539
|
+
# id. string request_id = 1; // The raw HTTP body is bound to this field. google.
|
540
|
+
# api.HttpBody http_body = 2; ` service ResourceService ` rpc GetResource(
|
541
|
+
# GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.
|
542
|
+
# api.HttpBody) returns (google.protobuf.Empty); ` Example with streaming
|
543
|
+
# methods: service CaldavService ` rpc GetCalendar(stream google.api.HttpBody)
|
544
|
+
# returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.
|
545
|
+
# HttpBody) returns (stream google.api.HttpBody); ` Use of this type only
|
546
|
+
# changes how the request and response bodies are handled, all other features
|
547
|
+
# will continue to work unchanged.
|
548
|
+
class HttpBody
|
549
|
+
include Google::Apis::Core::Hashable
|
550
|
+
|
551
|
+
# The HTTP Content-Type header value specifying the content type of the body.
|
552
|
+
# Corresponds to the JSON property `contentType`
|
553
|
+
# @return [String]
|
554
|
+
attr_accessor :content_type
|
555
|
+
|
556
|
+
# The HTTP request/response body as raw binary.
|
557
|
+
# Corresponds to the JSON property `data`
|
558
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
559
|
+
# @return [String]
|
560
|
+
attr_accessor :data
|
561
|
+
|
562
|
+
# Application specific response metadata. Must be set in the first response for
|
563
|
+
# streaming APIs.
|
564
|
+
# Corresponds to the JSON property `extensions`
|
565
|
+
# @return [Array<Hash<String,Object>>]
|
566
|
+
attr_accessor :extensions
|
567
|
+
|
568
|
+
def initialize(**args)
|
569
|
+
update!(**args)
|
570
|
+
end
|
571
|
+
|
572
|
+
# Update properties of this object
|
573
|
+
def update!(**args)
|
574
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
575
|
+
@data = args[:data] if args.key?(:data)
|
576
|
+
@extensions = args[:extensions] if args.key?(:extensions)
|
577
|
+
end
|
578
|
+
end
|
579
|
+
|
526
580
|
# The ListDashboards request.
|
527
581
|
class ListDashboardsResponse
|
528
582
|
include Google::Apis::Core::Hashable
|
@@ -570,6 +624,35 @@ module Google
|
|
570
624
|
end
|
571
625
|
end
|
572
626
|
|
627
|
+
# A widget that displays a stream of log.
|
628
|
+
class LogsPanel
|
629
|
+
include Google::Apis::Core::Hashable
|
630
|
+
|
631
|
+
# A filter that chooses which log entries to return. See Advanced Logs Queries (
|
632
|
+
# https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries
|
633
|
+
# that match the filter are returned. An empty filter matches all log entries.
|
634
|
+
# Corresponds to the JSON property `filter`
|
635
|
+
# @return [String]
|
636
|
+
attr_accessor :filter
|
637
|
+
|
638
|
+
# The names of logging resources to collect logs for. Does not implicitly
|
639
|
+
# include the current host project. Currently only projects are supported. There
|
640
|
+
# must be at least one resource_name.
|
641
|
+
# Corresponds to the JSON property `resourceNames`
|
642
|
+
# @return [Array<String>]
|
643
|
+
attr_accessor :resource_names
|
644
|
+
|
645
|
+
def initialize(**args)
|
646
|
+
update!(**args)
|
647
|
+
end
|
648
|
+
|
649
|
+
# Update properties of this object
|
650
|
+
def update!(**args)
|
651
|
+
@filter = args[:filter] if args.key?(:filter)
|
652
|
+
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
573
656
|
# Represents a Metrics Scope (https://cloud.google.com/monitoring/settings#
|
574
657
|
# concept-scope) in Cloud Monitoring, which specifies one or more Google
|
575
658
|
# projects and zero or more AWS accounts to monitor together.
|
@@ -833,6 +916,127 @@ module Google
|
|
833
916
|
end
|
834
917
|
end
|
835
918
|
|
919
|
+
# QueryInstantRequest holds all parameters of the Prometheus upstream instant
|
920
|
+
# query API plus GCM specific parameters.
|
921
|
+
class QueryInstantRequest
|
922
|
+
include Google::Apis::Core::Hashable
|
923
|
+
|
924
|
+
# A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/
|
925
|
+
# prometheus/latest/querying/basics/.
|
926
|
+
# Corresponds to the JSON property `query`
|
927
|
+
# @return [String]
|
928
|
+
attr_accessor :query
|
929
|
+
|
930
|
+
# The single point in time to evaluate the query for. Either floating point UNIX
|
931
|
+
# seconds or RFC3339 formatted timestamp.
|
932
|
+
# Corresponds to the JSON property `time`
|
933
|
+
# @return [String]
|
934
|
+
attr_accessor :time
|
935
|
+
|
936
|
+
# An upper bound timeout for the query. Either a Prometheus duration string (
|
937
|
+
# https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations)
|
938
|
+
# or floating point seconds. This non-standard encoding must be used for
|
939
|
+
# compatibility with the open source API. Clients may still implement timeouts
|
940
|
+
# at the connection level while ignoring this field.
|
941
|
+
# Corresponds to the JSON property `timeout`
|
942
|
+
# @return [String]
|
943
|
+
attr_accessor :timeout
|
944
|
+
|
945
|
+
def initialize(**args)
|
946
|
+
update!(**args)
|
947
|
+
end
|
948
|
+
|
949
|
+
# Update properties of this object
|
950
|
+
def update!(**args)
|
951
|
+
@query = args[:query] if args.key?(:query)
|
952
|
+
@time = args[:time] if args.key?(:time)
|
953
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
954
|
+
end
|
955
|
+
end
|
956
|
+
|
957
|
+
# QueryRangeRequest holds all parameters of the Prometheus upstream range query
|
958
|
+
# API plus GCM specific parameters.
|
959
|
+
class QueryRangeRequest
|
960
|
+
include Google::Apis::Core::Hashable
|
961
|
+
|
962
|
+
# The end time to evaluate the query for. Either floating point UNIX seconds or
|
963
|
+
# RFC3339 formatted timestamp.
|
964
|
+
# Corresponds to the JSON property `end`
|
965
|
+
# @return [String]
|
966
|
+
attr_accessor :end
|
967
|
+
|
968
|
+
# A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/
|
969
|
+
# prometheus/latest/querying/basics/.
|
970
|
+
# Corresponds to the JSON property `query`
|
971
|
+
# @return [String]
|
972
|
+
attr_accessor :query
|
973
|
+
|
974
|
+
# The start time to evaluate the query for. Either floating point UNIX seconds
|
975
|
+
# or RFC3339 formatted timestamp.
|
976
|
+
# Corresponds to the JSON property `start`
|
977
|
+
# @return [String]
|
978
|
+
attr_accessor :start
|
979
|
+
|
980
|
+
# The resolution of query result. Either a Prometheus duration string (https://
|
981
|
+
# prometheus.io/docs/prometheus/latest/querying/basics/#time-durations) or
|
982
|
+
# floating point seconds. This non-standard encoding must be used for
|
983
|
+
# compatibility with the open source API. Clients may still implement timeouts
|
984
|
+
# at the connection level while ignoring this field.
|
985
|
+
# Corresponds to the JSON property `step`
|
986
|
+
# @return [String]
|
987
|
+
attr_accessor :step
|
988
|
+
|
989
|
+
# An upper bound timeout for the query. Either a Prometheus duration string (
|
990
|
+
# https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations)
|
991
|
+
# or floating point seconds. This non-standard encoding must be used for
|
992
|
+
# compatibility with the open source API. Clients may still implement timeouts
|
993
|
+
# at the connection level while ignoring this field.
|
994
|
+
# Corresponds to the JSON property `timeout`
|
995
|
+
# @return [String]
|
996
|
+
attr_accessor :timeout
|
997
|
+
|
998
|
+
def initialize(**args)
|
999
|
+
update!(**args)
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
# Update properties of this object
|
1003
|
+
def update!(**args)
|
1004
|
+
@end = args[:end] if args.key?(:end)
|
1005
|
+
@query = args[:query] if args.key?(:query)
|
1006
|
+
@start = args[:start] if args.key?(:start)
|
1007
|
+
@step = args[:step] if args.key?(:step)
|
1008
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
1009
|
+
end
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
# QuerySeries holds all parameters of the Prometheus upstream API for querying
|
1013
|
+
# series.
|
1014
|
+
class QuerySeriesRequest
|
1015
|
+
include Google::Apis::Core::Hashable
|
1016
|
+
|
1017
|
+
# The end time to evaluate the query for. Either floating point UNIX seconds or
|
1018
|
+
# RFC3339 formatted timestamp.
|
1019
|
+
# Corresponds to the JSON property `end`
|
1020
|
+
# @return [String]
|
1021
|
+
attr_accessor :end
|
1022
|
+
|
1023
|
+
# The start time to evaluate the query for. Either floating point UNIX seconds
|
1024
|
+
# or RFC3339 formatted timestamp.
|
1025
|
+
# Corresponds to the JSON property `start`
|
1026
|
+
# @return [String]
|
1027
|
+
attr_accessor :start
|
1028
|
+
|
1029
|
+
def initialize(**args)
|
1030
|
+
update!(**args)
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
# Update properties of this object
|
1034
|
+
def update!(**args)
|
1035
|
+
@end = args[:end] if args.key?(:end)
|
1036
|
+
@start = args[:start] if args.key?(:start)
|
1037
|
+
end
|
1038
|
+
end
|
1039
|
+
|
836
1040
|
# Describes a query to build the numerator or denominator of a
|
837
1041
|
# TimeSeriesFilterRatio.
|
838
1042
|
class RatioPart
|
@@ -1616,6 +1820,11 @@ module Google
|
|
1616
1820
|
# @return [Google::Apis::MonitoringV1::Empty]
|
1617
1821
|
attr_accessor :blank
|
1618
1822
|
|
1823
|
+
# A widget that displays a stream of log.
|
1824
|
+
# Corresponds to the JSON property `logsPanel`
|
1825
|
+
# @return [Google::Apis::MonitoringV1::LogsPanel]
|
1826
|
+
attr_accessor :logs_panel
|
1827
|
+
|
1619
1828
|
# A widget showing the latest value of a metric, and how this value relates to
|
1620
1829
|
# one or more thresholds.
|
1621
1830
|
# Corresponds to the JSON property `scorecard`
|
@@ -1650,6 +1859,7 @@ module Google
|
|
1650
1859
|
def update!(**args)
|
1651
1860
|
@alert_chart = args[:alert_chart] if args.key?(:alert_chart)
|
1652
1861
|
@blank = args[:blank] if args.key?(:blank)
|
1862
|
+
@logs_panel = args[:logs_panel] if args.key?(:logs_panel)
|
1653
1863
|
@scorecard = args[:scorecard] if args.key?(:scorecard)
|
1654
1864
|
@text = args[:text] if args.key?(:text)
|
1655
1865
|
@time_series_table = args[:time_series_table] if args.key?(:time_series_table)
|
@@ -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.17.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211108"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class HttpBody
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class ListDashboardsResponse
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -112,6 +118,12 @@ module Google
|
|
112
118
|
include Google::Apis::Core::JsonObjectSupport
|
113
119
|
end
|
114
120
|
|
121
|
+
class LogsPanel
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
115
127
|
class MetricsScope
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -154,6 +166,24 @@ module Google
|
|
154
166
|
include Google::Apis::Core::JsonObjectSupport
|
155
167
|
end
|
156
168
|
|
169
|
+
class QueryInstantRequest
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class QueryRangeRequest
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class QuerySeriesRequest
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
157
187
|
class RatioPart
|
158
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
189
|
|
@@ -338,6 +368,7 @@ module Google
|
|
338
368
|
property :etag, as: 'etag'
|
339
369
|
property :grid_layout, as: 'gridLayout', class: Google::Apis::MonitoringV1::GridLayout, decorator: Google::Apis::MonitoringV1::GridLayout::Representation
|
340
370
|
|
371
|
+
hash :labels, as: 'labels'
|
341
372
|
property :mosaic_layout, as: 'mosaicLayout', class: Google::Apis::MonitoringV1::MosaicLayout, decorator: Google::Apis::MonitoringV1::MosaicLayout::Representation
|
342
373
|
|
343
374
|
property :name, as: 'name'
|
@@ -405,6 +436,15 @@ module Google
|
|
405
436
|
end
|
406
437
|
end
|
407
438
|
|
439
|
+
class HttpBody
|
440
|
+
# @private
|
441
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
442
|
+
property :content_type, as: 'contentType'
|
443
|
+
property :data, :base64 => true, as: 'data'
|
444
|
+
collection :extensions, as: 'extensions'
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
408
448
|
class ListDashboardsResponse
|
409
449
|
# @private
|
410
450
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -422,6 +462,14 @@ module Google
|
|
422
462
|
end
|
423
463
|
end
|
424
464
|
|
465
|
+
class LogsPanel
|
466
|
+
# @private
|
467
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
468
|
+
property :filter, as: 'filter'
|
469
|
+
collection :resource_names, as: 'resourceNames'
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
425
473
|
class MetricsScope
|
426
474
|
# @private
|
427
475
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -488,6 +536,34 @@ module Google
|
|
488
536
|
end
|
489
537
|
end
|
490
538
|
|
539
|
+
class QueryInstantRequest
|
540
|
+
# @private
|
541
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
542
|
+
property :query, as: 'query'
|
543
|
+
property :time, as: 'time'
|
544
|
+
property :timeout, as: 'timeout'
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
548
|
+
class QueryRangeRequest
|
549
|
+
# @private
|
550
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
551
|
+
property :end, as: 'end'
|
552
|
+
property :query, as: 'query'
|
553
|
+
property :start, as: 'start'
|
554
|
+
property :step, as: 'step'
|
555
|
+
property :timeout, as: 'timeout'
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
559
|
+
class QuerySeriesRequest
|
560
|
+
# @private
|
561
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
562
|
+
property :end, as: 'end'
|
563
|
+
property :start, as: 'start'
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
491
567
|
class RatioPart
|
492
568
|
# @private
|
493
569
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -690,6 +766,8 @@ module Google
|
|
690
766
|
|
691
767
|
property :blank, as: 'blank', class: Google::Apis::MonitoringV1::Empty, decorator: Google::Apis::MonitoringV1::Empty::Representation
|
692
768
|
|
769
|
+
property :logs_panel, as: 'logsPanel', class: Google::Apis::MonitoringV1::LogsPanel, decorator: Google::Apis::MonitoringV1::LogsPanel::Representation
|
770
|
+
|
693
771
|
property :scorecard, as: 'scorecard', class: Google::Apis::MonitoringV1::Scorecard, decorator: Google::Apis::MonitoringV1::Scorecard::Representation
|
694
772
|
|
695
773
|
property :text, as: 'text', class: Google::Apis::MonitoringV1::Text, decorator: Google::Apis::MonitoringV1::Text::Representation
|
@@ -22,12 +22,7 @@ module Google
|
|
22
22
|
module MonitoringV1
|
23
23
|
# Cloud Monitoring API
|
24
24
|
#
|
25
|
-
# Manages your Cloud Monitoring data and configurations.
|
26
|
-
# associated with a Workspace, with a few exceptions as noted on the individual
|
27
|
-
# method pages. The table entries below are presented in alphabetical order, not
|
28
|
-
# in order of common use. For explanations of the concepts found in the table
|
29
|
-
# entries, read the Cloud Monitoring documentation (https://cloud.google.com/
|
30
|
-
# monitoring/docs).
|
25
|
+
# Manages your Cloud Monitoring data and configurations.
|
31
26
|
#
|
32
27
|
# @example
|
33
28
|
# require 'google/apis/monitoring_v1'
|
@@ -412,6 +407,217 @@ module Google
|
|
412
407
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
413
408
|
execute_or_queue_command(command, &block)
|
414
409
|
end
|
410
|
+
|
411
|
+
# Evaluate a PromQL query at a single point in time.
|
412
|
+
# @param [String] name
|
413
|
+
# The project on which to execute the request. Data associcated with the project'
|
414
|
+
# s workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER.
|
415
|
+
# Open source API but used as a request path prefix to distinguish different
|
416
|
+
# virtual Prometheus instances of Google Prometheus Engine.
|
417
|
+
# @param [String] location
|
418
|
+
# Location of the resource information. Has to be "global" now.
|
419
|
+
# @param [Google::Apis::MonitoringV1::QueryInstantRequest] query_instant_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 query_v1_instant(name, location, query_instant_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
438
|
+
command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/query', options)
|
439
|
+
command.request_representation = Google::Apis::MonitoringV1::QueryInstantRequest::Representation
|
440
|
+
command.request_object = query_instant_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
|
+
|
450
|
+
# Evaluate a PromQL query with start, end time range.
|
451
|
+
# @param [String] name
|
452
|
+
# The project on which to execute the request. Data associcated with the project'
|
453
|
+
# s workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER.
|
454
|
+
# Open source API but used as a request path prefix to distinguish different
|
455
|
+
# virtual Prometheus instances of Google Prometheus Engine.
|
456
|
+
# @param [String] location
|
457
|
+
# Location of the resource information. Has to be "global" now.
|
458
|
+
# @param [Google::Apis::MonitoringV1::QueryRangeRequest] query_range_request_object
|
459
|
+
# @param [String] fields
|
460
|
+
# Selector specifying which fields to include in a partial response.
|
461
|
+
# @param [String] quota_user
|
462
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
463
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
464
|
+
# @param [Google::Apis::RequestOptions] options
|
465
|
+
# Request-specific options
|
466
|
+
#
|
467
|
+
# @yield [result, err] Result & error if block supplied
|
468
|
+
# @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
|
469
|
+
# @yieldparam err [StandardError] error object if request failed
|
470
|
+
#
|
471
|
+
# @return [Google::Apis::MonitoringV1::HttpBody]
|
472
|
+
#
|
473
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
474
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
475
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
476
|
+
def query_v1_range(name, location, query_range_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
477
|
+
command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/query_range', options)
|
478
|
+
command.request_representation = Google::Apis::MonitoringV1::QueryRangeRequest::Representation
|
479
|
+
command.request_object = query_range_request_object
|
480
|
+
command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
|
481
|
+
command.response_class = Google::Apis::MonitoringV1::HttpBody
|
482
|
+
command.params['name'] = name unless name.nil?
|
483
|
+
command.params['location'] = location unless location.nil?
|
484
|
+
command.query['fields'] = fields unless fields.nil?
|
485
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
486
|
+
execute_or_queue_command(command, &block)
|
487
|
+
end
|
488
|
+
|
489
|
+
# Lists metadata for metrics.
|
490
|
+
# @param [String] name
|
491
|
+
# Required. The workspace on which to execute the request. It is not part of the
|
492
|
+
# open source API but used as a request path prefix to distinguish different
|
493
|
+
# virtual Prometheus instances of Google Prometheus Engine. The format is:
|
494
|
+
# projects/PROJECT_ID_OR_NUMBER.
|
495
|
+
# @param [String] location
|
496
|
+
# Location of the resource information. Has to be "global" for now.
|
497
|
+
# @param [Google::Apis::MonitoringV1::QuerySeriesRequest] query_series_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 series_project_location_prometheu_api_v1(name, location, query_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
516
|
+
command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/series', options)
|
517
|
+
command.request_representation = Google::Apis::MonitoringV1::QuerySeriesRequest::Representation
|
518
|
+
command.request_object = query_series_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
|
+
|
528
|
+
# Lists possible values for a given label name.
|
529
|
+
# @param [String] name
|
530
|
+
# The workspace on which to execute the request. It is not part of the open
|
531
|
+
# source API but used as a request path prefix to distinguish different virtual
|
532
|
+
# Prometheus instances of Google Prometheus Engine. The format is: projects/
|
533
|
+
# PROJECT_ID_OR_NUMBER.
|
534
|
+
# @param [String] location
|
535
|
+
# Location of the resource information. Has to be "global" now.
|
536
|
+
# @param [String] label
|
537
|
+
# The label name for which values are queried.
|
538
|
+
# @param [String] end_
|
539
|
+
# The end time to evaluate the query for. Either floating point UNIX seconds or
|
540
|
+
# RFC3339 formatted timestamp.
|
541
|
+
# @param [String] match
|
542
|
+
# A list of matchers encoded in the Prometheus label matcher format to constrain
|
543
|
+
# the values to series that satisfy them.
|
544
|
+
# @param [String] start
|
545
|
+
# The start time to evaluate the query for. Either floating point UNIX seconds
|
546
|
+
# or RFC3339 formatted timestamp.
|
547
|
+
# @param [String] fields
|
548
|
+
# Selector specifying which fields to include in a partial response.
|
549
|
+
# @param [String] quota_user
|
550
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
551
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
552
|
+
# @param [Google::Apis::RequestOptions] options
|
553
|
+
# Request-specific options
|
554
|
+
#
|
555
|
+
# @yield [result, err] Result & error if block supplied
|
556
|
+
# @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
|
557
|
+
# @yieldparam err [StandardError] error object if request failed
|
558
|
+
#
|
559
|
+
# @return [Google::Apis::MonitoringV1::HttpBody]
|
560
|
+
#
|
561
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
562
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
563
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
564
|
+
def values_project_location_prometheu_api_v1_label(name, location, label, end_: nil, match: nil, start: nil, fields: nil, quota_user: nil, options: nil, &block)
|
565
|
+
command = make_simple_command(:get, 'v1/{+name}/location/{location}/prometheus/api/v1/label/{label}/values', options)
|
566
|
+
command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
|
567
|
+
command.response_class = Google::Apis::MonitoringV1::HttpBody
|
568
|
+
command.params['name'] = name unless name.nil?
|
569
|
+
command.params['location'] = location unless location.nil?
|
570
|
+
command.params['label'] = label unless label.nil?
|
571
|
+
command.query['end'] = end_ unless end_.nil?
|
572
|
+
command.query['match'] = match unless match.nil?
|
573
|
+
command.query['start'] = start unless start.nil?
|
574
|
+
command.query['fields'] = fields unless fields.nil?
|
575
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
576
|
+
execute_or_queue_command(command, &block)
|
577
|
+
end
|
578
|
+
|
579
|
+
# Lists metadata for metrics.
|
580
|
+
# @param [String] name
|
581
|
+
# Required. The workspace on which to execute the request. It is not part of the
|
582
|
+
# open source API but used as a request path prefix to distinguish different
|
583
|
+
# virtual Prometheus instances of Google Prometheus Engine. The format is:
|
584
|
+
# projects/PROJECT_ID_OR_NUMBER.
|
585
|
+
# @param [String] location
|
586
|
+
# Location of the resource information. Has to be "global" for now.
|
587
|
+
# @param [Fixnum] limit
|
588
|
+
# Maximum number of metrics to return.
|
589
|
+
# @param [String] metric
|
590
|
+
# The metric name for which to query metadata. If unset, all metric metadata is
|
591
|
+
# returned.
|
592
|
+
# @param [String] fields
|
593
|
+
# Selector specifying which fields to include in a partial response.
|
594
|
+
# @param [String] quota_user
|
595
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
596
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
597
|
+
# @param [Google::Apis::RequestOptions] options
|
598
|
+
# Request-specific options
|
599
|
+
#
|
600
|
+
# @yield [result, err] Result & error if block supplied
|
601
|
+
# @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
|
602
|
+
# @yieldparam err [StandardError] error object if request failed
|
603
|
+
#
|
604
|
+
# @return [Google::Apis::MonitoringV1::HttpBody]
|
605
|
+
#
|
606
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
607
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
608
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
609
|
+
def list_project_location_prometheu_api_v1_metadata(name, location, limit: nil, metric: nil, fields: nil, quota_user: nil, options: nil, &block)
|
610
|
+
command = make_simple_command(:get, 'v1/{+name}/location/{location}/prometheus/api/v1/metadata', options)
|
611
|
+
command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
|
612
|
+
command.response_class = Google::Apis::MonitoringV1::HttpBody
|
613
|
+
command.params['name'] = name unless name.nil?
|
614
|
+
command.params['location'] = location unless location.nil?
|
615
|
+
command.query['limit'] = limit unless limit.nil?
|
616
|
+
command.query['metric'] = metric unless metric.nil?
|
617
|
+
command.query['fields'] = fields unless fields.nil?
|
618
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
619
|
+
execute_or_queue_command(command, &block)
|
620
|
+
end
|
415
621
|
|
416
622
|
protected
|
417
623
|
|
@@ -21,12 +21,7 @@ module Google
|
|
21
21
|
module Apis
|
22
22
|
# Cloud Monitoring API
|
23
23
|
#
|
24
|
-
# Manages your Cloud Monitoring data and configurations.
|
25
|
-
# associated with a Workspace, with a few exceptions as noted on the individual
|
26
|
-
# method pages. The table entries below are presented in alphabetical order, not
|
27
|
-
# in order of common use. For explanations of the concepts found in the table
|
28
|
-
# entries, read the Cloud Monitoring documentation (https://cloud.google.com/
|
29
|
-
# monitoring/docs).
|
24
|
+
# Manages your Cloud Monitoring data and configurations.
|
30
25
|
#
|
31
26
|
# @see https://cloud.google.com/monitoring/api/
|
32
27
|
module MonitoringV1
|
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.17.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-
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.17.0
|
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: []
|
65
65
|
require_paths:
|