google-apis-monitoring_v3 0.64.0 → 0.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b7521f7f947f682432189fb40399f65b027de8fbd5a10fab46357ec7ac41dc3
4
- data.tar.gz: 1c8b12110f1b651e55b19a272af4047eb17279b3d40b15659103efe127f77b78
3
+ metadata.gz: 8f9660415a05c62cac53c0e22b52582eff1e473426bf74d5ea179caadda279f1
4
+ data.tar.gz: 3d44c5ada56d9e8162f8daab91fdbdf78df58416f040874df9ba1e65199abfdc
5
5
  SHA512:
6
- metadata.gz: 572882a03d4f8ae527d559eab41b4ed992bb3cb546da3cd062ac829e6b3d09caed9052a2ff12cc6d706ef63fd3dc82d2f41610b4e03ca80db6d58b0bab06cfdf
7
- data.tar.gz: 499cfa9cc312fffe1a6ba02836ea94df11bc070385e525e66dbc13b2b4fd25e2080bb2a06e1e079a746fd6dfb77f306cbb6198893e7279683668dd3230073d04
6
+ metadata.gz: f2896200c814097f498314ff34267ec37c7e9d300348945e5b8948aa514369cd046ec046be6af7644c129b2ba25857cea17374ac19216d0d603d4a755afeffba
7
+ data.tar.gz: 5f86d9dfbab3a4833a362775557b6d599b928ffdb9ff62ed6c330fdd91d907a76d30081d8ca4dfb954f109f17a6cbb3788be300797cec1f9604aeed5329b7e96
data/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.71.0 (2024-10-27)
4
+
5
+ * Regenerated from discovery document revision 20241017
6
+
7
+ ### v0.70.0 (2024-10-13)
8
+
9
+ * Regenerated from discovery document revision 20241003
10
+
11
+ ### v0.69.0 (2024-10-06)
12
+
13
+ * Regenerated from discovery document revision 20240929
14
+
15
+ ### v0.68.0 (2024-09-15)
16
+
17
+ * Regenerated from discovery document revision 20240829
18
+
19
+ ### v0.67.0 (2024-08-11)
20
+
21
+ * Regenerated from discovery document revision 20240804
22
+
23
+ ### v0.66.0 (2024-08-04)
24
+
25
+ * Regenerated from discovery document revision 20240721
26
+ * Regenerated using generator version 0.15.1
27
+
28
+ ### v0.65.0 (2024-07-25)
29
+
30
+ * Regenerated from discovery document revision 20240630
31
+
3
32
  ### v0.64.0 (2024-06-23)
4
33
 
5
34
  * Regenerated from discovery document revision 20240616
@@ -118,8 +118,8 @@ module Google
118
118
 
119
119
  # A description of the conditions under which some aspect of your system is
120
120
  # considered to be "unhealthy" and the ways to notify people or services about
121
- # this state. For an overview of alert policies, see Introduction to Alerting (
122
- # https://cloud.google.com/monitoring/alerts/).
121
+ # this state. For an overview of alerting policies, see Introduction to Alerting
122
+ # (https://cloud.google.com/monitoring/alerts/).
123
123
  class AlertPolicy
124
124
  include Google::Apis::Core::Hashable
125
125
 
@@ -184,9 +184,9 @@ module Google
184
184
  # @return [Google::Apis::MonitoringV3::MutationRecord]
185
185
  attr_accessor :mutation_record
186
186
 
187
- # Required if the policy exists. The resource name for this policy. The format
188
- # is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] [
189
- # ALERT_POLICY_ID] is assigned by Cloud Monitoring when the policy is created.
187
+ # Identifier. Required if the policy exists. The resource name for this policy.
188
+ # The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
189
+ # [ALERT_POLICY_ID] is assigned by Cloud Monitoring when the policy is created.
190
190
  # When calling the alertPolicies.create method, do not include the name field in
191
191
  # the alerting policy passed as part of the request.
192
192
  # Corresponds to the JSON property `name`
@@ -203,7 +203,7 @@ module Google
203
203
  # @return [Array<String>]
204
204
  attr_accessor :notification_channels
205
205
 
206
- # Optional. The severity of an alert policy indicates how important incidents
206
+ # Optional. The severity of an alerting policy indicates how important incidents
207
207
  # generated by that policy are. The severity level will be displayed on the
208
208
  # Incident detail page and in notifications.
209
209
  # Corresponds to the JSON property `severity`
@@ -260,7 +260,7 @@ module Google
260
260
  class AlertStrategy
261
261
  include Google::Apis::Core::Hashable
262
262
 
263
- # If an alert policy that was active has no data for this long, any open
263
+ # If an alerting policy that was active has no data for this long, any open
264
264
  # incidents will close
265
265
  # Corresponds to the JSON property `autoClose`
266
266
  # @return [String]
@@ -271,7 +271,14 @@ module Google
271
271
  # @return [Array<Google::Apis::MonitoringV3::NotificationChannelStrategy>]
272
272
  attr_accessor :notification_channel_strategy
273
273
 
274
- # Control over the rate of notifications sent to this alert policy's
274
+ # For log-based alert policies, the notification prompts is always OPENED. For
275
+ # non log-based alert policies, the notification prompts can be OPENED or OPENED,
276
+ # CLOSED.
277
+ # Corresponds to the JSON property `notificationPrompts`
278
+ # @return [Array<String>]
279
+ attr_accessor :notification_prompts
280
+
281
+ # Control over the rate of notifications sent to this alerting policy's
275
282
  # notification channels.
276
283
  # Corresponds to the JSON property `notificationRateLimit`
277
284
  # @return [Google::Apis::MonitoringV3::NotificationRateLimit]
@@ -285,6 +292,7 @@ module Google
285
292
  def update!(**args)
286
293
  @auto_close = args[:auto_close] if args.key?(:auto_close)
287
294
  @notification_channel_strategy = args[:notification_channel_strategy] if args.key?(:notification_channel_strategy)
295
+ @notification_prompts = args[:notification_prompts] if args.key?(:notification_prompts)
288
296
  @notification_rate_limit = args[:notification_rate_limit] if args.key?(:notification_rate_limit)
289
297
  end
290
298
  end
@@ -440,6 +448,27 @@ module Google
440
448
  end
441
449
  end
442
450
 
451
+ # A test that uses an alerting result in a boolean column produced by the SQL
452
+ # query.
453
+ class BooleanTest
454
+ include Google::Apis::Core::Hashable
455
+
456
+ # Required. The name of the column containing the boolean value. If the value in
457
+ # a row is NULL, that row is ignored.
458
+ # Corresponds to the JSON property `column`
459
+ # @return [String]
460
+ attr_accessor :column
461
+
462
+ def initialize(**args)
463
+ update!(**args)
464
+ end
465
+
466
+ # Update properties of this object
467
+ def update!(**args)
468
+ @column = args[:column] if args.key?(:column)
469
+ end
470
+ end
471
+
443
472
  # BucketOptions describes the bucket boundaries used to create a histogram for
444
473
  # the distribution. The buckets can be in a linear sequence, an exponential
445
474
  # sequence, or each bucket can be specified explicitly. BucketOptions does not
@@ -810,13 +839,13 @@ module Google
810
839
  # @return [Google::Apis::MonitoringV3::LogMatch]
811
840
  attr_accessor :condition_matched_log
812
841
 
813
- # A condition type that allows alert policies to be defined using Monitoring
842
+ # A condition type that allows alerting policies to be defined using Monitoring
814
843
  # Query Language (https://cloud.google.com/monitoring/mql).
815
844
  # Corresponds to the JSON property `conditionMonitoringQueryLanguage`
816
845
  # @return [Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition]
817
846
  attr_accessor :condition_monitoring_query_language
818
847
 
819
- # A condition type that allows alert policies to be defined using Prometheus
848
+ # A condition type that allows alerting policies to be defined using Prometheus
820
849
  # Query Language (PromQL) (https://prometheus.io/docs/prometheus/latest/querying/
821
850
  # basics/).The PrometheusQueryLanguageCondition message contains information
822
851
  # from a Prometheus alerting rule and its associated rule group.A Prometheus
@@ -842,6 +871,13 @@ module Google
842
871
  # @return [Google::Apis::MonitoringV3::PrometheusQueryLanguageCondition]
843
872
  attr_accessor :condition_prometheus_query_language
844
873
 
874
+ # A condition that allows alerting policies to be defined using GoogleSQL. SQL
875
+ # conditions examine a sliding window of logs using GoogleSQL. Alert policies
876
+ # with SQL conditions may incur additional billing.
877
+ # Corresponds to the JSON property `conditionSql`
878
+ # @return [Google::Apis::MonitoringV3::SqlCondition]
879
+ attr_accessor :condition_sql
880
+
845
881
  # A condition type that compares a collection of time series against a threshold.
846
882
  # Corresponds to the JSON property `conditionThreshold`
847
883
  # @return [Google::Apis::MonitoringV3::MetricThreshold]
@@ -882,6 +918,7 @@ module Google
882
918
  @condition_matched_log = args[:condition_matched_log] if args.key?(:condition_matched_log)
883
919
  @condition_monitoring_query_language = args[:condition_monitoring_query_language] if args.key?(:condition_monitoring_query_language)
884
920
  @condition_prometheus_query_language = args[:condition_prometheus_query_language] if args.key?(:condition_prometheus_query_language)
921
+ @condition_sql = args[:condition_sql] if args.key?(:condition_sql)
885
922
  @condition_threshold = args[:condition_threshold] if args.key?(:condition_threshold)
886
923
  @display_name = args[:display_name] if args.key?(:display_name)
887
924
  @name = args[:name] if args.key?(:name)
@@ -1091,6 +1128,34 @@ module Google
1091
1128
  end
1092
1129
  end
1093
1130
 
1131
+ # Used to schedule the query to run every so many days.
1132
+ class Daily
1133
+ include Google::Apis::Core::Hashable
1134
+
1135
+ # Represents a time of day. The date and time zone are either not significant or
1136
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
1137
+ # types are google.type.Date and google.protobuf.Timestamp.
1138
+ # Corresponds to the JSON property `executionTime`
1139
+ # @return [Google::Apis::MonitoringV3::TimeOfDay]
1140
+ attr_accessor :execution_time
1141
+
1142
+ # Required. The number of days between runs. Must be greater than or equal to 1
1143
+ # day and less than or equal to 31 days.
1144
+ # Corresponds to the JSON property `periodicity`
1145
+ # @return [Fixnum]
1146
+ attr_accessor :periodicity
1147
+
1148
+ def initialize(**args)
1149
+ update!(**args)
1150
+ end
1151
+
1152
+ # Update properties of this object
1153
+ def update!(**args)
1154
+ @execution_time = args[:execution_time] if args.key?(:execution_time)
1155
+ @periodicity = args[:periodicity] if args.key?(:periodicity)
1156
+ end
1157
+ end
1158
+
1094
1159
  # Distribution contains summary statistics for a population of values. It
1095
1160
  # optionally contains a histogram representing the distribution of those values
1096
1161
  # across a set of buckets.The summary statistics are the count, mean, sum of the
@@ -1837,6 +1902,34 @@ module Google
1837
1902
  end
1838
1903
  end
1839
1904
 
1905
+ # Used to schedule the query to run every so many hours.
1906
+ class Hourly
1907
+ include Google::Apis::Core::Hashable
1908
+
1909
+ # Optional. The number of minutes after the hour (in UTC) to run the query. Must
1910
+ # be greater than or equal to 0 minutes and less than or equal to 59 minutes. If
1911
+ # left unspecified, then an arbitrary offset is used.
1912
+ # Corresponds to the JSON property `minuteOffset`
1913
+ # @return [Fixnum]
1914
+ attr_accessor :minute_offset
1915
+
1916
+ # Required. The number of hours between runs. Must be greater than or equal to 1
1917
+ # hour and less than or equal to 48 hours.
1918
+ # Corresponds to the JSON property `periodicity`
1919
+ # @return [Fixnum]
1920
+ attr_accessor :periodicity
1921
+
1922
+ def initialize(**args)
1923
+ update!(**args)
1924
+ end
1925
+
1926
+ # Update properties of this object
1927
+ def update!(**args)
1928
+ @minute_offset = args[:minute_offset] if args.key?(:minute_offset)
1929
+ @periodicity = args[:periodicity] if args.key?(:periodicity)
1930
+ end
1931
+ end
1932
+
1840
1933
  # Information involved in an HTTP/HTTPS Uptime check request.
1841
1934
  class HttpCheck
1842
1935
  include Google::Apis::Core::Hashable
@@ -2980,6 +3073,11 @@ module Google
2980
3073
  # @return [String]
2981
3074
  attr_accessor :sample_period
2982
3075
 
3076
+ # The scope of the timeseries data of the metric.
3077
+ # Corresponds to the JSON property `timeSeriesResourceHierarchyLevel`
3078
+ # @return [Array<String>]
3079
+ attr_accessor :time_series_resource_hierarchy_level
3080
+
2983
3081
  def initialize(**args)
2984
3082
  update!(**args)
2985
3083
  end
@@ -2989,6 +3087,7 @@ module Google
2989
3087
  @ingest_delay = args[:ingest_delay] if args.key?(:ingest_delay)
2990
3088
  @launch_stage = args[:launch_stage] if args.key?(:launch_stage)
2991
3089
  @sample_period = args[:sample_period] if args.key?(:sample_period)
3090
+ @time_series_resource_hierarchy_level = args[:time_series_resource_hierarchy_level] if args.key?(:time_series_resource_hierarchy_level)
2992
3091
  end
2993
3092
  end
2994
3093
 
@@ -3135,6 +3234,26 @@ module Google
3135
3234
  end
3136
3235
  end
3137
3236
 
3237
+ # Used to schedule the query to run every so many minutes.
3238
+ class Minutes
3239
+ include Google::Apis::Core::Hashable
3240
+
3241
+ # Required. Number of minutes between runs. The interval must be greater than or
3242
+ # equal to 5 minutes and less than or equal to 1440 minutes.
3243
+ # Corresponds to the JSON property `periodicity`
3244
+ # @return [Fixnum]
3245
+ attr_accessor :periodicity
3246
+
3247
+ def initialize(**args)
3248
+ update!(**args)
3249
+ end
3250
+
3251
+ # Update properties of this object
3252
+ def update!(**args)
3253
+ @periodicity = args[:periodicity] if args.key?(:periodicity)
3254
+ end
3255
+ end
3256
+
3138
3257
  # An object representing a resource that can be used for monitoring, logging,
3139
3258
  # billing, or other purposes. Examples include virtual machine instances,
3140
3259
  # databases, and storage devices such as disks. The type field identifies a
@@ -3277,7 +3396,7 @@ module Google
3277
3396
  end
3278
3397
  end
3279
3398
 
3280
- # A condition type that allows alert policies to be defined using Monitoring
3399
+ # A condition type that allows alerting policies to be defined using Monitoring
3281
3400
  # Query Language (https://cloud.google.com/monitoring/mql).
3282
3401
  class MonitoringQueryLanguageCondition
3283
3402
  include Google::Apis::Core::Hashable
@@ -3402,9 +3521,9 @@ module Google
3402
3521
  # @return [Array<Google::Apis::MonitoringV3::MutationRecord>]
3403
3522
  attr_accessor :mutation_records
3404
3523
 
3405
- # The full REST resource name for this channel. The format is: projects/[
3406
- # PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is
3407
- # automatically assigned by the server on creation.
3524
+ # Identifier. The full REST resource name for this channel. The format is:
3525
+ # projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [
3526
+ # CHANNEL_ID] is automatically assigned by the server on creation.
3408
3527
  # Corresponds to the JSON property `name`
3409
3528
  # @return [String]
3410
3529
  attr_accessor :name
@@ -3557,7 +3676,7 @@ module Google
3557
3676
  end
3558
3677
  end
3559
3678
 
3560
- # Control over the rate of notifications sent to this alert policy's
3679
+ # Control over the rate of notifications sent to this alerting policy's
3561
3680
  # notification channels.
3562
3681
  class NotificationRateLimit
3563
3682
  include Google::Apis::Core::Hashable
@@ -3806,7 +3925,7 @@ module Google
3806
3925
  end
3807
3926
  end
3808
3927
 
3809
- # A condition type that allows alert policies to be defined using Prometheus
3928
+ # A condition type that allows alerting policies to be defined using Prometheus
3810
3929
  # Query Language (PromQL) (https://prometheus.io/docs/prometheus/latest/querying/
3811
3930
  # basics/).The PrometheusQueryLanguageCondition message contains information
3812
3931
  # from a Prometheus alerting rule and its associated rule group.A Prometheus
@@ -3905,7 +4024,9 @@ module Google
3905
4024
  end
3906
4025
  end
3907
4026
 
3908
- # The QueryTimeSeries request.
4027
+ # The QueryTimeSeries request. For information about the status of Monitoring
4028
+ # Query Language (MQL), see the MQL deprecation notice (https://cloud.google.com/
4029
+ # stackdriver/docs/deprecations/mql).
3909
4030
  class QueryTimeSeriesRequest
3910
4031
  include Google::Apis::Core::Hashable
3911
4032
 
@@ -3939,7 +4060,9 @@ module Google
3939
4060
  end
3940
4061
  end
3941
4062
 
3942
- # The QueryTimeSeries response.
4063
+ # The QueryTimeSeries response. For information about the status of Monitoring
4064
+ # Query Language (MQL), see the MQL deprecation notice (https://cloud.google.com/
4065
+ # stackdriver/docs/deprecations/mql).
3943
4066
  class QueryTimeSeriesResponse
3944
4067
  include Google::Apis::Core::Hashable
3945
4068
 
@@ -4092,6 +4215,33 @@ module Google
4092
4215
  end
4093
4216
  end
4094
4217
 
4218
+ # A test that checks if the number of rows in the result set violates some
4219
+ # threshold.
4220
+ class RowCountTest
4221
+ include Google::Apis::Core::Hashable
4222
+
4223
+ # Required. The comparison to apply between the number of rows returned by the
4224
+ # query and the threshold.
4225
+ # Corresponds to the JSON property `comparison`
4226
+ # @return [String]
4227
+ attr_accessor :comparison
4228
+
4229
+ # Required. The value against which to compare the row count.
4230
+ # Corresponds to the JSON property `threshold`
4231
+ # @return [Fixnum]
4232
+ attr_accessor :threshold
4233
+
4234
+ def initialize(**args)
4235
+ update!(**args)
4236
+ end
4237
+
4238
+ # Update properties of this object
4239
+ def update!(**args)
4240
+ @comparison = args[:comparison] if args.key?(:comparison)
4241
+ @threshold = args[:threshold] if args.key?(:threshold)
4242
+ end
4243
+ end
4244
+
4095
4245
  # The SendNotificationChannelVerificationCode request.
4096
4246
  class SendNotificationChannelVerificationCodeRequest
4097
4247
  include Google::Apis::Core::Hashable
@@ -4503,6 +4653,65 @@ module Google
4503
4653
  end
4504
4654
  end
4505
4655
 
4656
+ # A condition that allows alerting policies to be defined using GoogleSQL. SQL
4657
+ # conditions examine a sliding window of logs using GoogleSQL. Alert policies
4658
+ # with SQL conditions may incur additional billing.
4659
+ class SqlCondition
4660
+ include Google::Apis::Core::Hashable
4661
+
4662
+ # A test that uses an alerting result in a boolean column produced by the SQL
4663
+ # query.
4664
+ # Corresponds to the JSON property `booleanTest`
4665
+ # @return [Google::Apis::MonitoringV3::BooleanTest]
4666
+ attr_accessor :boolean_test
4667
+
4668
+ # Used to schedule the query to run every so many days.
4669
+ # Corresponds to the JSON property `daily`
4670
+ # @return [Google::Apis::MonitoringV3::Daily]
4671
+ attr_accessor :daily
4672
+
4673
+ # Used to schedule the query to run every so many hours.
4674
+ # Corresponds to the JSON property `hourly`
4675
+ # @return [Google::Apis::MonitoringV3::Hourly]
4676
+ attr_accessor :hourly
4677
+
4678
+ # Used to schedule the query to run every so many minutes.
4679
+ # Corresponds to the JSON property `minutes`
4680
+ # @return [Google::Apis::MonitoringV3::Minutes]
4681
+ attr_accessor :minutes
4682
+
4683
+ # Required. The Log Analytics SQL query to run, as a string. The query must
4684
+ # conform to the required shape. Specifically, the query must not try to filter
4685
+ # the input by time. A filter will automatically be applied to filter the input
4686
+ # so that the query receives all rows received since the last time the query was
4687
+ # run.For example, the following query extracts all log entries containing an
4688
+ # HTTP request:SELECT timestamp, log_name, severity, http_request, resource,
4689
+ # labels FROM my-project.global._Default._AllLogs WHERE http_request IS NOT NULL
4690
+ # Corresponds to the JSON property `query`
4691
+ # @return [String]
4692
+ attr_accessor :query
4693
+
4694
+ # A test that checks if the number of rows in the result set violates some
4695
+ # threshold.
4696
+ # Corresponds to the JSON property `rowCountTest`
4697
+ # @return [Google::Apis::MonitoringV3::RowCountTest]
4698
+ attr_accessor :row_count_test
4699
+
4700
+ def initialize(**args)
4701
+ update!(**args)
4702
+ end
4703
+
4704
+ # Update properties of this object
4705
+ def update!(**args)
4706
+ @boolean_test = args[:boolean_test] if args.key?(:boolean_test)
4707
+ @daily = args[:daily] if args.key?(:daily)
4708
+ @hourly = args[:hourly] if args.key?(:hourly)
4709
+ @minutes = args[:minutes] if args.key?(:minutes)
4710
+ @query = args[:query] if args.key?(:query)
4711
+ @row_count_test = args[:row_count_test] if args.key?(:row_count_test)
4712
+ end
4713
+ end
4714
+
4506
4715
  # The Status type defines a logical error model that is suitable for different
4507
4716
  # programming environments, including REST APIs and RPC APIs. It is used by gRPC
4508
4717
  # (https://github.com/grpc). Each Status message contains three pieces of data:
@@ -4663,6 +4872,51 @@ module Google
4663
4872
  end
4664
4873
  end
4665
4874
 
4875
+ # Represents a time of day. The date and time zone are either not significant or
4876
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
4877
+ # types are google.type.Date and google.protobuf.Timestamp.
4878
+ class TimeOfDay
4879
+ include Google::Apis::Core::Hashable
4880
+
4881
+ # Hours of a day in 24 hour format. Must be greater than or equal to 0 and
4882
+ # typically must be less than or equal to 23. An API may choose to allow the
4883
+ # value "24:00:00" for scenarios like business closing time.
4884
+ # Corresponds to the JSON property `hours`
4885
+ # @return [Fixnum]
4886
+ attr_accessor :hours
4887
+
4888
+ # Minutes of an hour. Must be greater than or equal to 0 and less than or equal
4889
+ # to 59.
4890
+ # Corresponds to the JSON property `minutes`
4891
+ # @return [Fixnum]
4892
+ attr_accessor :minutes
4893
+
4894
+ # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and
4895
+ # less than or equal to 999,999,999.
4896
+ # Corresponds to the JSON property `nanos`
4897
+ # @return [Fixnum]
4898
+ attr_accessor :nanos
4899
+
4900
+ # Seconds of a minute. Must be greater than or equal to 0 and typically must be
4901
+ # less than or equal to 59. An API may allow the value 60 if it allows leap-
4902
+ # seconds.
4903
+ # Corresponds to the JSON property `seconds`
4904
+ # @return [Fixnum]
4905
+ attr_accessor :seconds
4906
+
4907
+ def initialize(**args)
4908
+ update!(**args)
4909
+ end
4910
+
4911
+ # Update properties of this object
4912
+ def update!(**args)
4913
+ @hours = args[:hours] if args.key?(:hours)
4914
+ @minutes = args[:minutes] if args.key?(:minutes)
4915
+ @nanos = args[:nanos] if args.key?(:nanos)
4916
+ @seconds = args[:seconds] if args.key?(:seconds)
4917
+ end
4918
+ end
4919
+
4666
4920
  # A collection of data points that describes the time-varying values of a metric.
4667
4921
  # A time series is identified by a combination of a fully-specified monitored
4668
4922
  # resource and a fully-specified metric. This type is used for both listing and
@@ -4670,6 +4924,13 @@ module Google
4670
4924
  class TimeSeries
4671
4925
  include Google::Apis::Core::Hashable
4672
4926
 
4927
+ # Input only. A detailed description of the time series that will be associated
4928
+ # with the google.api.MetricDescriptor for the metric. Once set, this field
4929
+ # cannot be changed through CreateTimeSeries.
4930
+ # Corresponds to the JSON property `description`
4931
+ # @return [String]
4932
+ attr_accessor :description
4933
+
4673
4934
  # Auxiliary metadata for a MonitoredResource object. MonitoredResource objects
4674
4935
  # contain the minimum set of information to uniquely identify a monitored
4675
4936
  # resource instance. There is some other useful auxiliary metadata. Monitoring
@@ -4722,7 +4983,8 @@ module Google
4722
4983
 
4723
4984
  # The units in which the metric value is reported. It is only applicable if the
4724
4985
  # value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the
4725
- # representation of the stored metric values.
4986
+ # representation of the stored metric values. This field can only be changed
4987
+ # through CreateTimeSeries when it is empty.
4726
4988
  # Corresponds to the JSON property `unit`
4727
4989
  # @return [String]
4728
4990
  attr_accessor :unit
@@ -4742,6 +5004,7 @@ module Google
4742
5004
 
4743
5005
  # Update properties of this object
4744
5006
  def update!(**args)
5007
+ @description = args[:description] if args.key?(:description)
4745
5008
  @metadata = args[:metadata] if args.key?(:metadata)
4746
5009
  @metric = args[:metric] if args.key?(:metric)
4747
5010
  @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
@@ -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.64.0"
19
+ GEM_VERSION = "0.71.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240616"
25
+ REVISION = "20241017"
26
26
  end
27
27
  end
28
28
  end
@@ -70,6 +70,12 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class BooleanTest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
73
79
  class BucketOptions
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
@@ -172,6 +178,12 @@ module Google
172
178
  include Google::Apis::Core::JsonObjectSupport
173
179
  end
174
180
 
181
+ class Daily
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
175
187
  class Distribution
176
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
189
 
@@ -280,6 +292,12 @@ module Google
280
292
  include Google::Apis::Core::JsonObjectSupport
281
293
  end
282
294
 
295
+ class Hourly
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
283
301
  class HttpCheck
284
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
303
 
@@ -460,6 +478,12 @@ module Google
460
478
  include Google::Apis::Core::JsonObjectSupport
461
479
  end
462
480
 
481
+ class Minutes
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
463
487
  class MonitoredResource
464
488
  class Representation < Google::Apis::Core::JsonRepresentation; end
465
489
 
@@ -592,6 +616,12 @@ module Google
592
616
  include Google::Apis::Core::JsonObjectSupport
593
617
  end
594
618
 
619
+ class RowCountTest
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
595
625
  class SendNotificationChannelVerificationCodeRequest
596
626
  class Representation < Google::Apis::Core::JsonRepresentation; end
597
627
 
@@ -640,6 +670,12 @@ module Google
640
670
  include Google::Apis::Core::JsonObjectSupport
641
671
  end
642
672
 
673
+ class SqlCondition
674
+ class Representation < Google::Apis::Core::JsonRepresentation; end
675
+
676
+ include Google::Apis::Core::JsonObjectSupport
677
+ end
678
+
643
679
  class Status
644
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
645
681
 
@@ -670,6 +706,12 @@ module Google
670
706
  include Google::Apis::Core::JsonObjectSupport
671
707
  end
672
708
 
709
+ class TimeOfDay
710
+ class Representation < Google::Apis::Core::JsonRepresentation; end
711
+
712
+ include Google::Apis::Core::JsonObjectSupport
713
+ end
714
+
673
715
  class TimeSeries
674
716
  class Representation < Google::Apis::Core::JsonRepresentation; end
675
717
 
@@ -783,6 +825,7 @@ module Google
783
825
  property :auto_close, as: 'autoClose'
784
826
  collection :notification_channel_strategy, as: 'notificationChannelStrategy', class: Google::Apis::MonitoringV3::NotificationChannelStrategy, decorator: Google::Apis::MonitoringV3::NotificationChannelStrategy::Representation
785
827
 
828
+ collection :notification_prompts, as: 'notificationPrompts'
786
829
  property :notification_rate_limit, as: 'notificationRateLimit', class: Google::Apis::MonitoringV3::NotificationRateLimit, decorator: Google::Apis::MonitoringV3::NotificationRateLimit::Representation
787
830
 
788
831
  end
@@ -830,6 +873,13 @@ module Google
830
873
  end
831
874
  end
832
875
 
876
+ class BooleanTest
877
+ # @private
878
+ class Representation < Google::Apis::Core::JsonRepresentation
879
+ property :column, as: 'column'
880
+ end
881
+ end
882
+
833
883
  class BucketOptions
834
884
  # @private
835
885
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -933,6 +983,8 @@ module Google
933
983
 
934
984
  property :condition_prometheus_query_language, as: 'conditionPrometheusQueryLanguage', class: Google::Apis::MonitoringV3::PrometheusQueryLanguageCondition, decorator: Google::Apis::MonitoringV3::PrometheusQueryLanguageCondition::Representation
935
985
 
986
+ property :condition_sql, as: 'conditionSql', class: Google::Apis::MonitoringV3::SqlCondition, decorator: Google::Apis::MonitoringV3::SqlCondition::Representation
987
+
936
988
  property :condition_threshold, as: 'conditionThreshold', class: Google::Apis::MonitoringV3::MetricThreshold, decorator: Google::Apis::MonitoringV3::MetricThreshold::Representation
937
989
 
938
990
  property :display_name, as: 'displayName'
@@ -1002,6 +1054,15 @@ module Google
1002
1054
  end
1003
1055
  end
1004
1056
 
1057
+ class Daily
1058
+ # @private
1059
+ class Representation < Google::Apis::Core::JsonRepresentation
1060
+ property :execution_time, as: 'executionTime', class: Google::Apis::MonitoringV3::TimeOfDay, decorator: Google::Apis::MonitoringV3::TimeOfDay::Representation
1061
+
1062
+ property :periodicity, as: 'periodicity'
1063
+ end
1064
+ end
1065
+
1005
1066
  class Distribution
1006
1067
  # @private
1007
1068
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1176,6 +1237,14 @@ module Google
1176
1237
  end
1177
1238
  end
1178
1239
 
1240
+ class Hourly
1241
+ # @private
1242
+ class Representation < Google::Apis::Core::JsonRepresentation
1243
+ property :minute_offset, as: 'minuteOffset'
1244
+ property :periodicity, as: 'periodicity'
1245
+ end
1246
+ end
1247
+
1179
1248
  class HttpCheck
1180
1249
  # @private
1181
1250
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1457,6 +1526,7 @@ module Google
1457
1526
  property :ingest_delay, as: 'ingestDelay'
1458
1527
  property :launch_stage, as: 'launchStage'
1459
1528
  property :sample_period, as: 'samplePeriod'
1529
+ collection :time_series_resource_hierarchy_level, as: 'timeSeriesResourceHierarchyLevel'
1460
1530
  end
1461
1531
  end
1462
1532
 
@@ -1489,6 +1559,13 @@ module Google
1489
1559
  end
1490
1560
  end
1491
1561
 
1562
+ class Minutes
1563
+ # @private
1564
+ class Representation < Google::Apis::Core::JsonRepresentation
1565
+ property :periodicity, as: 'periodicity'
1566
+ end
1567
+ end
1568
+
1492
1569
  class MonitoredResource
1493
1570
  # @private
1494
1571
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1707,6 +1784,14 @@ module Google
1707
1784
  end
1708
1785
  end
1709
1786
 
1787
+ class RowCountTest
1788
+ # @private
1789
+ class Representation < Google::Apis::Core::JsonRepresentation
1790
+ property :comparison, as: 'comparison'
1791
+ property :threshold, :numeric_string => true, as: 'threshold'
1792
+ end
1793
+ end
1794
+
1710
1795
  class SendNotificationChannelVerificationCodeRequest
1711
1796
  # @private
1712
1797
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1805,6 +1890,23 @@ module Google
1805
1890
  end
1806
1891
  end
1807
1892
 
1893
+ class SqlCondition
1894
+ # @private
1895
+ class Representation < Google::Apis::Core::JsonRepresentation
1896
+ property :boolean_test, as: 'booleanTest', class: Google::Apis::MonitoringV3::BooleanTest, decorator: Google::Apis::MonitoringV3::BooleanTest::Representation
1897
+
1898
+ property :daily, as: 'daily', class: Google::Apis::MonitoringV3::Daily, decorator: Google::Apis::MonitoringV3::Daily::Representation
1899
+
1900
+ property :hourly, as: 'hourly', class: Google::Apis::MonitoringV3::Hourly, decorator: Google::Apis::MonitoringV3::Hourly::Representation
1901
+
1902
+ property :minutes, as: 'minutes', class: Google::Apis::MonitoringV3::Minutes, decorator: Google::Apis::MonitoringV3::Minutes::Representation
1903
+
1904
+ property :query, as: 'query'
1905
+ property :row_count_test, as: 'rowCountTest', class: Google::Apis::MonitoringV3::RowCountTest, decorator: Google::Apis::MonitoringV3::RowCountTest::Representation
1906
+
1907
+ end
1908
+ end
1909
+
1808
1910
  class Status
1809
1911
  # @private
1810
1912
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1846,9 +1948,20 @@ module Google
1846
1948
  end
1847
1949
  end
1848
1950
 
1951
+ class TimeOfDay
1952
+ # @private
1953
+ class Representation < Google::Apis::Core::JsonRepresentation
1954
+ property :hours, as: 'hours'
1955
+ property :minutes, as: 'minutes'
1956
+ property :nanos, as: 'nanos'
1957
+ property :seconds, as: 'seconds'
1958
+ end
1959
+ end
1960
+
1849
1961
  class TimeSeries
1850
1962
  # @private
1851
1963
  class Representation < Google::Apis::Core::JsonRepresentation
1964
+ property :description, as: 'description'
1852
1965
  property :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::MonitoredResourceMetadata, decorator: Google::Apis::MonitoringV3::MonitoredResourceMetadata::Representation
1853
1966
 
1854
1967
  property :metric, as: 'metric', class: Google::Apis::MonitoringV3::Metric, decorator: Google::Apis::MonitoringV3::Metric::Representation
@@ -495,21 +495,22 @@ module Google
495
495
  # the alerting policies to be listed are stored. To retrieve a single alerting
496
496
  # policy by name, use the GetAlertPolicy operation, instead.
497
497
  # @param [String] filter
498
- # If provided, this field specifies the criteria that must be met by alert
499
- # policies to be included in the response.For more details, see sorting and
500
- # filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
501
- # @param [String] order_by
502
- # A comma-separated list of fields by which to sort the result. Supports the
503
- # same set of field references as the filter field. Entries can be prefixed with
504
- # a minus sign to sort by the field in descending order.For more details, see
505
- # sorting and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
498
+ # Optional. If provided, this field specifies the criteria that must be met by
499
+ # alert policies to be included in the response.For more details, see sorting
500
+ # and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
506
501
  # filtering).
502
+ # @param [String] order_by
503
+ # Optional. A comma-separated list of fields by which to sort the result.
504
+ # Supports the same set of field references as the filter field. Entries can be
505
+ # prefixed with a minus sign to sort by the field in descending order.For more
506
+ # details, see sorting and filtering (https://cloud.google.com/monitoring/api/v3/
507
+ # sorting-and-filtering).
507
508
  # @param [Fixnum] page_size
508
- # The maximum number of results to return in a single response.
509
+ # Optional. The maximum number of results to return in a single response.
509
510
  # @param [String] page_token
510
- # If this field is not empty then it must contain the nextPageToken value
511
- # returned by a previous call to this method. Using this field causes the method
512
- # to return more results from the previous method call.
511
+ # Optional. If this field is not empty then it must contain the nextPageToken
512
+ # value returned by a previous call to this method. Using this field causes the
513
+ # method to return more results from the previous method call.
513
514
  # @param [String] fields
514
515
  # Selector specifying which fields to include in a partial response.
515
516
  # @param [String] quota_user
@@ -548,9 +549,9 @@ module Google
548
549
  # the state of alerting policies in a single project. This includes calls to
549
550
  # CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
550
551
  # @param [String] name
551
- # Required if the policy exists. The resource name for this policy. The format
552
- # is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] [
553
- # ALERT_POLICY_ID] is assigned by Cloud Monitoring when the policy is created.
552
+ # Identifier. Required if the policy exists. The resource name for this policy.
553
+ # The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
554
+ # [ALERT_POLICY_ID] is assigned by Cloud Monitoring when the policy is created.
554
555
  # When calling the alertPolicies.create method, do not include the name field in
555
556
  # the alerting policy passed as part of the request.
556
557
  # @param [Google::Apis::MonitoringV3::AlertPolicy] alert_policy_object
@@ -1250,8 +1251,8 @@ module Google
1250
1251
  # @param [Boolean] force
1251
1252
  # If true, the notification channel will be deleted regardless of its use in
1252
1253
  # alert policies (the policies will be updated to remove the channel). If false,
1253
- # channels that are still referenced by an existing alerting policy will fail to
1254
- # be deleted in a delete operation.
1254
+ # this operation will fail if the notification channel is referenced by existing
1255
+ # alerting policies.
1255
1256
  # @param [String] fields
1256
1257
  # Selector specifying which fields to include in a partial response.
1257
1258
  # @param [String] quota_user
@@ -1378,22 +1379,22 @@ module Google
1378
1379
  # specific channel by REST resource name, use the GetNotificationChannel
1379
1380
  # operation.
1380
1381
  # @param [String] filter
1381
- # If provided, this field specifies the criteria that must be met by
1382
+ # Optional. If provided, this field specifies the criteria that must be met by
1382
1383
  # notification channels to be included in the response.For more details, see
1383
1384
  # sorting and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
1384
1385
  # filtering).
1385
1386
  # @param [String] order_by
1386
- # A comma-separated list of fields by which to sort the result. Supports the
1387
- # same set of fields as in filter. Entries can be prefixed with a minus sign to
1388
- # sort in descending rather than ascending order.For more details, see sorting
1389
- # and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
1390
- # filtering).
1387
+ # Optional. A comma-separated list of fields by which to sort the result.
1388
+ # Supports the same set of fields as in filter. Entries can be prefixed with a
1389
+ # minus sign to sort in descending rather than ascending order.For more details,
1390
+ # see sorting and filtering (https://cloud.google.com/monitoring/api/v3/sorting-
1391
+ # and-filtering).
1391
1392
  # @param [Fixnum] page_size
1392
- # The maximum number of results to return in a single response. If not set to a
1393
- # positive number, a reasonable value will be chosen by the service.
1393
+ # Optional. The maximum number of results to return in a single response. If not
1394
+ # set to a positive number, a reasonable value will be chosen by the service.
1394
1395
  # @param [String] page_token
1395
- # If non-empty, page_token must contain a value returned as the next_page_token
1396
- # in a previous response to request the next set of results.
1396
+ # Optional. If non-empty, page_token must contain a value returned as the
1397
+ # next_page_token in a previous response to request the next set of results.
1397
1398
  # @param [String] fields
1398
1399
  # Selector specifying which fields to include in a partial response.
1399
1400
  # @param [String] quota_user
@@ -1431,12 +1432,12 @@ module Google
1431
1432
  # CreateNotificationChannel, DeleteNotificationChannel and
1432
1433
  # UpdateNotificationChannel.
1433
1434
  # @param [String] name
1434
- # The full REST resource name for this channel. The format is: projects/[
1435
- # PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is
1436
- # automatically assigned by the server on creation.
1435
+ # Identifier. The full REST resource name for this channel. The format is:
1436
+ # projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [
1437
+ # CHANNEL_ID] is automatically assigned by the server on creation.
1437
1438
  # @param [Google::Apis::MonitoringV3::NotificationChannel] notification_channel_object
1438
1439
  # @param [String] update_mask
1439
- # The fields to update.
1440
+ # Optional. The fields to update.
1440
1441
  # @param [String] fields
1441
1442
  # Selector specifying which fields to include in a partial response.
1442
1443
  # @param [String] quota_user
@@ -1945,7 +1946,10 @@ module Google
1945
1946
  execute_or_queue_command(command, &block)
1946
1947
  end
1947
1948
 
1948
- # Queries time series using Monitoring Query Language.
1949
+ # Queries time series by using Monitoring Query Language (MQL). We recommend
1950
+ # using PromQL instead of MQL. For more information about the status of MQL, see
1951
+ # the MQL deprecation notice (https://cloud.google.com/stackdriver/docs/
1952
+ # deprecations/mql).
1949
1953
  # @param [String] name
1950
1954
  # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
1951
1955
  # on which to execute the request. The format is: 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.64.0
4
+ version: 0.71.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: 2024-06-23 00:00:00.000000000 Z
11
+ date: 2024-10-27 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/main/generated/google-apis-monitoring_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.64.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.71.0
62
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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.21
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Monitoring API V3