google-apis-monitoring_v1 0.14.0 → 0.18.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 +16 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/monitoring_v1/classes.rb +204 -0
- data/lib/google/apis/monitoring_v1/gem_version.rb +2 -2
- data/lib/google/apis/monitoring_v1/representations.rb +77 -0
- data/lib/google/apis/monitoring_v1/service.rb +212 -6
- data/lib/google/apis/monitoring_v1.rb +1 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dee8a956f3caf654726c04600003d7208e49b96cd4a24e1a5dc079a814ccb55
|
4
|
+
data.tar.gz: 22533e3a1f52cdeeb8dd77b232d8e2c0260f7d5b79359c3a1e607f228947b1fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e27195662095e84dc3351203c3635f34ae60b0dde17d8b6f12eb4c5343947329f6eb5a4ce473e98955b9d52021f2738535ef64665450741d9835a90a2206430
|
7
|
+
data.tar.gz: 1acf56638c2ce0596689d167f37b6e876a2d225e7ee668e197420af1ee4ebf93248afe04c7faf5b49ca8a4bbda900e30930f86c54f1e8aec180a5f998bffa83e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-monitoring_v1
|
2
2
|
|
3
|
+
### v0.18.0 (2021-12-14)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.17.0 (2021-11-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211108
|
10
|
+
|
11
|
+
### v0.16.0 (2021-11-05)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211031
|
14
|
+
|
15
|
+
### v0.15.0 (2021-10-29)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211026
|
18
|
+
|
3
19
|
### v0.14.0 (2021-10-22)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20211017
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/monitoring_v1"
|
|
51
51
|
client = Google::Apis::MonitoringV1::MonitoringService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -529,6 +529,54 @@ module Google
|
|
529
529
|
end
|
530
530
|
end
|
531
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
|
+
|
532
580
|
# The ListDashboards request.
|
533
581
|
class ListDashboardsResponse
|
534
582
|
include Google::Apis::Core::Hashable
|
@@ -576,6 +624,35 @@ module Google
|
|
576
624
|
end
|
577
625
|
end
|
578
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
|
+
|
579
656
|
# Represents a Metrics Scope (https://cloud.google.com/monitoring/settings#
|
580
657
|
# concept-scope) in Cloud Monitoring, which specifies one or more Google
|
581
658
|
# projects and zero or more AWS accounts to monitor together.
|
@@ -839,6 +916,127 @@ module Google
|
|
839
916
|
end
|
840
917
|
end
|
841
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
|
+
|
842
1040
|
# Describes a query to build the numerator or denominator of a
|
843
1041
|
# TimeSeriesFilterRatio.
|
844
1042
|
class RatioPart
|
@@ -1622,6 +1820,11 @@ module Google
|
|
1622
1820
|
# @return [Google::Apis::MonitoringV1::Empty]
|
1623
1821
|
attr_accessor :blank
|
1624
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
|
+
|
1625
1828
|
# A widget showing the latest value of a metric, and how this value relates to
|
1626
1829
|
# one or more thresholds.
|
1627
1830
|
# Corresponds to the JSON property `scorecard`
|
@@ -1656,6 +1859,7 @@ module Google
|
|
1656
1859
|
def update!(**args)
|
1657
1860
|
@alert_chart = args[:alert_chart] if args.key?(:alert_chart)
|
1658
1861
|
@blank = args[:blank] if args.key?(:blank)
|
1862
|
+
@logs_panel = args[:logs_panel] if args.key?(:logs_panel)
|
1659
1863
|
@scorecard = args[:scorecard] if args.key?(:scorecard)
|
1660
1864
|
@text = args[:text] if args.key?(:text)
|
1661
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.18.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
|
|
@@ -406,6 +436,15 @@ module Google
|
|
406
436
|
end
|
407
437
|
end
|
408
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
|
+
|
409
448
|
class ListDashboardsResponse
|
410
449
|
# @private
|
411
450
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -423,6 +462,14 @@ module Google
|
|
423
462
|
end
|
424
463
|
end
|
425
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
|
+
|
426
473
|
class MetricsScope
|
427
474
|
# @private
|
428
475
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -489,6 +536,34 @@ module Google
|
|
489
536
|
end
|
490
537
|
end
|
491
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
|
+
|
492
567
|
class RatioPart
|
493
568
|
# @private
|
494
569
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -691,6 +766,8 @@ module Google
|
|
691
766
|
|
692
767
|
property :blank, as: 'blank', class: Google::Apis::MonitoringV1::Empty, decorator: Google::Apis::MonitoringV1::Empty::Representation
|
693
768
|
|
769
|
+
property :logs_panel, as: 'logsPanel', class: Google::Apis::MonitoringV1::LogsPanel, decorator: Google::Apis::MonitoringV1::LogsPanel::Representation
|
770
|
+
|
694
771
|
property :scorecard, as: 'scorecard', class: Google::Apis::MonitoringV1::Scorecard, decorator: Google::Apis::MonitoringV1::Scorecard::Representation
|
695
772
|
|
696
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.18.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: 2022-01-10 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.18.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.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Monitoring API V1
|