google-apis-monitoring_v1 0.12.0 → 0.16.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: d77f39bc37e651ebdf187c18beb23071d307e81b975fcb5f2372d1a35cec8726
4
- data.tar.gz: d829526718c427ec5788ac8f488e52512f147aa9288b8a652c48d0781c4691ac
3
+ metadata.gz: bd83dbbf306076202f1b5513c764839fbc07c3788f3832807219ed9e2ff6c0e6
4
+ data.tar.gz: cdd775e653c6c9a84925072b87df35ef93b14c187d1d145a16182916e81ab765
5
5
  SHA512:
6
- metadata.gz: 463297005022f20a0a5666c742e58337c72e1aabb628545fe2e2d66aa4fe7d37dfb2065ea80ca63c5be4ab63152f03cb3ae1039224e7f54e92af2df29434f158
7
- data.tar.gz: 6df27e09cbcae11219ea186663ca5fbd0869483bfbb9a21e572f638d8b3862dd30effa5c4dc72a9d789fbb001103c14ec0057f00bc51106f3027128b76eb3054
6
+ metadata.gz: ab19be539b10e9e25aec0bdb82eafc7529e5cb332c1f97a1e3f31a523854e32f5856341e4343ba95fa2c7f92d58402a7964cef1228788ba5914d6e85a48426cd
7
+ data.tar.gz: 12528d816a81d240bf8534fbb1b64652ff248a8d8b02db761220978f16a2d39692e5e3fb12c4f62d9a1034cf3b605553932826804b30262cc420d1744f46570e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-monitoring_v1
2
2
 
3
+ ### v0.16.0 (2021-11-05)
4
+
5
+ * Regenerated from discovery document revision 20211031
6
+
7
+ ### v0.15.0 (2021-10-29)
8
+
9
+ * Regenerated from discovery document revision 20211026
10
+
11
+ ### v0.14.0 (2021-10-22)
12
+
13
+ * Regenerated from discovery document revision 20211017
14
+ * Unspecified changes
15
+
16
+ ### v0.13.0 (2021-09-24)
17
+
18
+ * Regenerated from discovery document revision 20210922
19
+
3
20
  ### v0.12.0 (2021-09-01)
4
21
 
5
22
  * Regenerated from discovery document revision 20210809
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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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
@@ -833,6 +887,127 @@ module Google
833
887
  end
834
888
  end
835
889
 
890
+ # QueryInstantRequest holds all parameters of the Prometheus upstream instant
891
+ # query API plus GCM specific parameters.
892
+ class QueryInstantRequest
893
+ include Google::Apis::Core::Hashable
894
+
895
+ # A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/
896
+ # prometheus/latest/querying/basics/.
897
+ # Corresponds to the JSON property `query`
898
+ # @return [String]
899
+ attr_accessor :query
900
+
901
+ # The single point in time to evaluate the query for. Either floating point UNIX
902
+ # seconds or RFC3339 formatted timestamp.
903
+ # Corresponds to the JSON property `time`
904
+ # @return [String]
905
+ attr_accessor :time
906
+
907
+ # An upper bound timeout for the query. Either a Prometheus duration string (
908
+ # https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations)
909
+ # or floating point seconds. This non-standard encoding must be used for
910
+ # compatibility with the open source API. Clients may still implement timeouts
911
+ # at the connection level while ignoring this field.
912
+ # Corresponds to the JSON property `timeout`
913
+ # @return [String]
914
+ attr_accessor :timeout
915
+
916
+ def initialize(**args)
917
+ update!(**args)
918
+ end
919
+
920
+ # Update properties of this object
921
+ def update!(**args)
922
+ @query = args[:query] if args.key?(:query)
923
+ @time = args[:time] if args.key?(:time)
924
+ @timeout = args[:timeout] if args.key?(:timeout)
925
+ end
926
+ end
927
+
928
+ # QueryRangeRequest holds all parameters of the Prometheus upstream range query
929
+ # API plus GCM specific parameters.
930
+ class QueryRangeRequest
931
+ include Google::Apis::Core::Hashable
932
+
933
+ # The end time to evaluate the query for. Either floating point UNIX seconds or
934
+ # RFC3339 formatted timestamp.
935
+ # Corresponds to the JSON property `end`
936
+ # @return [String]
937
+ attr_accessor :end
938
+
939
+ # A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/
940
+ # prometheus/latest/querying/basics/.
941
+ # Corresponds to the JSON property `query`
942
+ # @return [String]
943
+ attr_accessor :query
944
+
945
+ # The start time to evaluate the query for. Either floating point UNIX seconds
946
+ # or RFC3339 formatted timestamp.
947
+ # Corresponds to the JSON property `start`
948
+ # @return [String]
949
+ attr_accessor :start
950
+
951
+ # The resolution of query result. Either a Prometheus duration string (https://
952
+ # prometheus.io/docs/prometheus/latest/querying/basics/#time-durations) or
953
+ # floating point seconds. This non-standard encoding must be used for
954
+ # compatibility with the open source API. Clients may still implement timeouts
955
+ # at the connection level while ignoring this field.
956
+ # Corresponds to the JSON property `step`
957
+ # @return [String]
958
+ attr_accessor :step
959
+
960
+ # An upper bound timeout for the query. Either a Prometheus duration string (
961
+ # https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations)
962
+ # or floating point seconds. This non-standard encoding must be used for
963
+ # compatibility with the open source API. Clients may still implement timeouts
964
+ # at the connection level while ignoring this field.
965
+ # Corresponds to the JSON property `timeout`
966
+ # @return [String]
967
+ attr_accessor :timeout
968
+
969
+ def initialize(**args)
970
+ update!(**args)
971
+ end
972
+
973
+ # Update properties of this object
974
+ def update!(**args)
975
+ @end = args[:end] if args.key?(:end)
976
+ @query = args[:query] if args.key?(:query)
977
+ @start = args[:start] if args.key?(:start)
978
+ @step = args[:step] if args.key?(:step)
979
+ @timeout = args[:timeout] if args.key?(:timeout)
980
+ end
981
+ end
982
+
983
+ # QuerySeries holds all parameters of the Prometheus upstream API for querying
984
+ # series.
985
+ class QuerySeriesRequest
986
+ include Google::Apis::Core::Hashable
987
+
988
+ # The end time to evaluate the query for. Either floating point UNIX seconds or
989
+ # RFC3339 formatted timestamp.
990
+ # Corresponds to the JSON property `end`
991
+ # @return [String]
992
+ attr_accessor :end
993
+
994
+ # The start time to evaluate the query for. Either floating point UNIX seconds
995
+ # or RFC3339 formatted timestamp.
996
+ # Corresponds to the JSON property `start`
997
+ # @return [String]
998
+ attr_accessor :start
999
+
1000
+ def initialize(**args)
1001
+ update!(**args)
1002
+ end
1003
+
1004
+ # Update properties of this object
1005
+ def update!(**args)
1006
+ @end = args[:end] if args.key?(:end)
1007
+ @start = args[:start] if args.key?(:start)
1008
+ end
1009
+ end
1010
+
836
1011
  # Describes a query to build the numerator or denominator of a
837
1012
  # TimeSeriesFilterRatio.
838
1013
  class RatioPart
@@ -1131,6 +1306,71 @@ module Google
1131
1306
  end
1132
1307
  end
1133
1308
 
1309
+ # Groups a time series query definition with table options.
1310
+ class TableDataSet
1311
+ include Google::Apis::Core::Hashable
1312
+
1313
+ # Optional. The lower bound on data point frequency for this data set,
1314
+ # implemented by specifying the minimum alignment period to use in a time series
1315
+ # query For example, if the data is published once every 10 minutes, the
1316
+ # min_alignment_period should be at least 10 minutes. It would not make sense to
1317
+ # fetch and align data at one minute intervals.
1318
+ # Corresponds to the JSON property `minAlignmentPeriod`
1319
+ # @return [String]
1320
+ attr_accessor :min_alignment_period
1321
+
1322
+ # Table display options that can be reused.
1323
+ # Corresponds to the JSON property `tableDisplayOptions`
1324
+ # @return [Google::Apis::MonitoringV1::TableDisplayOptions]
1325
+ attr_accessor :table_display_options
1326
+
1327
+ # Optional. A template string for naming TimeSeries in the resulting data set.
1328
+ # This should be a string with interpolations of the form $`label_name`, which
1329
+ # will resolve to the label's value i.e. "$`resource.labels.project_id`."
1330
+ # Corresponds to the JSON property `tableTemplate`
1331
+ # @return [String]
1332
+ attr_accessor :table_template
1333
+
1334
+ # TimeSeriesQuery collects the set of supported methods for querying time series
1335
+ # data from the Stackdriver metrics API.
1336
+ # Corresponds to the JSON property `timeSeriesQuery`
1337
+ # @return [Google::Apis::MonitoringV1::TimeSeriesQuery]
1338
+ attr_accessor :time_series_query
1339
+
1340
+ def initialize(**args)
1341
+ update!(**args)
1342
+ end
1343
+
1344
+ # Update properties of this object
1345
+ def update!(**args)
1346
+ @min_alignment_period = args[:min_alignment_period] if args.key?(:min_alignment_period)
1347
+ @table_display_options = args[:table_display_options] if args.key?(:table_display_options)
1348
+ @table_template = args[:table_template] if args.key?(:table_template)
1349
+ @time_series_query = args[:time_series_query] if args.key?(:time_series_query)
1350
+ end
1351
+ end
1352
+
1353
+ # Table display options that can be reused.
1354
+ class TableDisplayOptions
1355
+ include Google::Apis::Core::Hashable
1356
+
1357
+ # Optional. Columns to display in the table. Leave empty to display all
1358
+ # available columns. Note: This field is for future features and is not
1359
+ # currently used.
1360
+ # Corresponds to the JSON property `shownColumns`
1361
+ # @return [Array<String>]
1362
+ attr_accessor :shown_columns
1363
+
1364
+ def initialize(**args)
1365
+ update!(**args)
1366
+ end
1367
+
1368
+ # Update properties of this object
1369
+ def update!(**args)
1370
+ @shown_columns = args[:shown_columns] if args.key?(:shown_columns)
1371
+ end
1372
+ end
1373
+
1134
1374
  # A widget that displays textual content.
1135
1375
  class Text
1136
1376
  include Google::Apis::Core::Hashable
@@ -1463,6 +1703,25 @@ module Google
1463
1703
  end
1464
1704
  end
1465
1705
 
1706
+ # A table that displays time series data.
1707
+ class TimeSeriesTable
1708
+ include Google::Apis::Core::Hashable
1709
+
1710
+ # Required. The data displayed in this table.
1711
+ # Corresponds to the JSON property `dataSets`
1712
+ # @return [Array<Google::Apis::MonitoringV1::TableDataSet>]
1713
+ attr_accessor :data_sets
1714
+
1715
+ def initialize(**args)
1716
+ update!(**args)
1717
+ end
1718
+
1719
+ # Update properties of this object
1720
+ def update!(**args)
1721
+ @data_sets = args[:data_sets] if args.key?(:data_sets)
1722
+ end
1723
+ end
1724
+
1466
1725
  # A protocol buffer message type.
1467
1726
  class Type
1468
1727
  include Google::Apis::Core::Hashable
@@ -1543,6 +1802,11 @@ module Google
1543
1802
  # @return [Google::Apis::MonitoringV1::Text]
1544
1803
  attr_accessor :text
1545
1804
 
1805
+ # A table that displays time series data.
1806
+ # Corresponds to the JSON property `timeSeriesTable`
1807
+ # @return [Google::Apis::MonitoringV1::TimeSeriesTable]
1808
+ attr_accessor :time_series_table
1809
+
1546
1810
  # Optional. The title of the widget.
1547
1811
  # Corresponds to the JSON property `title`
1548
1812
  # @return [String]
@@ -1563,6 +1827,7 @@ module Google
1563
1827
  @blank = args[:blank] if args.key?(:blank)
1564
1828
  @scorecard = args[:scorecard] if args.key?(:scorecard)
1565
1829
  @text = args[:text] if args.key?(:text)
1830
+ @time_series_table = args[:time_series_table] if args.key?(:time_series_table)
1566
1831
  @title = args[:title] if args.key?(:title)
1567
1832
  @xy_chart = args[:xy_chart] if args.key?(:xy_chart)
1568
1833
  end
@@ -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.12.0"
19
+ GEM_VERSION = "0.16.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 = "20210809"
25
+ REVISION = "20211031"
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
 
@@ -154,6 +160,24 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class QueryInstantRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class QueryRangeRequest
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class QuerySeriesRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
157
181
  class RatioPart
158
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
183
 
@@ -208,6 +232,18 @@ module Google
208
232
  include Google::Apis::Core::JsonObjectSupport
209
233
  end
210
234
 
235
+ class TableDataSet
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class TableDisplayOptions
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
211
247
  class Text
212
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
249
 
@@ -244,6 +280,12 @@ module Google
244
280
  include Google::Apis::Core::JsonObjectSupport
245
281
  end
246
282
 
283
+ class TimeSeriesTable
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
247
289
  class Type
248
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
291
 
@@ -320,6 +362,7 @@ module Google
320
362
  property :etag, as: 'etag'
