google-apis-monitoring_v3 0.6.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: 15ffb90c07209678cbf13545119eaadb00bf08e14565781f81c645dfb78575a1
4
- data.tar.gz: 9aaf6800330cf60a77683d30896cd5a7a1f09a75868f9c23504dbac86b3b9313
3
+ metadata.gz: a82b6e36feff3153fbc1347b374ab0e80248cd2c22cdcd8c6e3c3e7713afd316
4
+ data.tar.gz: aeba95ffac929f0321cc4a3cd9700beb00662f99d22e704d82b76bdaf269981d
5
5
  SHA512:
6
- metadata.gz: 721a9b04cb1f53f7a4eefec15f8bac76a4be8df16af6a1dce008645429337deafb7755ee2ed87b44a4205064d1db66698be2ca0a14b0046f4393a359e8d3a651
7
- data.tar.gz: c2093a18ce78e133250cc35514799e87b566a906eabd9083bdbf1820483708af28bdab7bf21e152bbb2dcbbb340cd026df63407c278e3bf67416cbedf263ca82
6
+ metadata.gz: 992208589d9da04d0717b837e58d8a2683efc577623efeb11e70afd9c369d5d22c6235324b3cefafbe09138ac6645d7f26b8ce48c647a9886f09d3d0f662cd0a
7
+ data.tar.gz: c1b8752225e2b02c6c3310a484c46336544a01c5d0fce3db545d4a2d49888d3e8d667a0ecd5122062be867b8c9199d28d3b6344170aedc27a3e0736dded32548
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
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
+
7
+ ### v0.10.0 (2021-07-02)
8
+
9
+ * Regenerated from discovery document revision 20210625
10
+ * Regenerated using generator version 0.4.0
11
+
12
+ ### v0.9.0 (2021-06-25)
13
+
14
+ * Regenerated from discovery document revision 20210618
15
+ * Unspecified changes
16
+
17
+ ### v0.8.0 (2021-06-18)
18
+
19
+ * Regenerated from discovery document revision 20210614
20
+ * Regenerated using generator version 0.3.0
21
+
22
+ ### v0.7.0 (2021-05-19)
23
+
24
+ * Unspecified changes
25
+
3
26
  ### v0.6.0 (2021-04-30)
4
27
 
5
28
  * Regenerated from discovery document revision 20210427
@@ -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,58 @@ 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
+
3020
+ # Contains metadata for longrunning operation for the edit Metrics Scope
3021
+ # endpoints.
3022
+ class OperationMetadata
3023
+ include Google::Apis::Core::Hashable
3024
+
3025
+ # The time when the batch request was received.
3026
+ # Corresponds to the JSON property `createTime`
3027
+ # @return [String]
3028
+ attr_accessor :create_time
3029
+
3030
+ # Current state of the batch operation.
3031
+ # Corresponds to the JSON property `state`
3032
+ # @return [String]
3033
+ attr_accessor :state
3034
+
3035
+ # The time when the operation result was last updated.
3036
+ # Corresponds to the JSON property `updateTime`
3037
+ # @return [String]
3038
+ attr_accessor :update_time
3039
+
3040
+ def initialize(**args)
3041
+ update!(**args)
3042
+ end
3043
+
3044
+ # Update properties of this object
3045
+ def update!(**args)
3046
+ @create_time = args[:create_time] if args.key?(:create_time)
3047
+ @state = args[:state] if args.key?(:state)
3048
+ @update_time = args[:update_time] if args.key?(:update_time)
3049
+ end
3050
+ end
3051
+
2932
3052
  # A protocol buffer option, which can be attached to a message, field,
2933
3053
  # enumeration, etc.
2934
3054
  class Option
@@ -3328,6 +3448,16 @@ module Google
3328
3448
  # @return [Google::Apis::MonitoringV3::Telemetry]
3329
3449
  attr_accessor :telemetry
3330
3450
 
3451
+ # Labels which have been used to annotate the service. Label keys must start
3452
+ # with a letter. Label keys and values may contain lowercase letters, numbers,
3453
+ # underscores, and dashes. Label keys and values have a maximum length of 63
3454
+ # characters, and must be less than 128 bytes in size. Up to 64 label entries
3455
+ # may be stored. For labels which do not have a semantic value, the empty string
3456
+ # may be supplied for the label value.
3457
+ # Corresponds to the JSON property `userLabels`
3458
+ # @return [Hash<String,String>]
3459
+ attr_accessor :user_labels
3460
+
3331
3461
  def initialize(**args)
3332
3462
  update!(**args)
3333
3463
  end
@@ -3343,6 +3473,7 @@ module Google
3343
3473
  @mesh_istio = args[:mesh_istio] if args.key?(:mesh_istio)
3344
3474
  @name = args[:name] if args.key?(:name)
3345
3475
  @telemetry = args[:telemetry] if args.key?(:telemetry)
3476
+ @user_labels = args[:user_labels] if args.key?(:user_labels)
3346
3477
  end
3347
3478
  end
3348
3479
 
@@ -3449,6 +3580,16 @@ module Google
3449
3580
  # @return [Google::Apis::MonitoringV3::ServiceLevelIndicator]
3450
3581
  attr_accessor :service_level_indicator
3451
3582
 
3583
+ # Labels which have been used to annotate the service-level objective. Label
3584
+ # keys must start with a letter. Label keys and values may contain lowercase
3585
+ # letters, numbers, underscores, and dashes. Label keys and values have a
3586
+ # maximum length of 63 characters, and must be less than 128 bytes in size. Up
3587
+ # to 64 label entries may be stored. For labels which do not have a semantic
3588
+ # value, the empty string may be supplied for the label value.
3589
+ # Corresponds to the JSON property `userLabels`
3590
+ # @return [Hash<String,String>]
3591
+ attr_accessor :user_labels
3592
+
3452
3593
  def initialize(**args)
3453
3594
  update!(**args)
3454
3595
  end
@@ -3461,6 +3602,7 @@ module Google
3461
3602
  @name = args[:name] if args.key?(:name)
3462
3603
  @rolling_period = args[:rolling_period] if args.key?(:rolling_period)
3463
3604
  @service_level_indicator = args[:service_level_indicator] if args.key?(:service_level_indicator)
3605
+ @user_labels = args[:user_labels] if args.key?(:user_labels)
3464
3606
  end
3465
3607
  end
3466
3608
 
@@ -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.6.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210427"
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,18 @@ 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
+
445
+ class OperationMetadata
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
427
451
  class Option
428
452
  class Representation < Google::Apis::Core::JsonRepresentation; end
429
453
 
@@ -623,6 +647,8 @@ module Google
623
647
  class AlertPolicy
624
648
  # @private
625
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
+
626
652
  property :combiner, as: 'combiner'
627
653
  collection :conditions, as: 'conditions', class: Google::Apis::MonitoringV3::Condition, decorator: Google::Apis::MonitoringV3::Condition::Representation
628
654
 
@@ -642,6 +668,14 @@ module Google
642
668
  end
643
669
  end
644
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
+
645
679
  class AppEngine
646
680
  # @private
647
681
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -756,6 +790,8 @@ module Google
756
790
  class Representation < Google::Apis::Core::JsonRepresentation
757
791
  property :condition_absent, as: 'conditionAbsent', class: Google::Apis::MonitoringV3::MetricAbsence, decorator: Google::Apis::MonitoringV3::MetricAbsence::Representation
758
792
 
793
+ property :condition_matched_log, as: 'conditionMatchedLog', class: Google::Apis::MonitoringV3::LogMatch, decorator: Google::Apis::MonitoringV3::LogMatch::Representation
794
+
759
795
  property :condition_monitoring_query_language, as: 'conditionMonitoringQueryLanguage', class: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition, decorator: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition::Representation
760
796
 
761
797
  property :condition_threshold, as: 'conditionThreshold', class: Google::Apis::MonitoringV3::MetricThreshold, decorator: Google::Apis::MonitoringV3::MetricThreshold::Representation
@@ -1136,6 +1172,14 @@ module Google
1136
1172
  end
1137
1173
  end
1138
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
+
1139
1183
  class MeshIstio
1140
1184
  # @private
1141
1185
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1297,6 +1341,22 @@ module Google
1297
1341
  end
1298
1342
  end
1299
1343
 
1344
+ class NotificationRateLimit
1345
+ # @private
1346
+ class Representation < Google::Apis::Core::JsonRepresentation
1347
+ property :period, as: 'period'
1348
+ end
1349
+ end
1350
+
1351
+ class OperationMetadata
1352
+ # @private
1353
+ class Representation < Google::Apis::Core::JsonRepresentation
1354
+ property :create_time, as: 'createTime'
1355
+ property :state, as: 'state'
1356
+ property :update_time, as: 'updateTime'
1357
+ end
1358
+ end
1359
+
1300
1360
  class Option
1301
1361
  # @private
1302
1362
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1409,6 +1469,7 @@ module Google
1409
1469
  property :name, as: 'name'
1410
1470
  property :telemetry, as: 'telemetry', class: Google::Apis::MonitoringV3::Telemetry, decorator: Google::Apis::MonitoringV3::Telemetry::Representation
1411
1471
 
1472
+ hash :user_labels, as: 'userLabels'
1412
1473
  end
1413
1474
  end
1414
1475
 
@@ -1434,6 +1495,7 @@ module Google
1434
1495
  property :rolling_period, as: 'rollingPeriod'
1435
1496
  property :service_level_indicator, as: 'serviceLevelIndicator', class: Google::Apis::MonitoringV3::ServiceLevelIndicator, decorator: Google::Apis::MonitoringV3::ServiceLevelIndicator::Representation
1436
1497
 
1498
+ hash :user_labels, as: 'userLabels'
1437
1499
  end
1438
1500
  end
1439
1501
 
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-monitoring_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.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-05-18 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Monitoring API V3. Simple REST
28
34
  clients are Ruby client libraries that provide access to Google services via their
29
35
  HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.11.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v3
57
63
  post_install_message:
58
64
  rdoc_options: []