google-apis-monitoring_v3 0.12.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71e791f98efef4018204a87d1c08d0a6d689a17590a35e5717b88fd77f35c5b0
4
- data.tar.gz: 7bdbf1e4bffe8f25d700ba61e60c07e432f49a12a384525f73186b44f2204ba3
3
+ metadata.gz: 1894e4abb31067c7ff848fb85c2d25ffa2cecbf30828e30ae67fd47728414a71
4
+ data.tar.gz: e4e8ad9ddcfe789afd4fac1f319b509c20848cd197796f60f24b925eb41258dc
5
5
  SHA512:
6
- metadata.gz: 5291ea8fa65b91bd4262580afee2a5d640a277c6d260b8feb68deb6b5c0496458f85507efee6448a55559c131df57df914763e83ec230b5848d8b1f3c24edf60
7
- data.tar.gz: c54cf3a84ed5d6c7516cdd021af34e493dbca405095a70b1a64143f70c9b625c7ec4a897db9d075e3e29b6b99b4362e0e0247798b35de21ac4a63a3918055446
6
+ metadata.gz: 266b4f4cfcbb067a5274757a7a69f0fe5b5e812bb4ff25f4ef17f08646c0e8992751d3299832bad1189b0cfd764ea0d5579a0af3ccd9c37a9aa11e9b4ccad2a2
7
+ data.tar.gz: d319371c4383c8f3a448ba9111897934fc26da5c2e1267ee37461910ea151dbdd3b447d47cad1e93c5e1806dbec9cc66b84b09f13677ef7e033e606481eb7241
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.16.0 (2021-10-22)
4
+
5
+ * Regenerated from discovery document revision 20211017
6
+ * Unspecified changes
7
+
8
+ ### v0.15.0 (2021-10-02)
9
+
10
+ * Regenerated from discovery document revision 20210926
11
+
12
+ ### v0.14.0 (2021-09-03)
13
+
14
+ * Regenerated from discovery document revision 20210830
15
+
16
+ ### v0.13.0 (2021-07-27)
17
+
18
+ * Regenerated from discovery document revision 20210720
19
+
3
20
  ### v0.12.0 (2021-07-16)
4
21
 
5
22
  * Regenerated from discovery document revision 20210712
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
 
@@ -241,6 +241,12 @@ module Google
241
241
  class AlertStrategy
242
242
  include Google::Apis::Core::Hashable
243
243
 
244
+ # If an alert policy that was active has no data for this long, any open
245
+ # incidents will close
246
+ # Corresponds to the JSON property `autoClose`
247
+ # @return [String]
248
+ attr_accessor :auto_close
249
+
244
250
  # Control over the rate of notifications sent to this alert policy's
245
251
  # notification channels.
246
252
  # Corresponds to the JSON property `notificationRateLimit`
@@ -253,6 +259,7 @@ module Google
253
259
 
254
260
  # Update properties of this object
255
261
  def update!(**args)
262
+ @auto_close = args[:auto_close] if args.key?(:auto_close)
256
263
  @notification_rate_limit = args[:notification_rate_limit] if args.key?(:notification_rate_limit)
257
264
  end
258
265
  end
@@ -995,8 +1002,8 @@ module Google
995
1002
  # A DistributionCut defines a TimeSeries and thresholds used for measuring good
996
1003
  # service and total service. The TimeSeries must have ValueType = DISTRIBUTION
997
1004
  # and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service
998
- # will be the count of values x in the Distribution such that range.min <= x <
999
- # range.max.
1005
+ # will be the estimated count of values in the Distribution that fall within the
1006
+ # specified min and max.
1000
1007
  class DistributionCut
1001
1008
  include Google::Apis::Core::Hashable
1002
1009
 
@@ -1007,9 +1014,7 @@ module Google
1007
1014
  # @return [String]
1008
1015
  attr_accessor :distribution_filter
1009
1016
 
1010
- # Range of numerical values, inclusive of min and exclusive of max. If the open
1011
- # range "< range.max" is desired, set range.min = -infinity. If the open range ">
1012
- # = range.min" is desired, set range.max = infinity.
1017
+ # Range of numerical values within min and max.
1013
1018
  # Corresponds to the JSON property `range`
1014
1019
  # @return [Google::Apis::MonitoringV3::GoogleMonitoringV3Range]
1015
1020
  attr_accessor :range
@@ -1365,9 +1370,7 @@ module Google
1365
1370
  end
1366
1371
  end