321
363
  property :grid_layout, as: 'gridLayout', class: Google::Apis::MonitoringV1::GridLayout, decorator: Google::Apis::MonitoringV1::GridLayout::Representation
322
364
 
365
+ hash :labels, as: 'labels'
323
366
  property :mosaic_layout, as: 'mosaicLayout', class: Google::Apis::MonitoringV1::MosaicLayout, decorator: Google::Apis::MonitoringV1::MosaicLayout::Representation
324
367
 
325
368
  property :name, as: 'name'
@@ -387,6 +430,15 @@ module Google
387
430
  end
388
431
  end
389
432
 
433
+ class HttpBody
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :content_type, as: 'contentType'
437
+ property :data, :base64 => true, as: 'data'
438
+ collection :extensions, as: 'extensions'
439
+ end
440
+ end
441
+
390
442
  class ListDashboardsResponse
391
443
  # @private
392
444
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -470,6 +522,34 @@ module Google
470
522
  end
471
523
  end
472
524
 
525
+ class QueryInstantRequest
526
+ # @private
527
+ class Representation < Google::Apis::Core::JsonRepresentation
528
+ property :query, as: 'query'
529
+ property :time, as: 'time'
530
+ property :timeout, as: 'timeout'
531
+ end
532
+ end
533
+
534
+ class QueryRangeRequest
535
+ # @private
536
+ class Representation < Google::Apis::Core::JsonRepresentation
537
+ property :end, as: 'end'
538
+ property :query, as: 'query'
539
+ property :start, as: 'start'
540
+ property :step, as: 'step'
541
+ property :timeout, as: 'timeout'
542
+ end
543
+ end
544
+
545
+ class QuerySeriesRequest
546
+ # @private
547
+ class Representation < Google::Apis::Core::JsonRepresentation
548
+ property :end, as: 'end'
549
+ property :start, as: 'start'
550
+ end
551
+ end
552
+
473
553
  class RatioPart
474
554
  # @private
475
555
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -549,6 +629,25 @@ module Google
549
629
  end
550
630
  end
551
631
 
632
+ class TableDataSet
633
+ # @private
634
+ class Representation < Google::Apis::Core::JsonRepresentation
635
+ property :min_alignment_period, as: 'minAlignmentPeriod'
636
+ property :table_display_options, as: 'tableDisplayOptions', class: Google::Apis::MonitoringV1::TableDisplayOptions, decorator: Google::Apis::MonitoringV1::TableDisplayOptions::Representation
637
+
638
+ property :table_template, as: 'tableTemplate'
639
+ property :time_series_query, as: 'timeSeriesQuery', class: Google::Apis::MonitoringV1::TimeSeriesQuery, decorator: Google::Apis::MonitoringV1::TimeSeriesQuery::Representation
640
+
641
+ end
642
+ end
643
+
644
+ class TableDisplayOptions
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ collection :shown_columns, as: 'shownColumns'
648
+ end
649
+ end
650
+
552
651
  class Text
553
652
  # @private
554
653
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -623,6 +722,14 @@ module Google
623
722
  end
624
723
  end
625
724
 
725
+ class TimeSeriesTable
726
+ # @private
727
+ class Representation < Google::Apis::Core::JsonRepresentation
728
+ collection :data_sets, as: 'dataSets', class: Google::Apis::MonitoringV1::TableDataSet, decorator: Google::Apis::MonitoringV1::TableDataSet::Representation
729
+
730
+ end
731
+ end
732
+
626
733
  class Type
627
734
  # @private
628
735
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -649,6 +756,8 @@ module Google
649
756
 
650
757
  property :text, as: 'text', class: Google::Apis::MonitoringV1::Text, decorator: Google::Apis::MonitoringV1::Text::Representation
651
758
 
759
+ property :time_series_table, as: 'timeSeriesTable', class: Google::Apis::MonitoringV1::TimeSeriesTable, decorator: Google::Apis::MonitoringV1::TimeSeriesTable::Representation
760
+
652
761
  property :title, as: 'title'
653
762
  property :xy_chart, as: 'xyChart', class: Google::Apis::MonitoringV1::XyChart, decorator: Google::Apis::MonitoringV1::XyChart::Representation
654
763
 
@@ -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. Most projects must be
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. Most projects must be
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.12.0
4
+ version: 0.16.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-09-06 00:00:00.000000000 Z
11
+ date: 2021-11-08 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/master/generated/google-apis-monitoring_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.12.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1
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.16.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: