google-apis-monitoring_v3 0.10.0 → 0.11.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: 9e2e7413b63b8fc0a9bf1e25ef61009ab242190b6d394741bbde2481be2f1ca6
4
- data.tar.gz: d36629adfba4061fc7fc93ee3aaa1300b6918cac9fc02affbfc71aef1cced215
3
+ metadata.gz: a82b6e36feff3153fbc1347b374ab0e80248cd2c22cdcd8c6e3c3e7713afd316
4
+ data.tar.gz: aeba95ffac929f0321cc4a3cd9700beb00662f99d22e704d82b76bdaf269981d
5
5
  SHA512:
6
- metadata.gz: 8d80652128241fbfa1b26359dac26f696a9edc2b6d7f68672d4176dd300f3f6b9af21a08154fb70813f8b990b099da8950eef7cffeae2894ccb0c97ca99a5973
7
- data.tar.gz: a6683c353c25382c69e48f5beecdd264ad18de880d963d68991ffa4d9e7f7db13043b5d5f6ae811407049687de2761954178738de57a9cf4146a219b963ca2b9
6
+ metadata.gz: 992208589d9da04d0717b837e58d8a2683efc577623efeb11e70afd9c369d5d22c6235324b3cefafbe09138ac6645d7f26b8ce48c647a9886f09d3d0f662cd0a
7
+ data.tar.gz: c1b8752225e2b02c6c3310a484c46336544a01c5d0fce3db545d4a2d49888d3e8d667a0ecd5122062be867b8c9199d28d3b6344170aedc27a3e0736dded32548
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.11.0 (2021-07-06)
4
+
5
+ * Regenerated from discovery document revision 20210702
6
+
3
7
  ### v0.10.0 (2021-07-02)
4
8
 
5
9
  * 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,27 @@ 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
+ # Control over the rate of notifications sent to this alert policy's
245
+ # notification channels.
246
+ # Corresponds to the JSON property `notificationRateLimit`
247
+ # @return [Google::Apis::MonitoringV3::NotificationRateLimit]
248
+ attr_accessor :notification_rate_limit
249
+
250
+ def initialize(**args)
251
+ update!(**args)
252
+ end
253
+
254
+ # Update properties of this object
255
+ def update!(**args)
256
+ @notification_rate_limit = args[:notification_rate_limit] if args.key?(:notification_rate_limit)
257
+ end
258
+ end
259
+
232
260
  # App Engine service. Learn more at https://cloud.google.com/appengine.
233
261
  class AppEngine
234
262
  include Google::Apis::Core::Hashable
@@ -646,6 +674,12 @@ module Google
646
674
  # @return [Google::Apis::MonitoringV3::MetricAbsence]
647
675
  attr_accessor :condition_absent
648
676
 
677
+ # A condition type that checks whether a log message from any project monitored
678
+ # by the alert policy’s workspace satisfies the given filter.
679
+ # Corresponds to the JSON property `conditionMatchedLog`
680
+ # @return [Google::Apis::MonitoringV3::LogMatch]
681
+ attr_accessor :condition_matched_log
682
+
649
683
  # A condition type that allows alert policies to be defined using Monitoring
650
684
  # Query Language (https://cloud.google.com/monitoring/mql).
651
685
  # Corresponds to the JSON property `conditionMonitoringQueryLanguage`
@@ -689,6 +723,7 @@ module Google
689
723
  # Update properties of this object
690
724
  def update!(**args)
691
725
  @condition_absent = args[:condition_absent] if args.key?(:condition_absent)
726
+ @condition_matched_log = args[:condition_matched_log] if args.key?(:condition_matched_log)
692
727
  @condition_monitoring_query_language = args[:condition_monitoring_query_language] if args.key?(:condition_monitoring_query_language)
693
728
  @condition_threshold = args[:condition_threshold] if args.key?(:condition_threshold)
694
729
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -2127,6 +2162,39 @@ module Google
2127
2162
  end
2128
2163
  end
2129
2164
 
2165
+ # A condition type that checks whether a log message from any project monitored
2166
+ # by the alert policy’s workspace satisfies the given filter.
2167
+ class LogMatch
2168
+ include Google::Apis::Core::Hashable
2169
+
2170
+ # Required. A logs-based filter. See Advanced Logs Queries for how this filter
2171
+ # should be constructed.
2172
+ # Corresponds to the JSON property `filter`
2173
+ # @return [String]
2174
+ attr_accessor :filter
2175
+
2176
+ # Optional. A map from a label key to an extractor expression, which is used to
2177
+ # extract the value for this label key. Each entry in this map is a
2178
+ # specification for how data should be extracted from log entries that match
2179
+ # filter. Each combination of extracted values is treated as a separate rule for
2180
+ # the purposes of triggering notifications. Label keys and corresponding values
2181
+ # can be used in notifications generated by this condition.Please see the
2182
+ # documentation on logs-based metric valueExtractors for syntax and examples.
2183
+ # Corresponds to the JSON property `labelExtractors`
2184
+ # @return [Hash<String,String>]
2185
+ attr_accessor :label_extractors
2186
+
2187
+ def initialize(**args)
2188
+ update!(**args)
2189
+ end
2190
+
2191
+ # Update properties of this object
2192
+ def update!(**args)
2193
+ @filter = args[:filter] if args.key?(:filter)
2194
+ @label_extractors = args[:label_extractors] if args.key?(:label_extractors)
2195
+ end
2196
+ end
2197
+
2130
2198
  # Istio service scoped to an Istio mesh. Anthos clusters running ASM < 1.6.8
2131
2199
  # will have their services ingested as this type.
2132
2200
  class MeshIstio
@@ -2929,6 +2997,26 @@ module Google
2929
2997
  end
2930
2998
  end
2931
2999
 
3000
+ # Control over the rate of notifications sent to this alert policy's
3001
+ # notification channels.
3002
+ class NotificationRateLimit
3003
+ include Google::Apis::Core::Hashable
3004
+
3005
+ # Not more than one notification per period.
3006
+ # Corresponds to the JSON property `period`
3007
+ # @return [String]
3008
+ attr_accessor :period
3009
+
3010
+ def initialize(**args)
3011
+ update!(**args)
3012
+ end
3013
+
3014
+ # Update properties of this object
3015
+ def update!(**args)
3016
+ @period = args[:period] if args.key?(:period)
3017
+ end
3018
+ end
3019
+
2932
3020
  # Contains metadata for longrunning operation for the edit Metrics Scope
2933
3021
  # endpoints.
2934
3022
  class OperationMetadata
@@ -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.10.0"
19
+ GEM_VERSION = "0.11.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 = "20210625"
25
+ REVISION = "20210702"
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,14 @@ module Google
648
668
  end
649
669
  end
650
670
 
671
+ class AlertStrategy
672
+ # @private
673
+ class Representation < Google::Apis::Core::JsonRepresentation
674
+ property :notification_rate_limit, as: 'notificationRateLimit', class: Google::Apis::MonitoringV3::NotificationRateLimit, decorator: Google::Apis::MonitoringV3::NotificationRateLimit::Representation
675
+
676
+ end
677
+ end
678
+
651
679
  class AppEngine
652
680
  # @private
653
681
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -762,6 +790,8 @@ module Google
762
790
  class Representation < Google::Apis::Core::JsonRepresentation
763
791
  property :condition_absent, as: 'conditionAbsent', class: Google::Apis::MonitoringV3::MetricAbsence, decorator: Google::Apis::MonitoringV3::MetricAbsence::Representation
764
792
 
793
+ property :condition_matched_log, as: 'conditionMatchedLog', class: Google::Apis::MonitoringV3::LogMatch, decorator: Google::Apis::MonitoringV3::LogMatch::Representation
794
+
765
795
  property :condition_monitoring_query_language, as: 'conditionMonitoringQueryLanguage', class: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition, decorator: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition::Representation
766
796
 
767
797
  property :condition_threshold, as: 'conditionThreshold', class: Google::Apis::MonitoringV3::MetricThreshold, decorator: Google::Apis::MonitoringV3::MetricThreshold::Representation
@@ -1142,6 +1172,14 @@ module Google
1142
1172
  end
1143
1173
  end
1144
1174
 
1175
+ class LogMatch
1176
+ # @private
1177
+ class Representation < Google::Apis::Core::JsonRepresentation
1178
+ property :filter, as: 'filter'
1179
+ hash :label_extractors, as: 'labelExtractors'
1180
+ end
1181
+ end
1182
+
1145
1183
  class MeshIstio
1146
1184
  # @private
1147
1185
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1303,6 +1341,13 @@ module Google
1303
1341
  end
1304
1342
  end
1305
1343
 
1344
+ class NotificationRateLimit
1345
+ # @private
1346
+ class Representation < Google::Apis::Core::JsonRepresentation
1347
+ property :period, as: 'period'
1348
+ end
1349
+ end
1350
+
1306
1351
  class OperationMetadata
1307
1352
  # @private
1308
1353
  class Representation < Google::Apis::Core::JsonRepresentation
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.10.0
4
+ version: 0.11.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-05 00:00:00.000000000 Z
11
+ date: 2021-07-12 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.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.11.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: []