1367
1372
 
1368
- # Range of numerical values, inclusive of min and exclusive of max. If the open
1369
- # range "< range.max" is desired, set range.min = -infinity. If the open range ">
1370
- # = range.min" is desired, set range.max = infinity.
1373
+ # Range of numerical values within min and max.
1371
1374
  class GoogleMonitoringV3Range
1372
1375
  include Google::Apis::Core::Hashable
1373
1376
 
@@ -2169,8 +2172,9 @@ module Google
2169
2172
  class LogMatch
2170
2173
  include Google::Apis::Core::Hashable
2171
2174
 
2172
- # Required. A logs-based filter. See Advanced Logs Queries for how this filter
2173
- # should be constructed.
2175
+ # Required. A logs-based filter. See Advanced Logs Queries (https://cloud.google.
2176
+ # com/logging/docs/view/advanced-queries) for how this filter should be
2177
+ # constructed.
2174
2178
  # Corresponds to the JSON property `filter`
2175
2179
  # @return [String]
2176
2180
  attr_accessor :filter
@@ -2181,7 +2185,9 @@ module Google
2181
2185
  # filter. Each combination of extracted values is treated as a separate rule for
2182
2186
  # the purposes of triggering notifications. Label keys and corresponding values
2183
2187
  # can be used in notifications generated by this condition.Please see the
2184
- # documentation on logs-based metric valueExtractors for syntax and examples.
2188
+ # documentation on logs-based metric valueExtractors (https://cloud.google.com/
2189
+ # logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.
2190
+ # value_extractor) for syntax and examples.
2185
2191
  # Corresponds to the JSON property `labelExtractors`
2186
2192
  # @return [Hash<String,String>]
2187
2193
  attr_accessor :label_extractors
@@ -2270,7 +2276,7 @@ module Google
2270
2276
  # Specifies the alignment of data points in individual time series as well as
2271
2277
  # how to combine the retrieved time series together (such as when aggregating
2272
2278
  # multiple streams on each resource to a single stream for each resource or when
2273
- # aggregating streams across all members of a group of resrouces). Multiple
2279
+ # aggregating streams across all members of a group of resources). Multiple
2274
2280
  # aggregations are applied in the order specified.This field is similar to the
2275
2281
  # one in the ListTimeSeries request (https://cloud.google.com/monitoring/api/
2276
2282
  # ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the
@@ -2496,14 +2502,12 @@ module Google
2496
2502
  end
2497
2503
 
2498
2504
  # A MetricRange is used when each window is good when the value x of a single
2499
- # TimeSeries satisfies range.min <= x < range.max. The provided TimeSeries must
2505
+ # TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must
2500
2506
  # have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
2501
2507
  class MetricRange
2502
2508
  include Google::Apis::Core::Hashable
2503
2509
 
2504
- # Range of numerical values, inclusive of min and exclusive of max. If the open
2505
- # range "< range.max" is desired, set range.min = -infinity. If the open range ">
2506
- # = range.min" is desired, set range.max = infinity.
2510
+ # Range of numerical values within min and max.
2507
2511
  # Corresponds to the JSON property `range`
2508
2512
  # @return [Google::Apis::MonitoringV3::GoogleMonitoringV3Range]
2509
2513
  attr_accessor :range
@@ -2532,7 +2536,7 @@ module Google
2532
2536
  # Specifies the alignment of data points in individual time series as well as
2533
2537
  # how to combine the retrieved time series together (such as when aggregating
2534
2538
  # multiple streams on each resource to a single stream for each resource or when
2535
- # aggregating streams across all members of a group of resrouces). Multiple
2539
+ # aggregating streams across all members of a group of resources). Multiple
2536
2540
  # aggregations are applied in the order specified.This field is similar to the
2537
2541
  # one in the ListTimeSeries request (https://cloud.google.com/monitoring/api/
2538
2542
  # ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the
@@ -2711,7 +2715,10 @@ module Google
2711
2715
  attr_accessor :name
2712
2716
 
2713
2717
  # Required. The monitored resource type. For example, the type "
2714
- # cloudsql_database" represents databases in Google Cloud SQL.
2718
+ # cloudsql_database" represents databases in Google Cloud SQL. For a list of
2719
+ # types, see Monitoring resource types (https://cloud.google.com/monitoring/api/
2720
+ # resources) and Logging resource types (https://cloud.google.com/logging/docs/
2721
+ # api/v2/resource-list).
2715
2722
  # Corresponds to the JSON property `type`
2716
2723
  # @return [String]
2717
2724
  attr_accessor :type
@@ -2978,6 +2985,12 @@ module Google
2978
2985
  # @return [String]
2979
2986
  attr_accessor :name
2980
2987
 
2988
+ # The tiers that support this notification channel; the project service tier
2989
+ # must be one of the supported_tiers.
2990
+ # Corresponds to the JSON property `supportedTiers`
2991
+ # @return [Array<String>]
2992
+ attr_accessor :supported_tiers
2993
+
2981
2994
  # The type of notification channel, such as "email" and "sms". To view the full
2982
2995
  # list of channels, see Channel descriptors (https://cloud.google.com/monitoring/
2983
2996
  # alerts/using-channels-api#ncd). Notification channel types are globally unique.
@@ -2996,6 +3009,7 @@ module Google
2996
3009
  @labels = args[:labels] if args.key?(:labels)
2997
3010
  @launch_stage = args[:launch_stage] if args.key?(:launch_stage)
2998
3011
  @name = args[:name] if args.key?(:name)
3012
+ @supported_tiers = args[:supported_tiers] if args.key?(:supported_tiers)
2999
3013
  @type = args[:type] if args.key?(:type)
3000
3014
  end
3001
3015
  end
@@ -3141,7 +3155,7 @@ module Google
3141
3155
  # specify a non-zero interval, with subsequent points specifying contiguous and
3142
3156
  # non-overlapping intervals. For DELTA metrics, the start time of the next
3143
3157
  # interval must be at least a millisecond after the end time of the previous
3144
- # interval. For CUMULATIVE metrics, the start time and end time must specify a a
3158
+ # interval. For CUMULATIVE metrics, the start time and end time must specify a
3145
3159
  # non-zero interval, with subsequent points specifying the same start time and
3146
3160
  # increasing end times, until an event resets the cumulative value to zero and
3147
3161
  # sets a new start time for the following points. The new start time must be at
@@ -3193,7 +3207,7 @@ module Google
3193
3207
  # specify a non-zero interval, with subsequent points specifying contiguous and
3194
3208
  # non-overlapping intervals. For DELTA metrics, the start time of the next
3195
3209
  # interval must be at least a millisecond after the end time of the previous
3196
- # interval. For CUMULATIVE metrics, the start time and end time must specify a a
3210
+ # interval. For CUMULATIVE metrics, the start time and end time must specify a
3197
3211
  # non-zero interval, with subsequent points specifying the same start time and
3198
3212
  # increasing end times, until an event resets the cumulative value to zero and
3199
3213
  # sets a new start time for the following points. The new start time must be at
@@ -3330,8 +3344,8 @@ module Google
3330
3344
  # A DistributionCut defines a TimeSeries and thresholds used for measuring good
3331
3345
  # service and total service. The TimeSeries must have ValueType = DISTRIBUTION
3332
3346
  # and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service
3333
- # will be the count of values x in the Distribution such that range.min <= x <
3334
- # range.max.
3347
+ # will be the estimated count of values in the Distribution that fall within the
3348
+ # specified min and max.
3335
3349
  # Corresponds to the JSON property `distributionCut`
3336
3350
  # @return [Google::Apis::MonitoringV3::DistributionCut]
3337
3351
  attr_accessor :distribution_cut
@@ -3755,7 +3769,7 @@ module Google
3755
3769
  # specify a non-zero interval, with subsequent points specifying contiguous and
3756
3770
  # non-overlapping intervals. For DELTA metrics, the start time of the next
3757
3771
  # interval must be at least a millisecond after the end time of the previous
3758
- # interval. For CUMULATIVE metrics, the start time and end time must specify a a
3772
+ # interval. For CUMULATIVE metrics, the start time and end time must specify a
3759
3773
  # non-zero interval, with subsequent points specifying the same start time and
3760
3774
  # increasing end times, until an event resets the cumulative value to zero and
3761
3775
  # sets a new start time for the following points. The new start time must be at
@@ -4351,14 +4365,14 @@ module Google
4351
4365
  attr_accessor :good_total_ratio_threshold
4352
4366
 
4353
4367
  # A MetricRange is used when each window is good when the value x of a single
4354
- # TimeSeries satisfies range.min <= x < range.max. The provided TimeSeries must
4368
+ # TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must
4355
4369
  # have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
4356
4370
  # Corresponds to the JSON property `metricMeanInRange`
4357
4371
  # @return [Google::Apis::MonitoringV3::MetricRange]
4358
4372
  attr_accessor :metric_mean_in_range
4359
4373
 
4360
4374
  # A MetricRange is used when each window is good when the value x of a single
4361
- # TimeSeries satisfies range.min <= x < range.max. The provided TimeSeries must
4375
+ # TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must
4362
4376
  # have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
4363
4377
  # Corresponds to the JSON property `metricSumInRange`
4364
4378
  # @return [Google::Apis::MonitoringV3::MetricRange]
@@ -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.12.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210712"
25
+ REVISION = "20211017"
26
26
  end
27
27
  end
28
28
  end
@@ -671,6 +671,7 @@ module Google
671
671
  class AlertStrategy
672
672
  # @private
673
673
  class Representation < Google::Apis::Core::JsonRepresentation
674
+ property :auto_close, as: 'autoClose'
674
675
  property :notification_rate_limit, as: 'notificationRateLimit', class: Google::Apis::MonitoringV3::NotificationRateLimit, decorator: Google::Apis::MonitoringV3::NotificationRateLimit::Representation
675
676
 
676
677
  end
@@ -1337,6 +1338,7 @@ module Google
1337
1338
 
1338
1339
  property :launch_stage, as: 'launchStage'
1339
1340
  property :name, as: 'name'
1341
+ collection :supported_tiers, as: 'supportedTiers'
1340
1342
  property :type, as: 'type'
1341
1343
  end
1342
1344
  end
@@ -887,8 +887,10 @@ module Google
887
887
  execute_or_queue_command(command, &block)
888
888
  end
889
889
 
890
- # Creates a new metric descriptor. User-created metric descriptors define custom
891
- # metrics (https://cloud.google.com/monitoring/custom-metrics).
890
+ # Creates a new metric descriptor. The creation is executed asynchronously and
891
+ # callers may check the returned operation to track its progress. User-created
892
+ # metric descriptors define custom metrics (https://cloud.google.com/monitoring/
893
+ # custom-metrics).
892
894
  # @param [String] name
893
895
  # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
894
896
  # on which to execute the request. The format is: 4 projects/
@@ -1558,6 +1560,46 @@ module Google
1558
1560
  execute_or_queue_command(command, &block)
1559
1561
  end
1560
1562
 
1563
+ # Creates or adds data to one or more service time series. A service time series
1564
+ # is a time series for a metric from a Google Cloud service. The response is
1565
+ # empty if all time series in the request were written. If any time series could
1566
+ # not be written, a corresponding failure message is included in the error
1567
+ # response. This endpoint rejects writes to user-defined metrics. This method is
1568
+ # only for use by Google Cloud services. Use projects.timeSeries.create instead.
1569
+ # @param [String] name
1570
+ # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
1571
+ # on which to execute the request. The format is: projects/[
1572
+ # PROJECT_ID_OR_NUMBER]
1573
+ # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
1574
+ # @param [String] fields
1575
+ # Selector specifying which fields to include in a partial response.
1576
+ # @param [String] quota_user
1577
+ # Available to use for quota purposes for server-side applications. Can be any
1578
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1579
+ # @param [Google::Apis::RequestOptions] options
1580
+ # Request-specific options
1581
+ #
1582
+ # @yield [result, err] Result & error if block supplied
1583
+ # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
1584
+ # @yieldparam err [StandardError] error object if request failed
1585
+ #
1586
+ # @return [Google::Apis::MonitoringV3::Empty]
1587
+ #
1588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1591
+ def create_project_time_series_service(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1592
+ command = make_simple_command(:post, 'v3/{+name}/timeSeries:createService', options)
1593
+ command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
1594
+ command.request_object = create_time_series_request_object
1595
+ command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
1596
+ command.response_class = Google::Apis::MonitoringV3::Empty
1597
+ command.params['name'] = name unless name.nil?
1598
+ command.query['fields'] = fields unless fields.nil?
1599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1600
+ execute_or_queue_command(command, &block)
1601
+ end
1602
+
1561
1603
  # Lists time series that match a filter. This method does not require a
1562
1604
  # Workspace.
1563
1605
  # @param [String] name
@@ -34,7 +34,7 @@ module Google
34
34
  # This is NOT the gem version.
35
35
  VERSION = 'V3'
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_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-19 00:00:00.000000000 Z
11
+ date: 2021-10-27 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_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.12.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v3/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.16.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v3
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: