google-apis-monitoring_v1 0.11.0 → 0.15.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: 3cf6a27e01685ea3a88c1c8858410b8c4f5cc6523557e8eb747639316f2cc95c
4
- data.tar.gz: ab15eea73d9cf1db00e308c17a6a38f514f35a2cc618565dadca3fa9edb8da20
3
+ metadata.gz: ca008d8d1728a12f35eae0d004f8a481af0cf24afb5702b03fd28bc5928eff14
4
+ data.tar.gz: '049e2d40b9abf5ec189ae4078468aff7472c0ea37d2676ca4b1752aa2e6f14d6'
5
5
  SHA512:
6
- metadata.gz: 1361aaaa3556055609b8e79a4b4c67e661aad6050eb4f252189ac8f3c879868362f3812251de2ca0d5d46e33217b14aa2e7e6d9b4fe5155b8fa089296e09377b
7
- data.tar.gz: 97456ce5cb27455736a3302b0a8b25355b170f2295c18d527fde90f4d72103ec9126bd08b7307cdae16ddffd5c6572b5f6180c343f5b0f0c218be6b78e5eacfa
6
+ metadata.gz: 5f41996fc5ad8ab1589dbef2273e89f68c8ce5c64b0e7755416b81614e08aa5fe1c675327f438fb1ea7b1cff02aeafdbacd033171895102d8f40c56e6342a550
7
+ data.tar.gz: 33678c867e936839bf89c82cd59ca9f8e78947e93b78255fe7db76d223392227796d654f77def4d083324f10a9e3528c88dabf0b0f8327ace228226de4a6cf8d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-monitoring_v1
2
2
 
3
+ ### v0.15.0 (2021-10-29)
4
+
5
+ * Regenerated from discovery document revision 20211026
6
+
7
+ ### v0.14.0 (2021-10-22)
8
+
9
+ * Regenerated from discovery document revision 20211017
10
+ * Unspecified changes
11
+
12
+ ### v0.13.0 (2021-09-24)
13
+
14
+ * Regenerated from discovery document revision 20210922
15
+
16
+ ### v0.12.0 (2021-09-01)
17
+
18
+ * Regenerated from discovery document revision 20210809
19
+
3
20
  ### v0.11.0 (2021-07-30)
4
21
 
5
22
  * Regenerated from discovery document revision 20210727
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)
@@ -319,6 +325,11 @@ module Google
319
325
  # @return [String]
320
326
  attr_accessor :plot_type
321
327
 
328
+ # Optional. The target axis to use for plotting the metric.
329
+ # Corresponds to the JSON property `targetAxis`
330
+ # @return [String]
331
+ attr_accessor :target_axis
332
+
322
333
  # TimeSeriesQuery collects the set of supported methods for querying time series
323
334
  # data from the Stackdriver metrics API.
324
335
  # Corresponds to the JSON property `timeSeriesQuery`
@@ -334,6 +345,7 @@ module Google
334
345
  @legend_template = args[:legend_template] if args.key?(:legend_template)
335
346
  @min_alignment_period = args[:min_alignment_period] if args.key?(:min_alignment_period)
336
347
  @plot_type = args[:plot_type] if args.key?(:plot_type)
348
+ @target_axis = args[:target_axis] if args.key?(:target_axis)
337
349
  @time_series_query = args[:time_series_query] if args.key?(:time_series_query)
338
350
  end
339
351
  end
@@ -517,6 +529,54 @@ module Google
517
529
  end
518
530
  end
519
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
+
520
580
  # The ListDashboards request.
521
581
  class ListDashboardsResponse
522
582
  include Google::Apis::Core::Hashable
@@ -827,6 +887,127 @@ module Google
827
887
  end
828
888
  end
829
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
+
830
1011
  # Describes a query to build the numerator or denominator of a
831
1012
  # TimeSeriesFilterRatio.
832
1013
  class RatioPart
@@ -1125,6 +1306,71 @@ module Google
1125
1306
  end
1126
1307
  end
1127
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
+
1128
1374
  # A widget that displays textual content.
1129
1375
  class Text
1130
1376
  include Google::Apis::Core::Hashable
@@ -1169,6 +1415,12 @@ module Google
1169
1415
  # @return [String]
1170
1416
  attr_accessor :label
1171
1417
 
1418
+ # The target axis to use for plotting the threshold. Target axis is not allowed
1419
+ # in a Scorecard.
1420
+ # Corresponds to the JSON property `targetAxis`
1421
+ # @return [String]
1422
+ attr_accessor :target_axis
1423
+
1172
1424
  # The value of the threshold. The value should be defined in the native scale of
1173
1425
  # the metric.
1174
1426
  # Corresponds to the JSON property `value`
@@ -1184,6 +1436,7 @@ module Google
1184
1436
  @color = args[:color] if args.key?(:color)
1185
1437
  @direction = args[:direction] if args.key?(:direction)
1186
1438
  @label = args[:label] if args.key?(:label)
1439
+ @target_axis = args[:target_axis] if args.key?(:target_axis)
1187
1440
  @value = args[:value] if args.key?(:value)
1188
1441
  end
1189
1442
  end
@@ -1450,6 +1703,25 @@ module Google
1450
1703
  end
1451
1704
  end
1452
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
+
1453
1725
  # A protocol buffer message type.
1454
1726
  class Type
1455
1727
  include Google::Apis::Core::Hashable
@@ -1530,6 +1802,11 @@ module Google
1530
1802
  # @return [Google::Apis::MonitoringV1::Text]
1531
1803
  attr_accessor :text
1532
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
+
1533
1810
  # Optional. The title of the widget.
1534
1811
  # Corresponds to the JSON property `title`
1535
1812
  # @return [String]
@@ -1550,6 +1827,7 @@ module Google
1550
1827
  @blank = args[:blank] if args.key?(:blank)
1551
1828
  @scorecard = args[:scorecard] if args.key?(:scorecard)
1552
1829
  @text = args[:text] if args.key?(:text)
1830
+ @time_series_table = args[:time_series_table] if args.key?(:time_series_table)
1553
1831
  @title = args[:title] if args.key?(:title)
1554
1832
  @xy_chart = args[:xy_chart] if args.key?(:xy_chart)
1555
1833
  end
@@ -1587,6 +1865,11 @@ module Google
1587
1865
  # @return [Google::Apis::MonitoringV1::Axis]
1588
1866
  attr_accessor :x_axis
1589
1867
 
1868
+ # A chart axis.
1869
+ # Corresponds to the JSON property `y2Axis`
1870
+ # @return [Google::Apis::MonitoringV1::Axis]
1871
+ attr_accessor :y2_axis
1872
+
1590
1873
  # A chart axis.
1591
1874
  # Corresponds to the JSON property `yAxis`
1592
1875
  # @return [Google::Apis::MonitoringV1::Axis]
@@ -1603,6 +1886,7 @@ module Google
1603
1886
  @thresholds = args[:thresholds] if args.key?(:thresholds)
1604
1887
  @timeshift_duration = args[:timeshift_duration] if args.key?(:timeshift_duration)
1605
1888
  @x_axis = args[:x_axis] if args.key?(:x_axis)
1889
+ @y2_axis = args[:y2_axis] if args.key?(:y2_axis)
1606
1890
  @y_axis = args[:y_axis] if args.key?(:y_axis)
1607
1891
  end
1608
1892
  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.11.0"
19
+ GEM_VERSION = "0.15.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 = "20210727"
25
+ REVISION = "20211026"
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'
@@ -334,6 +377,7 @@ module Google
334
377
  property :legend_template, as: 'legendTemplate'
335
378
  property :min_alignment_period, as: 'minAlignmentPeriod'
336
379
  property :plot_type, as: 'plotType'
380
+ property :target_axis, as: 'targetAxis'
337
381
  property :time_series_query, as: 'timeSeriesQuery', class: Google::Apis::MonitoringV1::TimeSeriesQuery, decorator: Google::Apis::MonitoringV1::TimeSeriesQuery::Representation
338
382
 
339
383
  end
@@ -386,6 +430,15 @@ module Google
386
430
  end
387
431
  end
388
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
+
389
442
  class ListDashboardsResponse
390
443
  # @private
391
444
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -469,6 +522,34 @@ module Google
469
522
  end
470
523
  end
471
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
+
472
553
  class RatioPart
473
554
  # @private
474
555
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -548,6 +629,25 @@ module Google
548
629
  end
549
630
  end
550
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
+
551
651
  class Text
552
652
  # @private
553
653
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -562,6 +662,7 @@ module Google
562
662
  property :color, as: 'color'
563
663
  property :direction, as: 'direction'
564
664
  property :label, as: 'label'
665
+ property :target_axis, as: 'targetAxis'
565
666
  property :value, as: 'value'
566
667
  end
567
668
  end
@@ -621,6 +722,14 @@ module Google
621
722
  end
622
723
  end
623
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
+
624
733
  class Type
625
734
  # @private
626
735
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -647,6 +756,8 @@ module Google
647
756
 
648
757
  property :text, as: 'text', class: Google::Apis::MonitoringV1::Text, decorator: Google::Apis::MonitoringV1::Text::Representation
649
758
 
759
+ property :time_series_table, as: 'timeSeriesTable', class: Google::Apis::MonitoringV1::TimeSeriesTable, decorator: Google::Apis::MonitoringV1::TimeSeriesTable::Representation
760
+
650
761
  property :title, as: 'title'
651
762
  property :xy_chart, as: 'xyChart', class: Google::Apis::MonitoringV1::XyChart, decorator: Google::Apis::MonitoringV1::XyChart::Representation
652
763
 
@@ -665,6 +776,8 @@ module Google
665
776
  property :timeshift_duration, as: 'timeshiftDuration'
666
777
  property :x_axis, as: 'xAxis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
667
778
 
779
+ property :y2_axis, as: 'y2Axis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
780
+
668
781
  property :y_axis, as: 'yAxis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
669
782
 
670
783
  end
@@ -54,7 +54,8 @@ module Google
54
54
  @batch_path = 'batch'
55
55
  end
56
56
 
57
- # Returns a specific Metrics Scope.
57
+ # Returns a specific Metrics Scope, including the list of projects monitored by
58
+ # the specified Metrics Scope.
58
59
  # @param [String] name
59
60
  # Required. The resource name of the Metrics Scope. Example: locations/global/
60
61
  # metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`
@@ -411,6 +412,217 @@ module Google
411
412
  command.query['quotaUser'] = quota_user unless quota_user.nil?
412
413
  execute_or_queue_command(command, &block)
413
414
  end
415
+
416
+ # Evaluate a PromQL query at a single point in time.
417
+ # @param [String] name
418
+ # The project on which to execute the request. Data associcated with the project'
419
+ # s workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER.
420
+ # Open source API but used as a request path prefix to distinguish different
421
+ # virtual Prometheus instances of Google Prometheus Engine.
422
+ # @param [String] location
423
+ # Location of the resource information. Has to be "global" now.
424
+ # @param [Google::Apis::MonitoringV1::QueryInstantRequest] query_instant_request_object
425
+ # @param [String] fields
426
+ # Selector specifying which fields to include in a partial response.
427
+ # @param [String] quota_user
428
+ # Available to use for quota purposes for server-side applications. Can be any
429
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
430
+ # @param [Google::Apis::RequestOptions] options
431
+ # Request-specific options
432
+ #
433
+ # @yield [result, err] Result & error if block supplied
434
+ # @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
435
+ # @yieldparam err [StandardError] error object if request failed
436
+ #
437
+ # @return [Google::Apis::MonitoringV1::HttpBody]
438
+ #
439
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
440
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
441
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
442
+ def query_v1_instant(name, location, query_instant_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
443
+ command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/query', options)
444
+ command.request_representation = Google::Apis::MonitoringV1::QueryInstantRequest::Representation
445
+ command.request_object = query_instant_request_object
446
+ command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
447
+ command.response_class = Google::Apis::MonitoringV1::HttpBody
448
+ command.params['name'] = name unless name.nil?
449
+ command.params['location'] = location unless location.nil?
450
+ command.query['fields'] = fields unless fields.nil?
451
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
452
+ execute_or_queue_command(command, &block)
453
+ end
454
+
455
+ # Evaluate a PromQL query with start, end time range.
456
+ # @param [String] name
457
+ # The project on which to execute the request. Data associcated with the project'
458
+ # s workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER.
459
+ # Open source API but used as a request path prefix to distinguish different
460
+ # virtual Prometheus instances of Google Prometheus Engine.
461
+ # @param [String] location
462
+ # Location of the resource information. Has to be "global" now.
463
+ # @param [Google::Apis::MonitoringV1::QueryRangeRequest] query_range_request_object
464
+ # @param [String] fields
465
+ # Selector specifying which fields to include in a partial response.
466
+ # @param [String] quota_user
467
+ # Available to use for quota purposes for server-side applications. Can be any
468
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
469
+ # @param [Google::Apis::RequestOptions] options
470
+ # Request-specific options
471
+ #
472
+ # @yield [result, err] Result & error if block supplied
473
+ # @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
474
+ # @yieldparam err [StandardError] error object if request failed
475
+ #
476
+ # @return [Google::Apis::MonitoringV1::HttpBody]
477
+ #
478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
481
+ def query_v1_range(name, location, query_range_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
482
+ command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/query_range', options)
483
+ command.request_representation = Google::Apis::MonitoringV1::QueryRangeRequest::Representation
484
+ command.request_object = query_range_request_object
485
+ command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
486
+ command.response_class = Google::Apis::MonitoringV1::HttpBody
487
+ command.params['name'] = name unless name.nil?
488
+ command.params['location'] = location unless location.nil?
489
+ command.query['fields'] = fields unless fields.nil?
490
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
491
+ execute_or_queue_command(command, &block)
492
+ end
493
+
494
+ # Lists metadata for metrics.
495
+ # @param [String] name
496
+ # Required. The workspace on which to execute the request. It is not part of the
497
+ # open source API but used as a request path prefix to distinguish different
498
+ # virtual Prometheus instances of Google Prometheus Engine. The format is:
499
+ # projects/PROJECT_ID_OR_NUMBER.
500
+ # @param [String] location
501
+ # Location of the resource information. Has to be "global" for now.
502
+ # @param [Google::Apis::MonitoringV1::QuerySeriesRequest] query_series_request_object
503
+ # @param [String] fields
504
+ # Selector specifying which fields to include in a partial response.
505
+ # @param [String] quota_user
506
+ # Available to use for quota purposes for server-side applications. Can be any
507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
508
+ # @param [Google::Apis::RequestOptions] options
509
+ # Request-specific options
510
+ #
511
+ # @yield [result, err] Result & error if block supplied
512
+ # @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
513
+ # @yieldparam err [StandardError] error object if request failed
514
+ #
515
+ # @return [Google::Apis::MonitoringV1::HttpBody]
516
+ #
517
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
518
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
519
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
520
+ def series_project_location_prometheu_api_v1(name, location, query_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
521
+ command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/series', options)
522
+ command.request_representation = Google::Apis::MonitoringV1::QuerySeriesRequest::Representation
523
+ command.request_object = query_series_request_object
524
+ command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
525
+ command.response_class = Google::Apis::MonitoringV1::HttpBody
526
+ command.params['name'] = name unless name.nil?
527
+ command.params['location'] = location unless location.nil?
528
+ command.query['fields'] = fields unless fields.nil?
529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
530
+ execute_or_queue_command(command, &block)
531
+ end
532
+
533
+ # Lists possible values for a given label name.
534
+ # @param [String] name
535
+ # The workspace on which to execute the request. It is not part of the open
536
+ # source API but used as a request path prefix to distinguish different virtual
537
+ # Prometheus instances of Google Prometheus Engine. The format is: projects/
538
+ # PROJECT_ID_OR_NUMBER.
539
+ # @param [String] location
540
+ # Location of the resource information. Has to be "global" now.
541
+ # @param [String] label
542
+ # The label name for which values are queried.
543
+ # @param [String] end_
544
+ # The end time to evaluate the query for. Either floating point UNIX seconds or
545
+ # RFC3339 formatted timestamp.
546
+ # @param [String] match
547
+ # A list of matchers encoded in the Prometheus label matcher format to constrain
548
+ # the values to series that satisfy them.
549
+ # @param [String] start
550
+ # The start time to evaluate the query for. Either floating point UNIX seconds
551
+ # or RFC3339 formatted timestamp.
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # @param [Google::Apis::RequestOptions] options
558
+ # Request-specific options
559
+ #
560
+ # @yield [result, err] Result & error if block supplied
561
+ # @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::MonitoringV1::HttpBody]
565
+ #
566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
569
+ 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)
570
+ command = make_simple_command(:get, 'v1/{+name}/location/{location}/prometheus/api/v1/label/{label}/values', options)
571
+ command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
572
+ command.response_class = Google::Apis::MonitoringV1::HttpBody
573
+ command.params['name'] = name unless name.nil?
574
+ command.params['location'] = location unless location.nil?
575
+ command.params['label'] = label unless label.nil?
576
+ command.query['end'] = end_ unless end_.nil?
577
+ command.query['match'] = match unless match.nil?
578
+ command.query['start'] = start unless start.nil?
579
+ command.query['fields'] = fields unless fields.nil?
580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
581
+ execute_or_queue_command(command, &block)
582
+ end
583
+
584
+ # Lists metadata for metrics.
585
+ # @param [String] name
586
+ # Required. The workspace on which to execute the request. It is not part of the
587
+ # open source API but used as a request path prefix to distinguish different
588
+ # virtual Prometheus instances of Google Prometheus Engine. The format is:
589
+ # projects/PROJECT_ID_OR_NUMBER.
590
+ # @param [String] location
591
+ # Location of the resource information. Has to be "global" for now.
592
+ # @param [Fixnum] limit
593
+ # Maximum number of metrics to return.
594
+ # @param [String] metric
595
+ # The metric name for which to query metadata. If unset, all metric metadata is
596
+ # returned.
597
+ # @param [String] fields
598
+ # Selector specifying which fields to include in a partial response.
599
+ # @param [String] quota_user
600
+ # Available to use for quota purposes for server-side applications. Can be any
601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
602
+ # @param [Google::Apis::RequestOptions] options
603
+ # Request-specific options
604
+ #
605
+ # @yield [result, err] Result & error if block supplied
606
+ # @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
607
+ # @yieldparam err [StandardError] error object if request failed
608
+ #
609
+ # @return [Google::Apis::MonitoringV1::HttpBody]
610
+ #
611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
614
+ def list_project_location_prometheu_api_v1_metadata(name, location, limit: nil, metric: nil, fields: nil, quota_user: nil, options: nil, &block)
615
+ command = make_simple_command(:get, 'v1/{+name}/location/{location}/prometheus/api/v1/metadata', options)
616
+ command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
617
+ command.response_class = Google::Apis::MonitoringV1::HttpBody
618
+ command.params['name'] = name unless name.nil?
619
+ command.params['location'] = location unless location.nil?
620
+ command.query['limit'] = limit unless limit.nil?
621
+ command.query['metric'] = metric unless metric.nil?
622
+ command.query['fields'] = fields unless fields.nil?
623
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
624
+ execute_or_queue_command(command, &block)
625
+ end
414
626
 
415
627
  protected
416
628
 
@@ -34,7 +34,7 @@ module Google
34
34
  # This is NOT the gem version.
35
35
  VERSION = 'V1'
36
36
 
37
- # See, edit, configure, and delete your Google Cloud Platform data
37
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
38
38
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
39
39
 
40
40
  # View and write monitoring data for all of your Google and third-party Cloud and API projects
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.11.0
4
+ version: 0.15.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-08-02 00:00:00.000000000 Z
11
+ date: 2021-11-01 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.11.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.15.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: