google-apis-monitoring_v3 0.13.0 → 0.17.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: 4ba6752d6eebbfea0a3936bdfa4261ed4c83f1f83ac4eb1bf6c1dc4d78bb5b50
4
- data.tar.gz: e3a122bba63f096d9ec3c8801897aeab7bcd8d3d7db6bb7959491f52e9aafcce
3
+ metadata.gz: 63bfeac745c978c6c5040ffab6b9151f1952d754200f6c1930b77c841bb8ce55
4
+ data.tar.gz: b9448714b3437a09d07c4f745b8b7d63b890c0045ee9c2565e1e0c074f537ed1
5
5
  SHA512:
6
- metadata.gz: dcd92c738897cabe20fead8108d3eed32a8ec3ed2d06d79e8c8a472078746d3022f24bd0b8709b61601100d53205210b14295929177cd3c6349c1246b1c4a7c0
7
- data.tar.gz: 11c18f82ef8192c07d72185b431f771d942fe689dbce48fa6bc95a83c812b16051e0bd098fc6361546334d5028a47744cc9f09f5b7252c1f4239b11a353774d2
6
+ metadata.gz: 01fb1fda8b5b0e95460c13bf7e3b8aeaff15ea00aa169a454b3a32c901c1b597f5cafbe8bce2a2ab77cd4bc2659cc6c50e863947bf25378f684ac7f1dbe34c3b
7
+ data.tar.gz: 1a2b9dd2f40fc68ed26911266e14501d6e638ab468970a556c7d21a20b020a90fef6d19afb6fc7fcbc3e62e7769bcd0336f3664bc60d44742afaef3bd8a96894
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.17.0 (2021-11-05)
4
+
5
+ * Regenerated from discovery document revision 20211031
6
+
7
+ ### v0.16.0 (2021-10-22)
8
+
9
+ * Regenerated from discovery document revision 20211017
10
+ * Unspecified changes
11
+
12
+ ### v0.15.0 (2021-10-02)
13
+
14
+ * Regenerated from discovery document revision 20210926
15
+
16
+ ### v0.14.0 (2021-09-03)
17
+
18
+ * Regenerated from discovery document revision 20210830
19
+
3
20
  ### v0.13.0 (2021-07-27)
4
21
 
5
22
  * Regenerated from discovery document revision 20210720
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
@@ -1007,9 +1014,7 @@ module Google
1007
1014
  # @return [String]
1008
1015
  attr_accessor :distribution_filter
1009
1016
 
1010
- # Range of numerical values within min and max. If the open range "< range.max"
1011
- # is desired, set range.min = -infinity. If the open range ">= range.min" is
1012
- # 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 within min and max. If the open range "< range.max"
1369
- # is desired, set range.min = -infinity. If the open range ">= range.min" is
1370
- # 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
@@ -2501,9 +2507,7 @@ module Google
2501
2507
  class MetricRange
2502
2508
  include Google::Apis::Core::Hashable
2503
2509
 
2504
- # Range of numerical values within min and max. If the open range "< range.max"
2505
- # is desired, set range.min = -infinity. If the open range ">= range.min" is
2506
- # 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
@@ -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
@@ -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.13.0"
19
+ GEM_VERSION = "0.17.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 = "20210720"
25
+ REVISION = "20211031"
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
@@ -22,12 +22,7 @@ module Google
22
22
  module MonitoringV3
23
23
  # Cloud Monitoring API
24
24
  #
25
- # Manages your Cloud Monitoring data and configurations. Most projects must be
26
- # associated with a Workspace, with a few exceptions as noted on the individual
27
- # method pages. The table entries below are presented in alphabetical order, not
28
- # in order of common use. For explanations of the concepts found in the table
29
- # entries, read the Cloud Monitoring documentation (https://cloud.google.com/
30
- # monitoring/docs).
25
+ # Manages your Cloud Monitoring data and configurations.
31
26
  #
32
27
  # @example
33
28
  # require 'google/apis/monitoring_v3'
@@ -887,8 +882,10 @@ module Google
887
882
  execute_or_queue_command(command, &block)
888
883
  end
889
884
 
890
- # Creates a new metric descriptor. User-created metric descriptors define custom
891
- # metrics (https://cloud.google.com/monitoring/custom-metrics).
885
+ # Creates a new metric descriptor. The creation is executed asynchronously and
886
+ # callers may check the returned operation to track its progress. User-created
887
+ # metric descriptors define custom metrics (https://cloud.google.com/monitoring/
888
+ # custom-metrics).
892
889
  # @param [String] name
893
890
  # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
894
891
  # on which to execute the request. The format is: 4 projects/
@@ -1558,6 +1555,46 @@ module Google
1558
1555
  execute_or_queue_command(command, &block)
1559
1556
  end
1560
1557
 
1558
+ # Creates or adds data to one or more service time series. A service time series
1559
+ # is a time series for a metric from a Google Cloud service. The response is
1560
+ # empty if all time series in the request were written. If any time series could
1561
+ # not be written, a corresponding failure message is included in the error
1562
+ # response. This endpoint rejects writes to user-defined metrics. This method is
1563
+ # only for use by Google Cloud services. Use projects.timeSeries.create instead.
1564
+ # @param [String] name
1565
+ # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
1566
+ # on which to execute the request. The format is: projects/[
1567
+ # PROJECT_ID_OR_NUMBER]
1568
+ # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
1569
+ # @param [String] fields
1570
+ # Selector specifying which fields to include in a partial response.
1571
+ # @param [String] quota_user
1572
+ # Available to use for quota purposes for server-side applications. Can be any
1573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1574
+ # @param [Google::Apis::RequestOptions] options
1575
+ # Request-specific options
1576
+ #
1577
+ # @yield [result, err] Result & error if block supplied
1578
+ # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
1579
+ # @yieldparam err [StandardError] error object if request failed
1580
+ #
1581
+ # @return [Google::Apis::MonitoringV3::Empty]
1582
+ #
1583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1586
+ def create_project_time_series_service(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1587
+ command = make_simple_command(:post, 'v3/{+name}/timeSeries:createService', options)
1588
+ command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
1589
+ command.request_object = create_time_series_request_object
1590
+ command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
1591
+ command.response_class = Google::Apis::MonitoringV3::Empty
1592
+ command.params['name'] = name unless name.nil?
1593
+ command.query['fields'] = fields unless fields.nil?
1594
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1595
+ execute_or_queue_command(command, &block)
1596
+ end
1597
+
1561
1598
  # Lists time series that match a filter. This method does not require a
1562
1599
  # Workspace.
1563
1600
  # @param [String] name
@@ -21,12 +21,7 @@ module Google
21
21
  module Apis
22
22
  # Cloud Monitoring API
23
23
  #
24
- # Manages your Cloud Monitoring data and configurations. Most projects must be
25
- # associated with a Workspace, with a few exceptions as noted on the individual
26
- # method pages. The table entries below are presented in alphabetical order, not
27
- # in order of common use. For explanations of the concepts found in the table
28
- # entries, read the Cloud Monitoring documentation (https://cloud.google.com/
29
- # monitoring/docs).
24
+ # Manages your Cloud Monitoring data and configurations.
30
25
  #
31
26
  # @see https://cloud.google.com/monitoring/api/
32
27
  module MonitoringV3
@@ -34,7 +29,7 @@ module Google
34
29
  # This is NOT the gem version.
35
30
  VERSION = 'V3'
36
31
 
37
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
38
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
39
34
 
40
35
  # 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.13.0
4
+ version: 0.17.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-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.13.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.17.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: