google-apis-monitoring_v3 0.1.0 → 0.2.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: 4a862c398a72f5ca0191ecb52e0c2ae7d008e6c7369d1bd29c74a55e540217c9
4
- data.tar.gz: 07c873b7abddd7c07c7e7a724ff9fde02cca458563fc16ad44d5a57bff6accd3
3
+ metadata.gz: 980b62c61d50e2633183f6b59eafad59e70ca37578e387376c244536db449ff9
4
+ data.tar.gz: b17efef4c23a4c834af9e57ded3611a6c188f3d717aaad2ac89bbd7bdfdee060
5
5
  SHA512:
6
- metadata.gz: 40b95414d1cfa78ed7411c5cd08734e1429389b6588f4c3eeb08b7da289cd7db6c70464c58b2868ee8459b43d4278ea6f3611290d3036b026382cdd2feaf2332
7
- data.tar.gz: 42513a2df6d82907ad8a4a610c748fd514cd111c6f67f1bd8ce710a29615696c4066cf59650b17258a49f9ca487980a818585e5c7fb08a29f3184886e736f621
6
+ metadata.gz: 04b92c826ee496e2308f9d607fcae20dfe8ffcc25bd342d33fd9bacb90bdea7e221a8168cd5e541add47d7dcec2db63c5da7e747d3ba524d5258b4251d6eb45e
7
+ data.tar.gz: 7f764fed47d59f50becd87c7225c9157f00d24c3bd7664bcc636167086cd797cc2bea451c34bdef162c7a733d651770b86abdd2adc6ddd13fd4b8771a1cf1cf4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.2.0 (2021-01-29)
4
+
5
+ * Regenerated from discovery document revision 20210124
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -1592,6 +1592,44 @@ module Google
1592
1592
  end
1593
1593
  end
1594
1594
 
1595
+ # Canonical service scoped to an Istio mesh. Anthos clusters running ASM >= 1.6.
1596
+ # 8 will have their services ingested as this type.
1597
+ class IstioCanonicalService
1598
+ include Google::Apis::Core::Hashable
1599
+
1600
+ # The name of the canonical service underlying this service. Corresponds to the
1601
+ # destination_canonical_service_name metric label in label in Istio metrics (
1602
+ # https://cloud.google.com/monitoring/api/metrics_istio).
1603
+ # Corresponds to the JSON property `canonicalService`
1604
+ # @return [String]
1605
+ attr_accessor :canonical_service
1606
+
1607
+ # The namespace of the canonical service underlying this service. Corresponds to
1608
+ # the destination_canonical_service_namespace metric label in Istio metrics (
1609
+ # https://cloud.google.com/monitoring/api/metrics_istio).
1610
+ # Corresponds to the JSON property `canonicalServiceNamespace`
1611
+ # @return [String]
1612
+ attr_accessor :canonical_service_namespace
1613
+
1614
+ # Identifier for the Istio mesh in which this canonical service is defined.
1615
+ # Corresponds to the mesh_uid metric label in Istio metrics (https://cloud.
1616
+ # google.com/monitoring/api/metrics_istio).
1617
+ # Corresponds to the JSON property `meshUid`
1618
+ # @return [String]
1619
+ attr_accessor :mesh_uid
1620
+
1621
+ def initialize(**args)
1622
+ update!(**args)
1623
+ end
1624
+
1625
+ # Update properties of this object
1626
+ def update!(**args)
1627
+ @canonical_service = args[:canonical_service] if args.key?(:canonical_service)
1628
+ @canonical_service_namespace = args[:canonical_service_namespace] if args.key?(:canonical_service_namespace)
1629
+ @mesh_uid = args[:mesh_uid] if args.key?(:mesh_uid)
1630
+ end
1631
+ end
1632
+
1595
1633
  # A description of a label.
1596
1634
  class LabelDescriptor
1597
1635
  include Google::Apis::Core::Hashable
@@ -2172,9 +2210,10 @@ module Google
2172
2210
  attr_accessor :aggregations
2173
2211
 
2174
2212
  # The amount of time that a time series must fail to report new data to be
2175
- # considered failing. Currently, only values that are a multiple of a minute--e.
2176
- # g. 60, 120, or 300 seconds--are supported. If an invalid value is given, an
2177
- # error will be returned. The Duration.nanos field is ignored.
2213
+ # considered failing. The minimum value of this field is 120 seconds. Larger
2214
+ # values that are a multiple of a minute--for example, 240 or 300 seconds--are
2215
+ # supported. If an invalid value is given, an error will be returned. The
2216
+ # Duration.nanos field is ignored.
2178
2217
  # Corresponds to the JSON property `duration`
2179
2218
  # @return [String]
2180
2219
  attr_accessor :duration
@@ -2279,11 +2318,11 @@ module Google
2279
2318
 
2280
2319
  # The units in which the metric value is reported. It is only applicable if the
2281
2320
  # value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the
2282
- # representation of the stored metric values.Different systems may scale the
2283
- # values to be more easily displayed (so a value of 0.02KBy might be displayed
2284
- # as 20By, and a value of 3523KBy might be displayed as 3.5MBy). However, if the
2285
- # unit is KBy, then the value of the metric is always in thousands of bytes, no
2286
- # matter how it may be displayed..If you want a custom metric to record the
2321
+ # representation of the stored metric values.Different systems might scale the
2322
+ # values to be more easily displayed (so a value of 0.02kBy might be displayed
2323
+ # as 20By, and a value of 3523kBy might be displayed as 3.5MBy). However, if the
2324
+ # unit is kBy, then the value of the metric is always in thousands of bytes, no
2325
+ # matter how it might be displayed.If you want a custom metric to record the
2287
2326
  # exact number of CPU-seconds used by a job, you can create an INT64 CUMULATIVE
2288
2327
  # metric whose unit is s`CPU` (or equivalently 1s`CPU` or just s). If the job
2289
2328
  # uses 12,005 CPU-seconds, then the value is written as 12005.Alternatively, if
@@ -2291,7 +2330,7 @@ module Google
2291
2330
  # a DOUBLE CUMULATIVE metric whose unit is ks`CPU`, and then write the value 12.
2292
2331
  # 005 (which is 12005/1000), or use Kis`CPU` and write 11.723 (which is 12005/
2293
2332
  # 1024).The supported units are a subset of The Unified Code for Units of
2294
- # Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) bit
2333
+ # Measure (https://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) bit
2295
2334
  # bit By byte s second min minute h hour d day 1 dimensionlessPrefixes (PREFIX)
2296
2335
  # k kilo (10^3) M mega (10^6) G giga (10^9) T tera (10^12) P peta (10^15) E exa (
2297
2336
  # 10^18) Z zetta (10^21) Y yotta (10^24) m milli (10^-3) u micro (10^-6) n nano (
@@ -2729,6 +2768,11 @@ module Google
2729
2768
  class NotificationChannel
2730
2769
  include Google::Apis::Core::Hashable
2731
2770
 
2771
+ # Describes a change made to a configuration.
2772
+ # Corresponds to the JSON property `creationRecord`
2773
+ # @return [Google::Apis::MonitoringV3::MutationRecord]
2774
+ attr_accessor :creation_record
2775
+
2732
2776
  # An optional human-readable description of this notification channel. This
2733
2777
  # description may provide additional details, beyond the display name, for the
2734
2778
  # channel. This may not exceed 1024 Unicode characters.
@@ -2762,6 +2806,11 @@ module Google
2762
2806
  # @return [Hash<String,String>]
2763
2807
  attr_accessor :labels
2764
2808
 
2809
+ # Records of the modification of this channel.
2810
+ # Corresponds to the JSON property `mutationRecords`
2811
+ # @return [Array<Google::Apis::MonitoringV3::MutationRecord>]
2812
+ attr_accessor :mutation_records
2813
+
2765
2814
  # The full REST resource name for this channel. The format is: projects/[
2766
2815
  # PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is
2767
2816
  # automatically assigned by the server on creation.
@@ -2807,10 +2856,12 @@ module Google
2807
2856
 
2808
2857
  # Update properties of this object
2809
2858
  def update!(**args)
2859
+ @creation_record = args[:creation_record] if args.key?(:creation_record)
2810
2860
  @description = args[:description] if args.key?(:description)
2811
2861
  @display_name = args[:display_name] if args.key?(:display_name)
2812
2862
  @enabled = args[:enabled] if args.key?(:enabled)
2813
2863
  @labels = args[:labels] if args.key?(:labels)
2864
+ @mutation_records = args[:mutation_records] if args.key?(:mutation_records)
2814
2865
  @name = args[:name] if args.key?(:name)
2815
2866
  @type = args[:type] if args.key?(:type)
2816
2867
  @user_labels = args[:user_labels] if args.key?(:user_labels)
@@ -3254,6 +3305,12 @@ module Google
3254
3305
  # @return [String]
3255
3306
  attr_accessor :display_name
3256
3307
 
3308
+ # Canonical service scoped to an Istio mesh. Anthos clusters running ASM >= 1.6.
3309
+ # 8 will have their services ingested as this type.
3310
+ # Corresponds to the JSON property `istioCanonicalService`
3311
+ # @return [Google::Apis::MonitoringV3::IstioCanonicalService]
3312
+ attr_accessor :istio_canonical_service
3313
+
3257
3314
  # Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
3258
3315
  # will have their services ingested as this type.
3259
3316
  # Corresponds to the JSON property `meshIstio`
@@ -3282,6 +3339,7 @@ module Google
3282
3339
  @cluster_istio = args[:cluster_istio] if args.key?(:cluster_istio)
3283
3340
  @custom = args[:custom] if args.key?(:custom)
3284
3341
  @display_name = args[:display_name] if args.key?(:display_name)
3342
+ @istio_canonical_service = args[:istio_canonical_service] if args.key?(:istio_canonical_service)
3285
3343
  @mesh_istio = args[:mesh_istio] if args.key?(:mesh_istio)
3286
3344
  @name = args[:name] if args.key?(:name)
3287
3345
  @telemetry = args[:telemetry] if args.key?(:telemetry)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MonitoringV3
18
18
  # Version of the google-apis-monitoring_v3 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201213"
25
+ REVISION = "20210124"
26
26
  end
27
27
  end
28
28
  end
@@ -238,6 +238,12 @@ module Google
238
238
  include Google::Apis::Core::JsonObjectSupport
239
239
  end
240
240
 
241
+ class IstioCanonicalService
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
241
247
  class LabelDescriptor
242
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
249
 
@@ -972,6 +978,15 @@ module Google
972
978
  end
973
979
  end
974
980
 
981
+ class IstioCanonicalService
982
+ # @private
983
+ class Representation < Google::Apis::Core::JsonRepresentation
984
+ property :canonical_service, as: 'canonicalService'
985
+ property :canonical_service_namespace, as: 'canonicalServiceNamespace'
986
+ property :mesh_uid, as: 'meshUid'
987
+ end
988
+ end
989
+
975
990
  class LabelDescriptor
976
991
  # @private
977
992
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1254,10 +1269,14 @@ module Google
1254
1269
  class NotificationChannel
1255
1270
  # @private
1256
1271
  class Representation < Google::Apis::Core::JsonRepresentation
1272
+ property :creation_record, as: 'creationRecord', class: Google::Apis::MonitoringV3::MutationRecord, decorator: Google::Apis::MonitoringV3::MutationRecord::Representation
1273
+
1257
1274
  property :description, as: 'description'
1258
1275
  property :display_name, as: 'displayName'
1259
1276
  property :enabled, as: 'enabled'
1260
1277
  hash :labels, as: 'labels'
1278
+ collection :mutation_records, as: 'mutationRecords', class: Google::Apis::MonitoringV3::MutationRecord, decorator: Google::Apis::MonitoringV3::MutationRecord::Representation
1279
+
1261
1280
  property :name, as: 'name'
1262
1281
  property :type, as: 'type'
1263
1282
  hash :user_labels, as: 'userLabels'
@@ -1383,6 +1402,8 @@ module Google
1383
1402
  property :custom, as: 'custom', class: Google::Apis::MonitoringV3::Custom, decorator: Google::Apis::MonitoringV3::Custom::Representation
1384
1403
 
1385
1404
  property :display_name, as: 'displayName'
1405
+ property :istio_canonical_service, as: 'istioCanonicalService', class: Google::Apis::MonitoringV3::IstioCanonicalService, decorator: Google::Apis::MonitoringV3::IstioCanonicalService::Representation
1406
+
1386
1407
  property :mesh_istio, as: 'meshIstio', class: Google::Apis::MonitoringV3::MeshIstio, decorator: Google::Apis::MonitoringV3::MeshIstio::Representation
1387
1408
 
1388
1409
  property :name, as: 'name'
@@ -53,6 +53,334 @@ module Google
53
53
  @batch_path = 'batch'
54
54
  end
55
55
 
56
+ # Lists time series that match a filter. This method does not require a
57
+ # Workspace.
58
+ # @param [String] name
59
+ # Required. The project, organization or folder on which to execute the request.
60
+ # The format is: projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID]
61
+ # folders/[FOLDER_ID]
62
+ # @param [String] aggregation_alignment_period
63
+ # The alignment_period specifies a time interval, in seconds, that is used to
64
+ # divide the data in all the time series into consistent blocks of time. This
65
+ # will be done before the per-series aligner can be applied to the data.The
66
+ # value must be at least 60 seconds. If a per-series aligner other than
67
+ # ALIGN_NONE is specified, this field is required or an error is returned. If no
68
+ # per-series aligner is specified, or the aligner ALIGN_NONE is specified, then
69
+ # this field is ignored.The maximum value of the alignment_period is 104 weeks (
70
+ # 2 years) for charts, and 90,000 seconds (25 hours) for alerting policies.
71
+ # @param [String] aggregation_cross_series_reducer
72
+ # The reduction operation to be used to combine time series into a single time
73
+ # series, where the value of each data point in the resulting series is a
74
+ # function of all the already aligned values in the input time series.Not all
75
+ # reducer operations can be applied to all time series. The valid choices depend
76
+ # on the metric_kind and the value_type of the original time series. Reduction
77
+ # can yield a time series with a different metric_kind or value_type than the
78
+ # input time series.Time series data must first be aligned (see
79
+ # per_series_aligner) in order to perform cross-time series reduction. If
80
+ # cross_series_reducer is specified, then per_series_aligner must be specified,
81
+ # and must not be ALIGN_NONE. An alignment_period must also be specified;
82
+ # otherwise, an error is returned.
83
+ # @param [Array<String>, String] aggregation_group_by_fields
84
+ # The set of fields to preserve when cross_series_reducer is specified. The
85
+ # group_by_fields determine how the time series are partitioned into subsets
86
+ # prior to applying the aggregation operation. Each subset contains time series
87
+ # that have the same value for each of the grouping fields. Each individual time
88
+ # series is a member of exactly one subset. The cross_series_reducer is applied
89
+ # to each subset of time series. It is not possible to reduce across different
90
+ # resource types, so this field implicitly contains resource.type. Fields not
91
+ # specified in group_by_fields are aggregated away. If group_by_fields is not
92
+ # specified and all the time series have the same resource type, then the time
93
+ # series are aggregated into a single output time series. If
94
+ # cross_series_reducer is not defined, this field is ignored.
95
+ # @param [String] aggregation_per_series_aligner
96
+ # An Aligner describes how to bring the data points in a single time series into
97
+ # temporal alignment. Except for ALIGN_NONE, all alignments cause all the data
98
+ # points in an alignment_period to be mathematically grouped together, resulting
99
+ # in a single data point for each alignment_period with end timestamp at the end
100
+ # of the period.Not all alignment operations may be applied to all time series.
101
+ # The valid choices depend on the metric_kind and value_type of the original
102
+ # time series. Alignment can change the metric_kind or the value_type of the
103
+ # time series.Time series data must be aligned in order to perform cross-time
104
+ # series reduction. If cross_series_reducer is specified, then
105
+ # per_series_aligner must be specified and not equal to ALIGN_NONE and
106
+ # alignment_period must be specified; otherwise, an error is returned.
107
+ # @param [String] filter
108
+ # Required. A monitoring filter (https://cloud.google.com/monitoring/api/v3/
109
+ # filters) that specifies which time series should be returned. The filter must
110
+ # specify a single metric type, and can additionally specify metric labels and
111
+ # other information. For example: metric.type = "compute.googleapis.com/instance/
112
+ # cpu/usage_time" AND metric.labels.instance_name = "my-instance-name"
113
+ # @param [String] interval_end_time
114
+ # Required. The end of the time interval.
115
+ # @param [String] interval_start_time
116
+ # Optional. The beginning of the time interval. The default value for the start
117
+ # time is the end time. The start time must not be later than the end time.
118
+ # @param [String] order_by
119
+ # Unsupported: must be left blank. The points in each time series are currently
120
+ # returned in reverse time order (most recent to oldest).
121
+ # @param [Fixnum] page_size
122
+ # A positive number that is the maximum number of results to return. If
123
+ # page_size is empty or more than 100,000 results, the effective page_size is
124
+ # 100,000 results. If view is set to FULL, this is the maximum number of Points
125
+ # returned. If view is set to HEADERS, this is the maximum number of TimeSeries
126
+ # returned.
127
+ # @param [String] page_token
128
+ # If this field is not empty then it must contain the nextPageToken value
129
+ # returned by a previous call to this method. Using this field causes the method
130
+ # to return additional results from the previous method call.
131
+ # @param [String] secondary_aggregation_alignment_period
132
+ # The alignment_period specifies a time interval, in seconds, that is used to
133
+ # divide the data in all the time series into consistent blocks of time. This
134
+ # will be done before the per-series aligner can be applied to the data.The
135
+ # value must be at least 60 seconds. If a per-series aligner other than
136
+ # ALIGN_NONE is specified, this field is required or an error is returned. If no
137
+ # per-series aligner is specified, or the aligner ALIGN_NONE is specified, then
138
+ # this field is ignored.The maximum value of the alignment_period is 104 weeks (
139
+ # 2 years) for charts, and 90,000 seconds (25 hours) for alerting policies.
140
+ # @param [String] secondary_aggregation_cross_series_reducer
141
+ # The reduction operation to be used to combine time series into a single time
142
+ # series, where the value of each data point in the resulting series is a
143
+ # function of all the already aligned values in the input time series.Not all
144
+ # reducer operations can be applied to all time series. The valid choices depend
145
+ # on the metric_kind and the value_type of the original time series. Reduction
146
+ # can yield a time series with a different metric_kind or value_type than the
147
+ # input time series.Time series data must first be aligned (see
148
+ # per_series_aligner) in order to perform cross-time series reduction. If
149
+ # cross_series_reducer is specified, then per_series_aligner must be specified,
150
+ # and must not be ALIGN_NONE. An alignment_period must also be specified;
151
+ # otherwise, an error is returned.
152
+ # @param [Array<String>, String] secondary_aggregation_group_by_fields
153
+ # The set of fields to preserve when cross_series_reducer is specified. The
154
+ # group_by_fields determine how the time series are partitioned into subsets
155
+ # prior to applying the aggregation operation. Each subset contains time series
156
+ # that have the same value for each of the grouping fields. Each individual time
157
+ # series is a member of exactly one subset. The cross_series_reducer is applied
158
+ # to each subset of time series. It is not possible to reduce across different
159
+ # resource types, so this field implicitly contains resource.type. Fields not
160
+ # specified in group_by_fields are aggregated away. If group_by_fields is not
161
+ # specified and all the time series have the same resource type, then the time
162
+ # series are aggregated into a single output time series. If
163
+ # cross_series_reducer is not defined, this field is ignored.
164
+ # @param [String] secondary_aggregation_per_series_aligner
165
+ # An Aligner describes how to bring the data points in a single time series into
166
+ # temporal alignment. Except for ALIGN_NONE, all alignments cause all the data
167
+ # points in an alignment_period to be mathematically grouped together, resulting
168
+ # in a single data point for each alignment_period with end timestamp at the end
169
+ # of the period.Not all alignment operations may be applied to all time series.
170
+ # The valid choices depend on the metric_kind and value_type of the original
171
+ # time series. Alignment can change the metric_kind or the value_type of the
172
+ # time series.Time series data must be aligned in order to perform cross-time
173
+ # series reduction. If cross_series_reducer is specified, then
174
+ # per_series_aligner must be specified and not equal to ALIGN_NONE and
175
+ # alignment_period must be specified; otherwise, an error is returned.
176
+ # @param [String] view
177
+ # Required. Specifies which information is returned about the time series.
178
+ # @param [String] fields
179
+ # Selector specifying which fields to include in a partial response.
180
+ # @param [String] quota_user
181
+ # Available to use for quota purposes for server-side applications. Can be any
182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
183
+ # @param [Google::Apis::RequestOptions] options
184
+ # Request-specific options
185
+ #
186
+ # @yield [result, err] Result & error if block supplied
187
+ # @yieldparam result [Google::Apis::MonitoringV3::ListTimeSeriesResponse] parsed result object
188
+ # @yieldparam err [StandardError] error object if request failed
189
+ #
190
+ # @return [Google::Apis::MonitoringV3::ListTimeSeriesResponse]
191
+ #
192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
195
+ def list_folder_time_series(name, aggregation_alignment_period: nil, aggregation_cross_series_reducer: nil, aggregation_group_by_fields: nil, aggregation_per_series_aligner: nil, filter: nil, interval_end_time: nil, interval_start_time: nil, order_by: nil, page_size: nil, page_token: nil, secondary_aggregation_alignment_period: nil, secondary_aggregation_cross_series_reducer: nil, secondary_aggregation_group_by_fields: nil, secondary_aggregation_per_series_aligner: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
196
+ command = make_simple_command(:get, 'v3/{+name}/timeSeries', options)
197
+ command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation
198
+ command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse
199
+ command.params['name'] = name unless name.nil?
200
+ command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
201
+ command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil?
202
+ command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
203
+ command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil?
204
+ command.query['filter'] = filter unless filter.nil?
205
+ command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
206
+ command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
207
+ command.query['orderBy'] = order_by unless order_by.nil?
208
+ command.query['pageSize'] = page_size unless page_size.nil?
209
+ command.query['pageToken'] = page_token unless page_token.nil?
210
+ command.query['secondaryAggregation.alignmentPeriod'] = secondary_aggregation_alignment_period unless secondary_aggregation_alignment_period.nil?
211
+ command.query['secondaryAggregation.crossSeriesReducer'] = secondary_aggregation_cross_series_reducer unless secondary_aggregation_cross_series_reducer.nil?
212
+ command.query['secondaryAggregation.groupByFields'] = secondary_aggregation_group_by_fields unless secondary_aggregation_group_by_fields.nil?
213
+ command.query['secondaryAggregation.perSeriesAligner'] = secondary_aggregation_per_series_aligner unless secondary_aggregation_per_series_aligner.nil?
214
+ command.query['view'] = view unless view.nil?
215
+ command.query['fields'] = fields unless fields.nil?
216
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
217
+ execute_or_queue_command(command, &block)
218
+ end
219
+
220
+ # Lists time series that match a filter. This method does not require a
221
+ # Workspace.
222
+ # @param [String] name
223
+ # Required. The project, organization or folder on which to execute the request.
224
+ # The format is: projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID]
225
+ # folders/[FOLDER_ID]
226
+ # @param [String] aggregation_alignment_period
227
+ # The alignment_period specifies a time interval, in seconds, that is used to
228
+ # divide the data in all the time series into consistent blocks of time. This
229
+ # will be done before the per-series aligner can be applied to the data.The
230
+ # value must be at least 60 seconds. If a per-series aligner other than
231
+ # ALIGN_NONE is specified, this field is required or an error is returned. If no
232
+ # per-series aligner is specified, or the aligner ALIGN_NONE is specified, then
233
+ # this field is ignored.The maximum value of the alignment_period is 104 weeks (
234
+ # 2 years) for charts, and 90,000 seconds (25 hours) for alerting policies.
235
+ # @param [String] aggregation_cross_series_reducer
236
+ # The reduction operation to be used to combine time series into a single time
237
+ # series, where the value of each data point in the resulting series is a
238
+ # function of all the already aligned values in the input time series.Not all
239
+ # reducer operations can be applied to all time series. The valid choices depend
240
+ # on the metric_kind and the value_type of the original time series. Reduction
241
+ # can yield a time series with a different metric_kind or value_type than the
242
+ # input time series.Time series data must first be aligned (see
243
+ # per_series_aligner) in order to perform cross-time series reduction. If
244
+ # cross_series_reducer is specified, then per_series_aligner must be specified,
245
+ # and must not be ALIGN_NONE. An alignment_period must also be specified;
246
+ # otherwise, an error is returned.
247
+ # @param [Array<String>, String] aggregation_group_by_fields
248
+ # The set of fields to preserve when cross_series_reducer is specified. The
249
+ # group_by_fields determine how the time series are partitioned into subsets
250
+ # prior to applying the aggregation operation. Each subset contains time series
251
+ # that have the same value for each of the grouping fields. Each individual time
252
+ # series is a member of exactly one subset. The cross_series_reducer is applied
253
+ # to each subset of time series. It is not possible to reduce across different
254
+ # resource types, so this field implicitly contains resource.type. Fields not
255
+ # specified in group_by_fields are aggregated away. If group_by_fields is not
256
+ # specified and all the time series have the same resource type, then the time
257
+ # series are aggregated into a single output time series. If
258
+ # cross_series_reducer is not defined, this field is ignored.
259
+ # @param [String] aggregation_per_series_aligner
260
+ # An Aligner describes how to bring the data points in a single time series into
261
+ # temporal alignment. Except for ALIGN_NONE, all alignments cause all the data
262
+ # points in an alignment_period to be mathematically grouped together, resulting
263
+ # in a single data point for each alignment_period with end timestamp at the end
264
+ # of the period.Not all alignment operations may be applied to all time series.
265
+ # The valid choices depend on the metric_kind and value_type of the original
266
+ # time series. Alignment can change the metric_kind or the value_type of the
267
+ # time series.Time series data must be aligned in order to perform cross-time
268
+ # series reduction. If cross_series_reducer is specified, then
269
+ # per_series_aligner must be specified and not equal to ALIGN_NONE and
270
+ # alignment_period must be specified; otherwise, an error is returned.
271
+ # @param [String] filter
272
+ # Required. A monitoring filter (https://cloud.google.com/monitoring/api/v3/
273
+ # filters) that specifies which time series should be returned. The filter must
274
+ # specify a single metric type, and can additionally specify metric labels and
275
+ # other information. For example: metric.type = "compute.googleapis.com/instance/
276
+ # cpu/usage_time" AND metric.labels.instance_name = "my-instance-name"
277
+ # @param [String] interval_end_time
278
+ # Required. The end of the time interval.
279
+ # @param [String] interval_start_time
280
+ # Optional. The beginning of the time interval. The default value for the start
281
+ # time is the end time. The start time must not be later than the end time.
282
+ # @param [String] order_by
283
+ # Unsupported: must be left blank. The points in each time series are currently
284
+ # returned in reverse time order (most recent to oldest).
285
+ # @param [Fixnum] page_size
286
+ # A positive number that is the maximum number of results to return. If
287
+ # page_size is empty or more than 100,000 results, the effective page_size is
288
+ # 100,000 results. If view is set to FULL, this is the maximum number of Points
289
+ # returned. If view is set to HEADERS, this is the maximum number of TimeSeries
290
+ # returned.
291
+ # @param [String] page_token
292
+ # If this field is not empty then it must contain the nextPageToken value
293
+ # returned by a previous call to this method. Using this field causes the method
294
+ # to return additional results from the previous method call.
295
+ # @param [String] secondary_aggregation_alignment_period
296
+ # The alignment_period specifies a time interval, in seconds, that is used to
297
+ # divide the data in all the time series into consistent blocks of time. This
298
+ # will be done before the per-series aligner can be applied to the data.The
299
+ # value must be at least 60 seconds. If a per-series aligner other than
300
+ # ALIGN_NONE is specified, this field is required or an error is returned. If no
301
+ # per-series aligner is specified, or the aligner ALIGN_NONE is specified, then
302
+ # this field is ignored.The maximum value of the alignment_period is 104 weeks (
303
+ # 2 years) for charts, and 90,000 seconds (25 hours) for alerting policies.
304
+ # @param [String] secondary_aggregation_cross_series_reducer
305
+ # The reduction operation to be used to combine time series into a single time
306
+ # series, where the value of each data point in the resulting series is a
307
+ # function of all the already aligned values in the input time series.Not all
308
+ # reducer operations can be applied to all time series. The valid choices depend
309
+ # on the metric_kind and the value_type of the original time series. Reduction
310
+ # can yield a time series with a different metric_kind or value_type than the
311
+ # input time series.Time series data must first be aligned (see
312
+ # per_series_aligner) in order to perform cross-time series reduction. If
313
+ # cross_series_reducer is specified, then per_series_aligner must be specified,
314
+ # and must not be ALIGN_NONE. An alignment_period must also be specified;
315
+ # otherwise, an error is returned.
316
+ # @param [Array<String>, String] secondary_aggregation_group_by_fields
317
+ # The set of fields to preserve when cross_series_reducer is specified. The
318
+ # group_by_fields determine how the time series are partitioned into subsets
319
+ # prior to applying the aggregation operation. Each subset contains time series
320
+ # that have the same value for each of the grouping fields. Each individual time
321
+ # series is a member of exactly one subset. The cross_series_reducer is applied
322
+ # to each subset of time series. It is not possible to reduce across different
323
+ # resource types, so this field implicitly contains resource.type. Fields not
324
+ # specified in group_by_fields are aggregated away. If group_by_fields is not
325
+ # specified and all the time series have the same resource type, then the time
326
+ # series are aggregated into a single output time series. If
327
+ # cross_series_reducer is not defined, this field is ignored.
328
+ # @param [String] secondary_aggregation_per_series_aligner
329
+ # An Aligner describes how to bring the data points in a single time series into
330
+ # temporal alignment. Except for ALIGN_NONE, all alignments cause all the data
331
+ # points in an alignment_period to be mathematically grouped together, resulting
332
+ # in a single data point for each alignment_period with end timestamp at the end
333
+ # of the period.Not all alignment operations may be applied to all time series.
334
+ # The valid choices depend on the metric_kind and value_type of the original
335
+ # time series. Alignment can change the metric_kind or the value_type of the
336
+ # time series.Time series data must be aligned in order to perform cross-time
337
+ # series reduction. If cross_series_reducer is specified, then
338
+ # per_series_aligner must be specified and not equal to ALIGN_NONE and
339
+ # alignment_period must be specified; otherwise, an error is returned.
340
+ # @param [String] view
341
+ # Required. Specifies which information is returned about the time series.
342
+ # @param [String] fields
343
+ # Selector specifying which fields to include in a partial response.
344
+ # @param [String] quota_user
345
+ # Available to use for quota purposes for server-side applications. Can be any
346
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
347
+ # @param [Google::Apis::RequestOptions] options
348
+ # Request-specific options
349
+ #
350
+ # @yield [result, err] Result & error if block supplied
351
+ # @yieldparam result [Google::Apis::MonitoringV3::ListTimeSeriesResponse] parsed result object
352
+ # @yieldparam err [StandardError] error object if request failed
353
+ #
354
+ # @return [Google::Apis::MonitoringV3::ListTimeSeriesResponse]
355
+ #
356
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
357
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
358
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
359
+ def list_organization_time_series(name, aggregation_alignment_period: nil, aggregation_cross_series_reducer: nil, aggregation_group_by_fields: nil, aggregation_per_series_aligner: nil, filter: nil, interval_end_time: nil, interval_start_time: nil, order_by: nil, page_size: nil, page_token: nil, secondary_aggregation_alignment_period: nil, secondary_aggregation_cross_series_reducer: nil, secondary_aggregation_group_by_fields: nil, secondary_aggregation_per_series_aligner: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
360
+ command = make_simple_command(:get, 'v3/{+name}/timeSeries', options)
361
+ command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation
362
+ command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse
363
+ command.params['name'] = name unless name.nil?
364
+ command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
365
+ command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil?
366
+ command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
367
+ command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil?
368
+ command.query['filter'] = filter unless filter.nil?
369
+ command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
370
+ command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
371
+ command.query['orderBy'] = order_by unless order_by.nil?
372
+ command.query['pageSize'] = page_size unless page_size.nil?
373
+ command.query['pageToken'] = page_token unless page_token.nil?
374
+ command.query['secondaryAggregation.alignmentPeriod'] = secondary_aggregation_alignment_period unless secondary_aggregation_alignment_period.nil?
375
+ command.query['secondaryAggregation.crossSeriesReducer'] = secondary_aggregation_cross_series_reducer unless secondary_aggregation_cross_series_reducer.nil?
376
+ command.query['secondaryAggregation.groupByFields'] = secondary_aggregation_group_by_fields unless secondary_aggregation_group_by_fields.nil?
377
+ command.query['secondaryAggregation.perSeriesAligner'] = secondary_aggregation_per_series_aligner unless secondary_aggregation_per_series_aligner.nil?
378
+ command.query['view'] = view unless view.nil?
379
+ command.query['fields'] = fields unless fields.nil?
380
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
381
+ execute_or_queue_command(command, &block)
382
+ end
383
+
56
384
  # Creates a new alerting policy.
57
385
  # @param [String] name
58
386
  # Required. The project in which to create the alerting policy. The format is:
@@ -1222,8 +1550,9 @@ module Google
1222
1550
  # Lists time series that match a filter. This method does not require a
1223
1551
  # Workspace.
1224
1552
  # @param [String] name
1225
- # Required. The project on which to execute the request. The format is: projects/
1226
- # [PROJECT_ID_OR_NUMBER]
1553
+ # Required. The project, organization or folder on which to execute the request.
1554
+ # The format is: projects/[PROJECT_ID_OR_NUMBER] organizations/[ORGANIZATION_ID]
1555
+ # folders/[FOLDER_ID]
1227
1556
  # @param [String] aggregation_alignment_period
1228
1557
  # The alignment_period specifies a time interval, in seconds, that is used to
1229
1558
  # divide the data in all the time series into consistent blocks of time. This
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-monitoring_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Monitoring API V3