google-apis-monitoring_v3 0.14.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/monitoring_v3/classes.rb +97 -81
- data/lib/google/apis/monitoring_v3/gem_version.rb +2 -2
- data/lib/google/apis/monitoring_v3/representations.rb +1 -0
- data/lib/google/apis/monitoring_v3/service.rb +41 -6
- data/lib/google/apis/monitoring_v3.rb +1 -6
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bffc04a378fb152fc1fdaf5a6cbed638ca4207c6021dfac338bb36a9ac6b95f3
|
4
|
+
data.tar.gz: f788f9d3d57489ee6ae97ba54a9a4d8b575781fe3856d3ad0d81b62a9f31fcdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21014d4aea7dea10e5e4f9da4db8f66b79bcb95eaf416970012cb556c8fe7bafeb2b0b87906261908563106081261b8dd717a804e0db44558a6e298d75cd0043
|
7
|
+
data.tar.gz: 5c61acd6acc1082342d93f0f14e5897ca592376cb9a6b5a9ef648d02edcc3a5c0a9de1feacc7d8be68b30dd01d8fb8c866ad12e5c412f80e4e9c7472a9234dd7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-monitoring_v3
|
2
2
|
|
3
|
+
### v0.18.0 (2021-12-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211201
|
6
|
+
|
7
|
+
### v0.17.0 (2021-11-05)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211031
|
10
|
+
|
11
|
+
### v0.16.0 (2021-10-22)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211017
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.15.0 (2021-10-02)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210926
|
19
|
+
|
3
20
|
### v0.14.0 (2021-09-03)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210830
|
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/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
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,7 +241,7 @@ 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
|
244
|
+
# If an alert policy that was active has no data for this long, any open
|
245
245
|
# incidents will close
|
246
246
|
# Corresponds to the JSON property `autoClose`
|
247
247
|
# @return [String]
|
@@ -2276,7 +2276,7 @@ module Google
|
|
2276
2276
|
# Specifies the alignment of data points in individual time series as well as
|
2277
2277
|
# how to combine the retrieved time series together (such as when aggregating
|
2278
2278
|
# multiple streams on each resource to a single stream for each resource or when
|
2279
|
-
# aggregating streams across all members of a group of
|
2279
|
+
# aggregating streams across all members of a group of resources). Multiple
|
2280
2280
|
# aggregations are applied in the order specified.This field is similar to the
|
2281
2281
|
# one in the ListTimeSeries request (https://cloud.google.com/monitoring/api/
|
2282
2282
|
# ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the
|
@@ -2536,7 +2536,7 @@ module Google
|
|
2536
2536
|
# Specifies the alignment of data points in individual time series as well as
|
2537
2537
|
# how to combine the retrieved time series together (such as when aggregating
|
2538
2538
|
# multiple streams on each resource to a single stream for each resource or when
|
2539
|
-
# aggregating streams across all members of a group of
|
2539
|
+
# aggregating streams across all members of a group of resources). Multiple
|
2540
2540
|
# aggregations are applied in the order specified.This field is similar to the
|
2541
2541
|
# one in the ListTimeSeries request (https://cloud.google.com/monitoring/api/
|
2542
2542
|
# ref_v3/rest/v3/projects.timeSeries/list). It is advisable to use the
|
@@ -2985,6 +2985,12 @@ module Google
|
|
2985
2985
|
# @return [String]
|
2986
2986
|
attr_accessor :name
|
2987
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
|
+
|
2988
2994
|
# The type of notification channel, such as "email" and "sms". To view the full
|
2989
2995
|
# list of channels, see Channel descriptors (https://cloud.google.com/monitoring/
|
2990
2996
|
# alerts/using-channels-api#ncd). Notification channel types are globally unique.
|
@@ -3003,6 +3009,7 @@ module Google
|
|
3003
3009
|
@labels = args[:labels] if args.key?(:labels)
|
3004
3010
|
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
3005
3011
|
@name = args[:name] if args.key?(:name)
|
3012
|
+
@supported_tiers = args[:supported_tiers] if args.key?(:supported_tiers)
|
3006
3013
|
@type = args[:type] if args.key?(:type)
|
3007
3014
|
end
|
3008
3015
|
end
|
@@ -3132,32 +3139,35 @@ module Google
|
|
3132
3139
|
class Point
|
3133
3140
|
include Google::Apis::Core::Hashable
|
3134
3141
|
|
3135
|
-
#
|
3136
|
-
#
|
3137
|
-
#
|
3138
|
-
#
|
3139
|
-
#
|
3140
|
-
#
|
3141
|
-
#
|
3142
|
-
#
|
3143
|
-
# the
|
3144
|
-
#
|
3145
|
-
#
|
3146
|
-
#
|
3147
|
-
#
|
3148
|
-
#
|
3149
|
-
#
|
3150
|
-
#
|
3151
|
-
#
|
3152
|
-
#
|
3153
|
-
#
|
3154
|
-
#
|
3155
|
-
#
|
3156
|
-
#
|
3157
|
-
#
|
3158
|
-
#
|
3159
|
-
#
|
3160
|
-
# time
|
3142
|
+
# Describes a time interval: Reads: A half-open time interval. It includes the
|
3143
|
+
# end time but excludes the start time: (startTime, endTime]. The start time
|
3144
|
+
# must be specified, must be earlier than the end time, and should be no older
|
3145
|
+
# than the data retention period for the metric. Writes: A closed time interval.
|
3146
|
+
# It extends from the start time to the end time, and includes both: [startTime,
|
3147
|
+
# endTime]. Valid time intervals depend on the MetricKind (https://cloud.google.
|
3148
|
+
# com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of
|
3149
|
+
# the metric value. The end time must not be earlier than the start time. When
|
3150
|
+
# writing data points, the start time must not be more than 25 hours in the past
|
3151
|
+
# and the end time must not be more than five minutes in the future. For GAUGE
|
3152
|
+
# metrics, the startTime value is technically optional; if no value is specified,
|
3153
|
+
# the start time defaults to the value of the end time, and the interval
|
3154
|
+
# represents a single point in time. If both start and end times are specified,
|
3155
|
+
# they must be identical. Such an interval is valid only for GAUGE metrics,
|
3156
|
+
# which are point-in-time measurements. The end time of a new interval must be
|
3157
|
+
# at least a millisecond after the end time of the previous interval. For DELTA
|
3158
|
+
# metrics, the start time and end time must specify a non-zero interval, with
|
3159
|
+
# subsequent points specifying contiguous and non-overlapping intervals. For
|
3160
|
+
# DELTA metrics, the start time of the next interval must be at least a
|
3161
|
+
# millisecond after the end time of the previous interval. For CUMULATIVE
|
3162
|
+
# metrics, the start time and end time must specify a non-zero interval, with
|
3163
|
+
# subsequent points specifying the same start time and increasing end times,
|
3164
|
+
# until an event resets the cumulative value to zero and sets a new start time
|
3165
|
+
# for the following points. The new start time must be at least a millisecond
|
3166
|
+
# after the end time of the previous interval. The start time of a new interval
|
3167
|
+
# must be at least a millisecond after the end time of the previous interval
|
3168
|
+
# because intervals are closed. If the start time of a new interval is the same
|
3169
|
+
# as the end time of the previous interval, then data written at the new start
|
3170
|
+
# time could overwrite data written at the previous end time.
|
3161
3171
|
# Corresponds to the JSON property `interval`
|
3162
3172
|
# @return [Google::Apis::MonitoringV3::TimeInterval]
|
3163
3173
|
attr_accessor :interval
|
@@ -3184,32 +3194,35 @@ module Google
|
|
3184
3194
|
class PointData
|
3185
3195
|
include Google::Apis::Core::Hashable
|
3186
3196
|
|
3187
|
-
#
|
3188
|
-
#
|
3189
|
-
#
|
3190
|
-
#
|
3191
|
-
#
|
3192
|
-
#
|
3193
|
-
#
|
3194
|
-
#
|
3195
|
-
# the
|
3196
|
-
#
|
3197
|
-
#
|
3198
|
-
#
|
3199
|
-
#
|
3200
|
-
#
|
3201
|
-
#
|
3202
|
-
#
|
3203
|
-
#
|
3204
|
-
#
|
3205
|
-
#
|
3206
|
-
#
|
3207
|
-
#
|
3208
|
-
#
|
3209
|
-
#
|
3210
|
-
#
|
3211
|
-
#
|
3212
|
-
# time
|
3197
|
+
# Describes a time interval: Reads: A half-open time interval. It includes the
|
3198
|
+
# end time but excludes the start time: (startTime, endTime]. The start time
|
3199
|
+
# must be specified, must be earlier than the end time, and should be no older
|
3200
|
+
# than the data retention period for the metric. Writes: A closed time interval.
|
3201
|
+
# It extends from the start time to the end time, and includes both: [startTime,
|
3202
|
+
# endTime]. Valid time intervals depend on the MetricKind (https://cloud.google.
|
3203
|
+
# com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of
|
3204
|
+
# the metric value. The end time must not be earlier than the start time. When
|
3205
|
+
# writing data points, the start time must not be more than 25 hours in the past
|
3206
|
+
# and the end time must not be more than five minutes in the future. For GAUGE
|
3207
|
+
# metrics, the startTime value is technically optional; if no value is specified,
|
3208
|
+
# the start time defaults to the value of the end time, and the interval
|
3209
|
+
# represents a single point in time. If both start and end times are specified,
|
3210
|
+
# they must be identical. Such an interval is valid only for GAUGE metrics,
|
3211
|
+
# which are point-in-time measurements. The end time of a new interval must be
|
3212
|
+
# at least a millisecond after the end time of the previous interval. For DELTA
|
3213
|
+
# metrics, the start time and end time must specify a non-zero interval, with
|
3214
|
+
# subsequent points specifying contiguous and non-overlapping intervals. For
|
3215
|
+
# DELTA metrics, the start time of the next interval must be at least a
|
3216
|
+
# millisecond after the end time of the previous interval. For CUMULATIVE
|
3217
|
+
# metrics, the start time and end time must specify a non-zero interval, with
|
3218
|
+
# subsequent points specifying the same start time and increasing end times,
|
3219
|
+
# until an event resets the cumulative value to zero and sets a new start time
|
3220
|
+
# for the following points. The new start time must be at least a millisecond
|
3221
|
+
# after the end time of the previous interval. The start time of a new interval
|
3222
|
+
# must be at least a millisecond after the end time of the previous interval
|
3223
|
+
# because intervals are closed. If the start time of a new interval is the same
|
3224
|
+
# as the end time of the previous interval, then data written at the new start
|
3225
|
+
# time could overwrite data written at the previous end time.
|
3213
3226
|
# Corresponds to the JSON property `timeInterval`
|
3214
3227
|
# @return [Google::Apis::MonitoringV3::TimeInterval]
|
3215
3228
|
attr_accessor :time_interval
|
@@ -3746,32 +3759,35 @@ module Google
|
|
3746
3759
|
end
|
3747
3760
|
end
|
3748
3761
|
|
3749
|
-
#
|
3750
|
-
#
|
3751
|
-
#
|
3752
|
-
#
|
3753
|
-
#
|
3754
|
-
#
|
3755
|
-
#
|
3756
|
-
#
|
3757
|
-
# the
|
3758
|
-
#
|
3759
|
-
#
|
3760
|
-
#
|
3761
|
-
#
|
3762
|
-
#
|
3763
|
-
#
|
3764
|
-
#
|
3765
|
-
#
|
3766
|
-
#
|
3767
|
-
#
|
3768
|
-
#
|
3769
|
-
#
|
3770
|
-
#
|
3771
|
-
#
|
3772
|
-
#
|
3773
|
-
#
|
3774
|
-
# time
|
3762
|
+
# Describes a time interval: Reads: A half-open time interval. It includes the
|
3763
|
+
# end time but excludes the start time: (startTime, endTime]. The start time
|
3764
|
+
# must be specified, must be earlier than the end time, and should be no older
|
3765
|
+
# than the data retention period for the metric. Writes: A closed time interval.
|
3766
|
+
# It extends from the start time to the end time, and includes both: [startTime,
|
3767
|
+
# endTime]. Valid time intervals depend on the MetricKind (https://cloud.google.
|
3768
|
+
# com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of
|
3769
|
+
# the metric value. The end time must not be earlier than the start time. When
|
3770
|
+
# writing data points, the start time must not be more than 25 hours in the past
|
3771
|
+
# and the end time must not be more than five minutes in the future. For GAUGE
|
3772
|
+
# metrics, the startTime value is technically optional; if no value is specified,
|
3773
|
+
# the start time defaults to the value of the end time, and the interval
|
3774
|
+
# represents a single point in time. If both start and end times are specified,
|
3775
|
+
# they must be identical. Such an interval is valid only for GAUGE metrics,
|
3776
|
+
# which are point-in-time measurements. The end time of a new interval must be
|
3777
|
+
# at least a millisecond after the end time of the previous interval. For DELTA
|
3778
|
+
# metrics, the start time and end time must specify a non-zero interval, with
|
3779
|
+
# subsequent points specifying contiguous and non-overlapping intervals. For
|
3780
|
+
# DELTA metrics, the start time of the next interval must be at least a
|
3781
|
+
# millisecond after the end time of the previous interval. For CUMULATIVE
|
3782
|
+
# metrics, the start time and end time must specify a non-zero interval, with
|
3783
|
+
# subsequent points specifying the same start time and increasing end times,
|
3784
|
+
# until an event resets the cumulative value to zero and sets a new start time
|
3785
|
+
# for the following points. The new start time must be at least a millisecond
|
3786
|
+
# after the end time of the previous interval. The start time of a new interval
|
3787
|
+
# must be at least a millisecond after the end time of the previous interval
|
3788
|
+
# because intervals are closed. If the start time of a new interval is the same
|
3789
|
+
# as the end time of the previous interval, then data written at the new start
|
3790
|
+
# time could overwrite data written at the previous end time.
|
3775
3791
|
class TimeInterval
|
3776
3792
|
include Google::Apis::Core::Hashable
|
3777
3793
|
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.18.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 = "
|
25
|
+
REVISION = "20211201"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
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.
|
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'
|
@@ -1560,6 +1555,46 @@ module Google
|
|
1560
1555
|
execute_or_queue_command(command, &block)
|
1561
1556
|
end
|
1562
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
|
+
|
1563
1598
|
# Lists time series that match a filter. This method does not require a
|
1564
1599
|
# Workspace.
|
1565
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.
|
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
|
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.
|
4
|
+
version: 0.18.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-
|
11
|
+
date: 2021-12-06 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/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.18.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:
|