google-apis-monitoring_v1 0.31.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72956fc8c27a367ba8ab6c69fe990995612fed67885ed3dfc2812c2c68e5921e
4
- data.tar.gz: 325e4e7d2e013696851d208e4e199f068b4fb578a55ecd7e5190d8ece5f18e11
3
+ metadata.gz: aa590054ea3f3a33ba9959a499a537f78b56e27b3a85d53a7482a81b0b9719d2
4
+ data.tar.gz: 30d708eb623494a6d51ad9a4c871d8c6eeac31caf7bfbc7369ccaebbf3dd4c48
5
5
  SHA512:
6
- metadata.gz: 3f3f312467eb7a7200ee2e8d43ccf9e8b5f3fed230228dc7598bb620d4fb4c94240373bd2e941be95e06c100534bbda22bdc9f8f5e44d7904d26216b22305a23
7
- data.tar.gz: 4cb27c557bbf3b1217e7df517a726bbae5be4f918a64b73e8873d5852de734787851e6de077afde95eb3d48ad63a9e07158175818a857af75511cd5a99086eab
6
+ metadata.gz: a7bc8c681c646da20f7f67727815ff57cd6696d5c11e63740cbd521e0cc63c793f0ce6b3b0d1f55468996f96ac11b288b6f79aecf4998dbb30168c2908fb4c58
7
+ data.tar.gz: 89f330bb08f69afec9118452fb3547722613707477ddfbaccc4092d9d7e59c2833899292be03cc7ace3f1f8a6a257e68b29a35f1f740635e0aca46ebadb03574
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-monitoring_v1
2
2
 
3
+ ### v0.33.0 (2023-02-05)
4
+
5
+ * Regenerated from discovery document revision 20230130
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.32.0 (2022-11-15)
9
+
10
+ * Regenerated from discovery document revision 20221107
11
+
3
12
  ### v0.31.0 (2022-10-27)
4
13
 
5
14
  * Regenerated from discovery document revision 20221024
@@ -249,6 +249,32 @@ module Google
249
249
  end
250
250
  end
251
251
 
252
+ # The persistent settings for a table's columns.
253
+ class ColumnSettings
254
+ include Google::Apis::Core::Hashable
255
+
256
+ # Required. The id of the column.
257
+ # Corresponds to the JSON property `column`
258
+ # @return [String]
259
+ attr_accessor :column
260
+
261
+ # Required. Whether the column should be visible on page load.
262
+ # Corresponds to the JSON property `visible`
263
+ # @return [Boolean]
264
+ attr_accessor :visible
265
+ alias_method :visible?, :visible
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @column = args[:column] if args.key?(:column)
274
+ @visible = args[:visible] if args.key?(:visible)
275
+ end
276
+ end
277
+
252
278
  # A Google Stackdriver dashboard. Dashboards define the content and layout of
253
279
  # pages in the Stackdriver web application.
254
280
  class Dashboard
@@ -1015,6 +1041,41 @@ module Google
1015
1041
  end
1016
1042
  end
1017
1043
 
1044
+ # QueryExemplarsRequest holds all parameters of the Prometheus upstream API for
1045
+ # querying exemplars.
1046
+ class QueryExemplarsRequest
1047
+ include Google::Apis::Core::Hashable
1048
+
1049
+ # The end time to evaluate the query for. Either floating point UNIX seconds or
1050
+ # RFC3339 formatted timestamp.
1051
+ # Corresponds to the JSON property `end`
1052
+ # @return [String]
1053
+ attr_accessor :end
1054
+
1055
+ # A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/
1056
+ # prometheus/latest/querying/basics/.
1057
+ # Corresponds to the JSON property `query`
1058
+ # @return [String]
1059
+ attr_accessor :query
1060
+
1061
+ # The start time to evaluate the query for. Either floating point UNIX seconds
1062
+ # or RFC3339 formatted timestamp.
1063
+ # Corresponds to the JSON property `start`
1064
+ # @return [String]
1065
+ attr_accessor :start
1066
+
1067
+ def initialize(**args)
1068
+ update!(**args)
1069
+ end
1070
+
1071
+ # Update properties of this object
1072
+ def update!(**args)
1073
+ @end = args[:end] if args.key?(:end)
1074
+ @query = args[:query] if args.key?(:query)
1075
+ @start = args[:start] if args.key?(:start)
1076
+ end
1077
+ end
1078
+
1018
1079
  # QueryInstantRequest holds all parameters of the Prometheus upstream instant
1019
1080
  # query API plus GCM specific parameters.
1020
1081
  class QueryInstantRequest
@@ -1840,6 +1901,11 @@ module Google
1840
1901
  class TimeSeriesTable
1841
1902
  include Google::Apis::Core::Hashable
1842
1903
 
1904
+ # Optional. The list of the persistent column settings for the table.
1905
+ # Corresponds to the JSON property `columnSettings`
1906
+ # @return [Array<Google::Apis::MonitoringV1::ColumnSettings>]
1907
+ attr_accessor :column_settings
1908
+
1843
1909
  # Required. The data displayed in this table.
1844
1910
  # Corresponds to the JSON property `dataSets`
1845
1911
  # @return [Array<Google::Apis::MonitoringV1::TableDataSet>]
@@ -1856,6 +1922,7 @@ module Google
1856
1922
 
1857
1923
  # Update properties of this object
1858
1924
  def update!(**args)
1925
+ @column_settings = args[:column_settings] if args.key?(:column_settings)
1859
1926
  @data_sets = args[:data_sets] if args.key?(:data_sets)
1860
1927
  @metric_visualization = args[:metric_visualization] if args.key?(:metric_visualization)
1861
1928
  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.31.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221024"
25
+ REVISION = "20230130"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class ColumnSettings
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class Dashboard
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -184,6 +190,12 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class QueryExemplarsRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
187
199
  class QueryInstantRequest
188
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
201
 
@@ -384,6 +396,14 @@ module Google
384
396
  end
385
397
  end
386
398
 
399
+ class ColumnSettings
400
+ # @private
401
+ class Representation < Google::Apis::Core::JsonRepresentation
402
+ property :column, as: 'column'
403
+ property :visible, as: 'visible'
404
+ end
405
+ end
406
+
387
407
  class Dashboard
388
408
  # @private
389
409
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -582,6 +602,15 @@ module Google
582
602
  end
583
603
  end
584
604
 
605
+ class QueryExemplarsRequest
606
+ # @private
607
+ class Representation < Google::Apis::Core::JsonRepresentation
608
+ property :end, as: 'end'
609
+ property :query, as: 'query'
610
+ property :start, as: 'start'
611
+ end
612
+ end
613
+
585
614
  class QueryInstantRequest
586
615
  # @private
587
616
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -786,6 +815,8 @@ module Google
786
815
  class TimeSeriesTable
787
816
  # @private
788
817
  class Representation < Google::Apis::Core::JsonRepresentation
818
+ collection :column_settings, as: 'columnSettings', class: Google::Apis::MonitoringV1::ColumnSettings, decorator: Google::Apis::MonitoringV1::ColumnSettings::Representation
819
+
789
820
  collection :data_sets, as: 'dataSets', class: Google::Apis::MonitoringV1::TableDataSet, decorator: Google::Apis::MonitoringV1::TableDataSet::Representation
790
821
 
791
822
  property :metric_visualization, as: 'metricVisualization'
@@ -486,6 +486,45 @@ module Google
486
486
  execute_or_queue_command(command, &block)
487
487
  end
488
488
 
489
+ # Lists exemplars relevant to a given PromQL query,
490
+ # @param [String] name
491
+ # The project on which to execute the request. Data associcated with the project'
492
+ # s workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER.
493
+ # Open source API but used as a request path prefix to distinguish different
494
+ # virtual Prometheus instances of Google Prometheus Engine.
495
+ # @param [String] location
496
+ # Location of the resource information. Has to be "global" now.
497
+ # @param [Google::Apis::MonitoringV1::QueryExemplarsRequest] query_exemplars_request_object
498
+ # @param [String] fields
499
+ # Selector specifying which fields to include in a partial response.
500
+ # @param [String] quota_user
501
+ # Available to use for quota purposes for server-side applications. Can be any
502
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
503
+ # @param [Google::Apis::RequestOptions] options
504
+ # Request-specific options
505
+ #
506
+ # @yield [result, err] Result & error if block supplied
507
+ # @yieldparam result [Google::Apis::MonitoringV1::HttpBody] parsed result object
508
+ # @yieldparam err [StandardError] error object if request failed
509
+ #
510
+ # @return [Google::Apis::MonitoringV1::HttpBody]
511
+ #
512
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
513
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
514
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
515
+ def query_v1_exemplars(name, location, query_exemplars_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
516
+ command = make_simple_command(:post, 'v1/{+name}/location/{location}/prometheus/api/v1/query_exemplars', options)
517
+ command.request_representation = Google::Apis::MonitoringV1::QueryExemplarsRequest::Representation
518
+ command.request_object = query_exemplars_request_object
519
+ command.response_representation = Google::Apis::MonitoringV1::HttpBody::Representation
520
+ command.response_class = Google::Apis::MonitoringV1::HttpBody
521
+ command.params['name'] = name unless name.nil?
522
+ command.params['location'] = location unless location.nil?
523
+ command.query['fields'] = fields unless fields.nil?
524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
525
+ execute_or_queue_command(command, &block)
526
+ end
527
+
489
528
  # Evaluate a PromQL query with start, end time range.
490
529
  # @param [String] name
491
530
  # The project on which to execute the request. Data associcated with the project'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-monitoring_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2023-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.33.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Monitoring API V1