google-apis-monitoring_v3 0.10.0 → 0.14.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 +16 -0
- data/lib/google/apis/monitoring_v3/classes.rb +185 -81
- data/lib/google/apis/monitoring_v3/gem_version.rb +2 -2
- data/lib/google/apis/monitoring_v3/representations.rb +46 -0
- data/lib/google/apis/monitoring_v3/service.rb +6 -3
- data/lib/google/apis/monitoring_v3.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 676123eaca08c119e50e4b6fd1188fd7a88ed757a6415daf71655831e9bc724c
|
4
|
+
data.tar.gz: cf5acb6976f01be4ab40255ee03bd31218c2842f26ab92b2d427f9cb8a353f55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 711438b3cf2f249637697e596ed63bb92b6b109b01f10898c698e51bcaf5b49e65fbe43756ca1bcb349a51bf7a69c079b4c0e56d79fc777d891c5c7f0eac910a
|
7
|
+
data.tar.gz: f9a2c2a4f28632983576e46fc51edb41460abe50250ac2e3b33ba41efed395cc1186201fcd9cb7ac3d592bbfa37292507efd79040a80107f1ba0227d40c17666
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-monitoring_v3
|
2
2
|
|
3
|
+
### v0.14.0 (2021-09-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210830
|
6
|
+
|
7
|
+
### v0.13.0 (2021-07-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210720
|
10
|
+
|
11
|
+
### v0.12.0 (2021-07-16)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210712
|
14
|
+
|
15
|
+
### v0.11.0 (2021-07-06)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210702
|
18
|
+
|
3
19
|
### v0.10.0 (2021-07-02)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210625
|
@@ -123,6 +123,12 @@ module Google
|
|
123
123
|
class AlertPolicy
|
124
124
|
include Google::Apis::Core::Hashable
|
125
125
|
|
126
|
+
# Control over how the notification channels in notification_channels are
|
127
|
+
# notified when this alert fires.
|
128
|
+
# Corresponds to the JSON property `alertStrategy`
|
129
|
+
# @return [Google::Apis::MonitoringV3::AlertStrategy]
|
130
|
+
attr_accessor :alert_strategy
|
131
|
+
|
126
132
|
# How to combine the results of multiple conditions to determine if an incident
|
127
133
|
# should be opened. If condition_time_series_query_language is present, this
|
128
134
|
# must be COMBINE_UNSPECIFIED.
|
@@ -215,6 +221,7 @@ module Google
|
|
215
221
|
|
216
222
|
# Update properties of this object
|
217
223
|
def update!(**args)
|
224
|
+
@alert_strategy = args[:alert_strategy] if args.key?(:alert_strategy)
|
218
225
|
@combiner = args[:combiner] if args.key?(:combiner)
|
219
226
|
@conditions = args[:conditions] if args.key?(:conditions)
|
220
227
|
@creation_record = args[:creation_record] if args.key?(:creation_record)
|
@@ -229,6 +236,34 @@ module Google
|
|
229
236
|
end
|
230
237
|
end
|
231
238
|
|
239
|
+
# Control over how the notification channels in notification_channels are
|
240
|
+
# notified when this alert fires.
|
241
|
+
class AlertStrategy
|
242
|
+
include Google::Apis::Core::Hashable
|
243
|
+
|
244
|
+
# If an alert policy that was active has no data for this log, any open
|
245
|
+
# incidents will close
|
246
|
+
# Corresponds to the JSON property `autoClose`
|
247
|
+
# @return [String]
|
248
|
+
attr_accessor :auto_close
|
249
|
+
|
250
|
+
# Control over the rate of notifications sent to this alert policy's
|
251
|
+
# notification channels.
|
252
|
+
# Corresponds to the JSON property `notificationRateLimit`
|
253
|
+
# @return [Google::Apis::MonitoringV3::NotificationRateLimit]
|
254
|
+
attr_accessor :notification_rate_limit
|
255
|
+
|
256
|
+
def initialize(**args)
|
257
|
+
update!(**args)
|
258
|
+
end
|
259
|
+
|
260
|
+
# Update properties of this object
|
261
|
+
def update!(**args)
|
262
|
+
@auto_close = args[:auto_close] if args.key?(:auto_close)
|
263
|
+
@notification_rate_limit = args[:notification_rate_limit] if args.key?(:notification_rate_limit)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
232
267
|
# App Engine service. Learn more at https://cloud.google.com/appengine.
|
233
268
|
class AppEngine
|
234
269
|
include Google::Apis::Core::Hashable
|
@@ -646,6 +681,13 @@ module Google
|
|
646
681
|
# @return [Google::Apis::MonitoringV3::MetricAbsence]
|
647
682
|
attr_accessor :condition_absent
|
648
683
|
|
684
|
+
# A condition type that checks whether a log message in the scoping project (
|
685
|
+
# https://cloud.google.com/monitoring/api/v3#project_name) satisfies the given
|
686
|
+
# filter. Logs from other projects in the metrics scope are not evaluated.
|
687
|
+
# Corresponds to the JSON property `conditionMatchedLog`
|
688
|
+
# @return [Google::Apis::MonitoringV3::LogMatch]
|
689
|
+
attr_accessor :condition_matched_log
|
690
|
+
|
649
691
|
# A condition type that allows alert policies to be defined using Monitoring
|
650
692
|
# Query Language (https://cloud.google.com/monitoring/mql).
|
651
693
|
# Corresponds to the JSON property `conditionMonitoringQueryLanguage`
|
@@ -689,6 +731,7 @@ module Google
|
|
689
731
|
# Update properties of this object
|
690
732
|
def update!(**args)
|
691
733
|
@condition_absent = args[:condition_absent] if args.key?(:condition_absent)
|
734
|
+
@condition_matched_log = args[:condition_matched_log] if args.key?(:condition_matched_log)
|
692
735
|
@condition_monitoring_query_language = args[:condition_monitoring_query_language] if args.key?(:condition_monitoring_query_language)
|
693
736
|
@condition_threshold = args[:condition_threshold] if args.key?(:condition_threshold)
|
694
737
|
@display_name = args[:display_name] if args.key?(:display_name)
|
@@ -959,8 +1002,8 @@ module Google
|
|
959
1002
|
# A DistributionCut defines a TimeSeries and thresholds used for measuring good
|
960
1003
|
# service and total service. The TimeSeries must have ValueType = DISTRIBUTION
|
961
1004
|
# and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service
|
962
|
-
# will be the count of values
|
963
|
-
#
|
1005
|
+
# will be the estimated count of values in the Distribution that fall within the
|
1006
|
+
# specified min and max.
|
964
1007
|
class DistributionCut
|
965
1008
|
include Google::Apis::Core::Hashable
|
966
1009
|
|
@@ -971,9 +1014,7 @@ module Google
|
|
971
1014
|
# @return [String]
|
972
1015
|
attr_accessor :distribution_filter
|
973
1016
|
|
974
|
-
# Range of numerical values
|
975
|
-
# range "< range.max" is desired, set range.min = -infinity. If the open range ">
|
976
|
-
# = range.min" is desired, set range.max = infinity.
|
1017
|
+
# Range of numerical values within min and max.
|
977
1018
|
# Corresponds to the JSON property `range`
|
978
1019
|
# @return [Google::Apis::MonitoringV3::GoogleMonitoringV3Range]
|
979
1020
|
attr_accessor :range
|
@@ -1329,9 +1370,7 @@ module Google
|
|
1329
1370
|
end
|
1330
1371
|
end
|
1331
1372
|
|
1332
|
-
# Range of numerical values
|
1333
|
-
# range "< range.max" is desired, set range.min = -infinity. If the open range ">
|
1334
|
-
# = range.min" is desired, set range.max = infinity.
|
1373
|
+
# Range of numerical values within min and max.
|
1335
1374
|
class GoogleMonitoringV3Range
|
1336
1375
|
include Google::Apis::Core::Hashable
|
1337
1376
|
|
@@ -2127,6 +2166,43 @@ module Google
|
|
2127
2166
|
end
|
2128
2167
|
end
|
2129
2168
|
|
2169
|
+
# A condition type that checks whether a log message in the scoping project (
|
2170
|
+
# https://cloud.google.com/monitoring/api/v3#project_name) satisfies the given
|
2171
|
+
# filter. Logs from other projects in the metrics scope are not evaluated.
|
2172
|
+
class LogMatch
|
2173
|
+
include Google::Apis::Core::Hashable
|
2174
|
+
|
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.
|
2178
|
+
# Corresponds to the JSON property `filter`
|
2179
|
+
# @return [String]
|
2180
|
+
attr_accessor :filter
|
2181
|
+
|
2182
|
+
# Optional. A map from a label key to an extractor expression, which is used to
|
2183
|
+
# extract the value for this label key. Each entry in this map is a
|
2184
|
+
# specification for how data should be extracted from log entries that match
|
2185
|
+
# filter. Each combination of extracted values is treated as a separate rule for
|
2186
|
+
# the purposes of triggering notifications. Label keys and corresponding values
|
2187
|
+
# can be used in notifications generated by this condition.Please see the
|
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.
|
2191
|
+
# Corresponds to the JSON property `labelExtractors`
|
2192
|
+
# @return [Hash<String,String>]
|
2193
|
+
attr_accessor :label_extractors
|
2194
|
+
|
2195
|
+
def initialize(**args)
|
2196
|
+
update!(**args)
|
2197
|
+
end
|
2198
|
+
|
2199
|
+
# Update properties of this object
|
2200
|
+
def update!(**args)
|
2201
|
+
@filter = args[:filter] if args.key?(:filter)
|
2202
|
+
@label_extractors = args[:label_extractors] if args.key?(:label_extractors)
|
2203
|
+
end
|
2204
|
+
end
|
2205
|
+
|
2130
2206
|
# Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
|
2131
2207
|
# will have their services ingested as this type.
|
2132
2208
|
class MeshIstio
|
@@ -2426,14 +2502,12 @@ module Google
|
|
2426
2502
|
end
|
2427
2503
|
|
2428
2504
|
# A MetricRange is used when each window is good when the value x of a single
|
2429
|
-
# TimeSeries satisfies range.min <= x
|
2505
|
+
# TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must
|
2430
2506
|
# have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
|
2431
2507
|
class MetricRange
|
2432
2508
|
include Google::Apis::Core::Hashable
|
2433
2509
|
|
2434
|
-
# Range of numerical values
|
2435
|
-
# range "< range.max" is desired, set range.min = -infinity. If the open range ">
|
2436
|
-
# = range.min" is desired, set range.max = infinity.
|
2510
|
+
# Range of numerical values within min and max.
|
2437
2511
|
# Corresponds to the JSON property `range`
|
2438
2512
|
# @return [Google::Apis::MonitoringV3::GoogleMonitoringV3Range]
|
2439
2513
|
attr_accessor :range
|
@@ -2578,7 +2652,8 @@ module Google
|
|
2578
2652
|
# Required. The monitored resource type. This field must match the type field of
|
2579
2653
|
# a MonitoredResourceDescriptor object. For example, the type of a Compute
|
2580
2654
|
# Engine VM instance is gce_instance. For a list of types, see Monitoring
|
2581
|
-
# resource types and Logging
|
2655
|
+
# resource types (https://cloud.google.com/monitoring/api/resources) and Logging
|
2656
|
+
# resource types (https://cloud.google.com/logging/docs/api/v2/resource-list).
|
2582
2657
|
# Corresponds to the JSON property `type`
|
2583
2658
|
# @return [String]
|
2584
2659
|
attr_accessor :type
|
@@ -2640,7 +2715,10 @@ module Google
|
|
2640
2715
|
attr_accessor :name
|
2641
2716
|
|
2642
2717
|
# Required. The monitored resource type. For example, the type "
|
2643
|
-
# 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).
|
2644
2722
|
# Corresponds to the JSON property `type`
|
2645
2723
|
# @return [String]
|
2646
2724
|
attr_accessor :type
|
@@ -2929,6 +3007,26 @@ module Google
|
|
2929
3007
|
end
|
2930
3008
|
end
|
2931
3009
|
|
3010
|
+
# Control over the rate of notifications sent to this alert policy's
|
3011
|
+
# notification channels.
|
3012
|
+
class NotificationRateLimit
|
3013
|
+
include Google::Apis::Core::Hashable
|
3014
|
+
|
3015
|
+
# Not more than one notification per period.
|
3016
|
+
# Corresponds to the JSON property `period`
|
3017
|
+
# @return [String]
|
3018
|
+
attr_accessor :period
|
3019
|
+
|
3020
|
+
def initialize(**args)
|
3021
|
+
update!(**args)
|
3022
|
+
end
|
3023
|
+
|
3024
|
+
# Update properties of this object
|
3025
|
+
def update!(**args)
|
3026
|
+
@period = args[:period] if args.key?(:period)
|
3027
|
+
end
|
3028
|
+
end
|
3029
|
+
|
2932
3030
|
# Contains metadata for longrunning operation for the edit Metrics Scope
|
2933
3031
|
# endpoints.
|
2934
3032
|
class OperationMetadata
|
@@ -3036,28 +3134,30 @@ module Google
|
|
3036
3134
|
|
3037
3135
|
# A closed time interval. It extends from the start time to the end time, and
|
3038
3136
|
# includes both: [startTime, endTime]. Valid time intervals depend on the
|
3039
|
-
# MetricKind
|
3040
|
-
#
|
3041
|
-
#
|
3042
|
-
#
|
3043
|
-
#
|
3044
|
-
#
|
3045
|
-
#
|
3046
|
-
#
|
3137
|
+
# MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
|
3138
|
+
# metricDescriptors#MetricKind) of the metric value. The end time must not be
|
3139
|
+
# earlier than the start time. When writing data points, the start time must not
|
3140
|
+
# be more than 25 hours in the past and the end time must not be more than five
|
3141
|
+
# minutes in the future. For GAUGE metrics, the startTime value is technically
|
3142
|
+
# optional; if no value is specified, the start time defaults to the value of
|
3143
|
+
# the end time, and the interval represents a single point in time. If both
|
3144
|
+
# start and end times are specified, they must be identical. Such an interval is
|
3145
|
+
# valid only for GAUGE metrics, which are point-in-time measurements. The end
|
3146
|
+
# time of a new interval must be at least a millisecond after the end time of
|
3147
|
+
# the previous interval. For DELTA metrics, the start time and end time must
|
3148
|
+
# specify a non-zero interval, with subsequent points specifying contiguous and
|
3149
|
+
# non-overlapping intervals. For DELTA metrics, the start time of the next
|
3047
3150
|
# interval must be at least a millisecond after the end time of the previous
|
3048
|
-
# interval. For
|
3049
|
-
# zero interval, with subsequent points specifying
|
3050
|
-
#
|
3051
|
-
#
|
3052
|
-
#
|
3053
|
-
# interval
|
3054
|
-
#
|
3055
|
-
#
|
3056
|
-
#
|
3057
|
-
#
|
3058
|
-
# interval because intervals are closed. If the start time of a new interval is
|
3059
|
-
# the same as the end time of the previous interval, then data written at the
|
3060
|
-
# new start time could overwrite data written at the previous end time.
|
3151
|
+
# interval. For CUMULATIVE metrics, the start time and end time must specify a a
|
3152
|
+
# non-zero interval, with subsequent points specifying the same start time and
|
3153
|
+
# increasing end times, until an event resets the cumulative value to zero and
|
3154
|
+
# sets a new start time for the following points. The new start time must be at
|
3155
|
+
# least a millisecond after the end time of the previous interval. The start
|
3156
|
+
# time of a new interval must be at least a millisecond after the end time of
|
3157
|
+
# the previous interval because intervals are closed. If the start time of a new
|
3158
|
+
# interval is the same as the end time of the previous interval, then data
|
3159
|
+
# written at the new start time could overwrite data written at the previous end
|
3160
|
+
# time.
|
3061
3161
|
# Corresponds to the JSON property `interval`
|
3062
3162
|
# @return [Google::Apis::MonitoringV3::TimeInterval]
|
3063
3163
|
attr_accessor :interval
|
@@ -3086,28 +3186,30 @@ module Google
|
|
3086
3186
|
|
3087
3187
|
# A closed time interval. It extends from the start time to the end time, and
|
3088
3188
|
# includes both: [startTime, endTime]. Valid time intervals depend on the
|
3089
|
-
# MetricKind
|
3090
|
-
#
|
3091
|
-
#
|
3092
|
-
#
|
3093
|
-
#
|
3094
|
-
#
|
3095
|
-
#
|
3096
|
-
#
|
3189
|
+
# MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
|
3190
|
+
# metricDescriptors#MetricKind) of the metric value. The end time must not be
|
3191
|
+
# earlier than the start time. When writing data points, the start time must not
|
3192
|
+
# be more than 25 hours in the past and the end time must not be more than five
|
3193
|
+
# minutes in the future. For GAUGE metrics, the startTime value is technically
|
3194
|
+
# optional; if no value is specified, the start time defaults to the value of
|
3195
|
+
# the end time, and the interval represents a single point in time. If both
|
3196
|
+
# start and end times are specified, they must be identical. Such an interval is
|
3197
|
+
# valid only for GAUGE metrics, which are point-in-time measurements. The end
|
3198
|
+
# time of a new interval must be at least a millisecond after the end time of
|
3199
|
+
# the previous interval. For DELTA metrics, the start time and end time must
|
3200
|
+
# specify a non-zero interval, with subsequent points specifying contiguous and
|
3201
|
+
# non-overlapping intervals. For DELTA metrics, the start time of the next
|
3097
3202
|
# interval must be at least a millisecond after the end time of the previous
|
3098
|
-
# interval. For
|
3099
|
-
# zero interval, with subsequent points specifying
|
3100
|
-
#
|
3101
|
-
#
|
3102
|
-
#
|
3103
|
-
# interval
|
3104
|
-
#
|
3105
|
-
#
|
3106
|
-
#
|
3107
|
-
#
|
3108
|
-
# interval because intervals are closed. If the start time of a new interval is
|
3109
|
-
# the same as the end time of the previous interval, then data written at the
|
3110
|
-
# new start time could overwrite data written at the previous end time.
|
3203
|
+
# interval. For CUMULATIVE metrics, the start time and end time must specify a a
|
3204
|
+
# non-zero interval, with subsequent points specifying the same start time and
|
3205
|
+
# increasing end times, until an event resets the cumulative value to zero and
|
3206
|
+
# sets a new start time for the following points. The new start time must be at
|
3207
|
+
# least a millisecond after the end time of the previous interval. The start
|
3208
|
+
# time of a new interval must be at least a millisecond after the end time of
|
3209
|
+
# the previous interval because intervals are closed. If the start time of a new
|
3210
|
+
# interval is the same as the end time of the previous interval, then data
|
3211
|
+
# written at the new start time could overwrite data written at the previous end
|
3212
|
+
# time.
|
3111
3213
|
# Corresponds to the JSON property `timeInterval`
|
3112
3214
|
# @return [Google::Apis::MonitoringV3::TimeInterval]
|
3113
3215
|
attr_accessor :time_interval
|
@@ -3235,8 +3337,8 @@ module Google
|
|
3235
3337
|
# A DistributionCut defines a TimeSeries and thresholds used for measuring good
|
3236
3338
|
# service and total service. The TimeSeries must have ValueType = DISTRIBUTION
|
3237
3339
|
# and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service
|
3238
|
-
# will be the count of values
|
3239
|
-
#
|
3340
|
+
# will be the estimated count of values in the Distribution that fall within the
|
3341
|
+
# specified min and max.
|
3240
3342
|
# Corresponds to the JSON property `distributionCut`
|
3241
3343
|
# @return [Google::Apis::MonitoringV3::DistributionCut]
|
3242
3344
|
attr_accessor :distribution_cut
|
@@ -3646,28 +3748,30 @@ module Google
|
|
3646
3748
|
|
3647
3749
|
# A closed time interval. It extends from the start time to the end time, and
|
3648
3750
|
# includes both: [startTime, endTime]. Valid time intervals depend on the
|
3649
|
-
# MetricKind
|
3650
|
-
#
|
3651
|
-
#
|
3652
|
-
#
|
3653
|
-
#
|
3654
|
-
#
|
3655
|
-
#
|
3656
|
-
#
|
3751
|
+
# MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
|
3752
|
+
# metricDescriptors#MetricKind) of the metric value. The end time must not be
|
3753
|
+
# earlier than the start time. When writing data points, the start time must not
|
3754
|
+
# be more than 25 hours in the past and the end time must not be more than five
|
3755
|
+
# minutes in the future. For GAUGE metrics, the startTime value is technically
|
3756
|
+
# optional; if no value is specified, the start time defaults to the value of
|
3757
|
+
# the end time, and the interval represents a single point in time. If both
|
3758
|
+
# start and end times are specified, they must be identical. Such an interval is
|
3759
|
+
# valid only for GAUGE metrics, which are point-in-time measurements. The end
|
3760
|
+
# time of a new interval must be at least a millisecond after the end time of
|
3761
|
+
# the previous interval. For DELTA metrics, the start time and end time must
|
3762
|
+
# specify a non-zero interval, with subsequent points specifying contiguous and
|
3763
|
+
# non-overlapping intervals. For DELTA metrics, the start time of the next
|
3657
3764
|
# interval must be at least a millisecond after the end time of the previous
|
3658
|
-
# interval. For
|
3659
|
-
# zero interval, with subsequent points specifying
|
3660
|
-
#
|
3661
|
-
#
|
3662
|
-
#
|
3663
|
-
# interval
|
3664
|
-
#
|
3665
|
-
#
|
3666
|
-
#
|
3667
|
-
#
|
3668
|
-
# interval because intervals are closed. If the start time of a new interval is
|
3669
|
-
# the same as the end time of the previous interval, then data written at the
|
3670
|
-
# new start time could overwrite data written at the previous end time.
|
3765
|
+
# interval. For CUMULATIVE metrics, the start time and end time must specify a a
|
3766
|
+
# non-zero interval, with subsequent points specifying the same start time and
|
3767
|
+
# increasing end times, until an event resets the cumulative value to zero and
|
3768
|
+
# sets a new start time for the following points. The new start time must be at
|
3769
|
+
# least a millisecond after the end time of the previous interval. The start
|
3770
|
+
# time of a new interval must be at least a millisecond after the end time of
|
3771
|
+
# the previous interval because intervals are closed. If the start time of a new
|
3772
|
+
# interval is the same as the end time of the previous interval, then data
|
3773
|
+
# written at the new start time could overwrite data written at the previous end
|
3774
|
+
# time.
|
3671
3775
|
class TimeInterval
|
3672
3776
|
include Google::Apis::Core::Hashable
|
3673
3777
|
|
@@ -4254,14 +4358,14 @@ module Google
|
|
4254
4358
|
attr_accessor :good_total_ratio_threshold
|
4255
4359
|
|
4256
4360
|
# A MetricRange is used when each window is good when the value x of a single
|
4257
|
-
# TimeSeries satisfies range.min <= x
|
4361
|
+
# TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must
|
4258
4362
|
# have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
|
4259
4363
|
# Corresponds to the JSON property `metricMeanInRange`
|
4260
4364
|
# @return [Google::Apis::MonitoringV3::MetricRange]
|
4261
4365
|
attr_accessor :metric_mean_in_range
|
4262
4366
|
|
4263
4367
|
# A MetricRange is used when each window is good when the value x of a single
|
4264
|
-
# TimeSeries satisfies range.min <= x
|
4368
|
+
# TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must
|
4265
4369
|
# have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
|
4266
4370
|
# Corresponds to the JSON property `metricSumInRange`
|
4267
4371
|
# @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.
|
19
|
+
GEM_VERSION = "0.14.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 = "20210830"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class AlertStrategy
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class AppEngine
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -340,6 +346,12 @@ module Google
|
|
340
346
|
include Google::Apis::Core::JsonObjectSupport
|
341
347
|
end
|
342
348
|
|
349
|
+
class LogMatch
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
|
+
|
352
|
+
include Google::Apis::Core::JsonObjectSupport
|
353
|
+
end
|
354
|
+
|
343
355
|
class MeshIstio
|
344
356
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
357
|
|
@@ -424,6 +436,12 @@ module Google
|
|
424
436
|
include Google::Apis::Core::JsonObjectSupport
|
425
437
|
end
|
426
438
|
|
439
|
+
class NotificationRateLimit
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
427
445
|
class OperationMetadata
|
428
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
447
|
|
@@ -629,6 +647,8 @@ module Google
|
|
629
647
|
class AlertPolicy
|
630
648
|
# @private
|
631
649
|
class Representation < Google::Apis::Core::JsonRepresentation
|
650
|
+
property :alert_strategy, as: 'alertStrategy', class: Google::Apis::MonitoringV3::AlertStrategy, decorator: Google::Apis::MonitoringV3::AlertStrategy::Representation
|
651
|
+
|
632
652
|
property :combiner, as: 'combiner'
|
633
653
|
collection :conditions, as: 'conditions', class: Google::Apis::MonitoringV3::Condition, decorator: Google::Apis::MonitoringV3::Condition::Representation
|
634
654
|
|
@@ -648,6 +668,15 @@ module Google
|
|
648
668
|
end
|
649
669
|
end
|
650
670
|
|
671
|
+
class AlertStrategy
|
672
|
+
# @private
|
673
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
674
|
+
property :auto_close, as: 'autoClose'
|
675
|
+
property :notification_rate_limit, as: 'notificationRateLimit', class: Google::Apis::MonitoringV3::NotificationRateLimit, decorator: Google::Apis::MonitoringV3::NotificationRateLimit::Representation
|
676
|
+
|
677
|
+
end
|
678
|
+
end
|
679
|
+
|
651
680
|
class AppEngine
|
652
681
|
# @private
|
653
682
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -762,6 +791,8 @@ module Google
|
|
762
791
|
class Representation < Google::Apis::Core::JsonRepresentation
|
763
792
|
property :condition_absent, as: 'conditionAbsent', class: Google::Apis::MonitoringV3::MetricAbsence, decorator: Google::Apis::MonitoringV3::MetricAbsence::Representation
|
764
793
|
|
794
|
+
property :condition_matched_log, as: 'conditionMatchedLog', class: Google::Apis::MonitoringV3::LogMatch, decorator: Google::Apis::MonitoringV3::LogMatch::Representation
|
795
|
+
|
765
796
|
property :condition_monitoring_query_language, as: 'conditionMonitoringQueryLanguage', class: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition, decorator: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition::Representation
|
766
797
|
|
767
798
|
property :condition_threshold, as: 'conditionThreshold', class: Google::Apis::MonitoringV3::MetricThreshold, decorator: Google::Apis::MonitoringV3::MetricThreshold::Representation
|
@@ -1142,6 +1173,14 @@ module Google
|
|
1142
1173
|
end
|
1143
1174
|
end
|
1144
1175
|
|
1176
|
+
class LogMatch
|
1177
|
+
# @private
|
1178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1179
|
+
property :filter, as: 'filter'
|
1180
|
+
hash :label_extractors, as: 'labelExtractors'
|
1181
|
+
end
|
1182
|
+
end
|
1183
|
+
|
1145
1184
|
class MeshIstio
|
1146
1185
|
# @private
|
1147
1186
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1303,6 +1342,13 @@ module Google
|
|
1303
1342
|
end
|
1304
1343
|
end
|
1305
1344
|
|
1345
|
+
class NotificationRateLimit
|
1346
|
+
# @private
|
1347
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1348
|
+
property :period, as: 'period'
|
1349
|
+
end
|
1350
|
+
end
|
1351
|
+
|
1306
1352
|
class OperationMetadata
|
1307
1353
|
# @private
|
1308
1354
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -26,7 +26,8 @@ module Google
|
|
26
26
|
# associated with a Workspace, with a few exceptions as noted on the individual
|
27
27
|
# method pages. The table entries below are presented in alphabetical order, not
|
28
28
|
# in order of common use. For explanations of the concepts found in the table
|
29
|
-
# entries, read the Cloud Monitoring documentation.
|
29
|
+
# entries, read the Cloud Monitoring documentation (https://cloud.google.com/
|
30
|
+
# monitoring/docs).
|
30
31
|
#
|
31
32
|
# @example
|
32
33
|
# require 'google/apis/monitoring_v3'
|
@@ -886,8 +887,10 @@ module Google
|
|
886
887
|
execute_or_queue_command(command, &block)
|
887
888
|
end
|
888
889
|
|
889
|
-
# Creates a new metric descriptor.
|
890
|
-
#
|
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).
|
891
894
|
# @param [String] name
|
892
895
|
# Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
|
893
896
|
# on which to execute the request. The format is: 4 projects/
|
@@ -25,7 +25,8 @@ module Google
|
|
25
25
|
# associated with a Workspace, with a few exceptions as noted on the individual
|
26
26
|
# method pages. The table entries below are presented in alphabetical order, not
|
27
27
|
# in order of common use. For explanations of the concepts found in the table
|
28
|
-
# entries, read the Cloud Monitoring documentation.
|
28
|
+
# entries, read the Cloud Monitoring documentation (https://cloud.google.com/
|
29
|
+
# monitoring/docs).
|
29
30
|
#
|
30
31
|
# @see https://cloud.google.com/monitoring/api/
|
31
32
|
module MonitoringV3
|
@@ -33,7 +34,7 @@ module Google
|
|
33
34
|
# This is NOT the gem version.
|
34
35
|
VERSION = 'V3'
|
35
36
|
|
36
|
-
# See, edit, configure, and delete your Google Cloud
|
37
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
37
38
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
38
39
|
|
39
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.
|
4
|
+
version: 0.14.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-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.14.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|