google-apis-monitoring_v3 0.38.0 → 0.39.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: 94767ae5db8192ef0e2a2837fb1d435d7c1c3740540cff31810aa9de85ef2e70
4
- data.tar.gz: 94c914cc6eebced5b3b7bddd46ffa825ef72fbb7df92db50185463aca63fe64c
3
+ metadata.gz: 26f50acdd7b9753cef058b081c59821ed5896eb8f12aed1ef97183bc8228e2f1
4
+ data.tar.gz: b99906cfda5dae6a0bcd4be10d9568d8d3ffb0ea90406a07859797e33536f5c4
5
5
  SHA512:
6
- metadata.gz: 1458e27c990501963e2dafe3da0044d06ad614d1abcabcf701b85ef7f80e8117fb41fb14ebff42a88a661a915fc36dd9f624eaa558320399a4b606701a43dacc
7
- data.tar.gz: 292b6a155ea813cd06a3d5ebcbcf6b76c7fdadaee650d3b9b433a99cbe1054f5a0988a45f83e5eba79f981ad632a1d77cf913be338e23db7b354ed7917ad92ef
6
+ metadata.gz: fe6527f5692f8fa028d446c06f07757e71ee3926c21c5052712db984f130b3db806f79fdcc3fb61c331f6cce1f3e3c89ad953a83d7773a6de1563824fe4abbaf
7
+ data.tar.gz: b4d57ff5b4a441b19985f4262ad9652a41d2d42c3c22e0eab093663518a3f732fb8e5e63e10206ba871a79154782a5ffd3ad11e6f06c9f9e87bd102c7b3e112a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.39.0 (2022-12-07)
4
+
5
+ * Regenerated from discovery document revision 20221205
6
+
3
7
  ### v0.38.0 (2022-11-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20221107
@@ -157,7 +157,7 @@ module Google
157
157
  # @return [String]
158
158
  attr_accessor :display_name
159
159
 
160
- # User-defined documentation of the generated notification.
160
+ # A content string and a MIME type that describes the content string's format.
161
161
  # Corresponds to the JSON property `documentation`
162
162
  # @return [Google::Apis::MonitoringV3::Documentation]
163
163
  attr_accessor :documentation
@@ -965,6 +965,30 @@ module Google
965
965
  end
966
966
  end
967
967
 
968
+ # Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze
969
+ # will suppress alerts that come from one of the AlertPolicys whose names are
970
+ # supplied.
971
+ class Criteria
972
+ include Google::Apis::Core::Hashable
973
+
974
+ # The specific AlertPolicy names for the alert that should be snoozed. The
975
+ # format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is
976
+ # a limit of 10 policies per snooze. This limit is checked during snooze
977
+ # creation.
978
+ # Corresponds to the JSON property `policies`
979
+ # @return [Array<String>]
980
+ attr_accessor :policies
981
+
982
+ def initialize(**args)
983
+ update!(**args)
984
+ end
985
+
986
+ # Update properties of this object
987
+ def update!(**args)
988
+ @policies = args[:policies] if args.key?(:policies)
989
+ end
990
+ end
991
+
968
992
  # Use a custom service to designate a service that you want to monitor when none
969
993
  # of the other service types (like App Engine, Cloud Run, or a GKE type) matches
970
994
  # your intended service.
@@ -1101,11 +1125,11 @@ module Google
1101
1125
  end
1102
1126
  end
1103
1127
 
1104
- # User-defined documentation of the generated notification.
1128
+ # A content string and a MIME type that describes the content string's format.
1105
1129
  class Documentation
1106
1130
  include Google::Apis::Core::Hashable
1107
1131
 
1108
- # The body of the notification, interpreted according to mime_type. The content
1132
+ # The body of the documentation, interpreted according to mime_type. The content
1109
1133
  # may not exceed 8,192 Unicode characters and may not exceed more than 10,240
1110
1134
  # bytes when encoded in UTF-8 format, whichever is smaller. This text can be
1111
1135
  # templatized by using variables (https://cloud.google.com/monitoring/alerts/doc-
@@ -1121,12 +1145,6 @@ module Google
1121
1145
  # @return [String]
1122
1146
  attr_accessor :mime_type
1123
1147
 
1124
- # A public comment for an internal field, because the linter insists that all
1125
- # fields must have a comment. Sigh.
1126
- # Corresponds to the JSON property `subject`
1127
- # @return [String]
1128
- attr_accessor :subject
1129
-
1130
1148
  def initialize(**args)
1131
1149
  update!(**args)
1132
1150
  end
@@ -1135,7 +1153,6 @@ module Google
1135
1153
  def update!(**args)
1136
1154
  @content = args[:content] if args.key?(:content)
1137
1155
  @mime_type = args[:mime_type] if args.key?(:mime_type)
1138
- @subject = args[:subject] if args.key?(:subject)
1139
1156
  end
1140
1157
  end
1141
1158
 
@@ -1392,6 +1409,29 @@ module Google
1392
1409
  end
1393
1410
  end
1394
1411
 
1412
+ # Options used when forecasting the time series and testing the predicted value
1413
+ # against the threshold.
1414
+ class ForecastOptions
1415
+ include Google::Apis::Core::Hashable
1416
+
1417
+ # Required. The length of time into the future to forecast whether a time series
1418
+ # will violate the threshold. If the predicted value is found to violate the
1419
+ # threshold, and the violation is observed in all forecasts made for the
1420
+ # configured duration, then the time series is considered to be failing.
1421
+ # Corresponds to the JSON property `forecastHorizon`
1422
+ # @return [String]
1423
+ attr_accessor :forecast_horizon
1424
+
1425
+ def initialize(**args)
1426
+ update!(**args)
1427
+ end
1428
+
1429
+ # Update properties of this object
1430
+ def update!(**args)
1431
+ @forecast_horizon = args[:forecast_horizon] if args.key?(:forecast_horizon)
1432
+ end
1433
+ end
1434
+
1395
1435
  # The GetNotificationChannelVerificationCode request.
1396
1436
  class GetNotificationChannelVerificationCodeRequest
1397
1437
  include Google::Apis::Core::Hashable
@@ -2321,6 +2361,32 @@ module Google
2321
2361
  end
2322
2362
  end
2323
2363
 
2364
+ # The results of a successful ListSnoozes call, containing the matching Snoozes.
2365
+ class ListSnoozesResponse
2366
+ include Google::Apis::Core::Hashable
2367
+
2368
+ # Page token for repeated calls to ListSnoozes, to fetch additional pages of
2369
+ # results. If this is empty or missing, there are no more pages.
2370
+ # Corresponds to the JSON property `nextPageToken`
2371
+ # @return [String]
2372
+ attr_accessor :next_page_token
2373
+
2374
+ # Snoozes matching this list call.
2375
+ # Corresponds to the JSON property `snoozes`
2376
+ # @return [Array<Google::Apis::MonitoringV3::Snooze>]
2377
+ attr_accessor :snoozes
2378
+
2379
+ def initialize(**args)
2380
+ update!(**args)
2381
+ end
2382
+
2383
+ # Update properties of this object
2384
+ def update!(**args)
2385
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2386
+ @snoozes = args[:snoozes] if args.key?(:snoozes)
2387
+ end
2388
+ end
2389
+
2324
2390
  # The ListTimeSeries response.
2325
2391
  class ListTimeSeriesResponse
2326
2392
  include Google::Apis::Core::Hashable
@@ -2872,6 +2938,12 @@ module Google
2872
2938
  # @return [String]
2873
2939
  attr_accessor :filter
2874
2940
 
2941
+ # Options used when forecasting the time series and testing the predicted value
2942
+ # against the threshold.
2943
+ # Corresponds to the JSON property `forecastOptions`
2944
+ # @return [Google::Apis::MonitoringV3::ForecastOptions]
2945
+ attr_accessor :forecast_options
2946
+
2875
2947
  # A value against which to compare the time series.
2876
2948
  # Corresponds to the JSON property `thresholdValue`
2877
2949
  # @return [Float]
@@ -2896,6 +2968,7 @@ module Google
2896
2968
  @duration = args[:duration] if args.key?(:duration)
2897
2969
  @evaluation_missing_data = args[:evaluation_missing_data] if args.key?(:evaluation_missing_data)
2898
2970
  @filter = args[:filter] if args.key?(:filter)
2971
+ @forecast_options = args[:forecast_options] if args.key?(:forecast_options)
2899
2972
  @threshold_value = args[:threshold_value] if args.key?(:threshold_value)
2900
2973
  @trigger = args[:trigger] if args.key?(:trigger)
2901
2974
  end
@@ -3998,6 +4071,79 @@ module Google
3998
4071
  end
3999
4072
  end
4000
4073
 
4074
+ # A Snooze will prevent any alerts from being opened, and close any that are
4075
+ # already open. The Snooze will work on alerts that match the criteria defined
4076
+ # in the Snooze. The Snooze will be active from interval.start_time through
4077
+ # interval.end_time.
4078
+ class Snooze
4079
+ include Google::Apis::Core::Hashable
4080
+
4081
+ # Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze
4082
+ # will suppress alerts that come from one of the AlertPolicys whose names are
4083
+ # supplied.
4084
+ # Corresponds to the JSON property `criteria`
4085
+ # @return [Google::Apis::MonitoringV3::Criteria]
4086
+ attr_accessor :criteria
4087
+
4088
+ # Required. A display name for the Snooze. This can be, at most, 512 unicode
4089
+ # characters.
4090
+ # Corresponds to the JSON property `displayName`
4091
+ # @return [String]
4092
+ attr_accessor :display_name
4093
+
4094
+ # Describes a time interval: Reads: A half-open time interval. It includes the
4095
+ # end time but excludes the start time: (startTime, endTime]. The start time
4096
+ # must be specified, must be earlier than the end time, and should be no older
4097
+ # than the data retention period for the metric. Writes: A closed time interval.
4098
+ # It extends from the start time to the end time, and includes both: [startTime,
4099
+ # endTime]. Valid time intervals depend on the MetricKind (https://cloud.google.
4100
+ # com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of
4101
+ # the metric value. The end time must not be earlier than the start time, and
4102
+ # the end time must not be more than 25 hours in the past or more than five
4103
+ # minutes in the future. For GAUGE metrics, the startTime value is technically
4104
+ # optional; if no value is specified, the start time defaults to the value of
4105
+ # the end time, and the interval represents a single point in time. If both
4106
+ # start and end times are specified, they must be identical. Such an interval is
4107
+ # valid only for GAUGE metrics, which are point-in-time measurements. The end
4108
+ # time of a new interval must be at least a millisecond after the end time of
4109
+ # the previous interval. For DELTA metrics, the start time and end time must
4110
+ # specify a non-zero interval, with subsequent points specifying contiguous and
4111
+ # non-overlapping intervals. For DELTA metrics, the start time of the next
4112
+ # interval must be at least a millisecond after the end time of the previous
4113
+ # interval. For CUMULATIVE metrics, the start time and end time must specify a
4114
+ # non-zero interval, with subsequent points specifying the same start time and
4115
+ # increasing end times, until an event resets the cumulative value to zero and
4116
+ # sets a new start time for the following points. The new start time must be at
4117
+ # least a millisecond after the end time of the previous interval. The start
4118
+ # time of a new interval must be at least a millisecond after the end time of
4119
+ # the previous interval because intervals are closed. If the start time of a new
4120
+ # interval is the same as the end time of the previous interval, then data
4121
+ # written at the new start time could overwrite data written at the previous end
4122
+ # time.
4123
+ # Corresponds to the JSON property `interval`
4124
+ # @return [Google::Apis::MonitoringV3::TimeInterval]
4125
+ attr_accessor :interval
4126
+
4127
+ # Required. The name of the Snooze. The format is: projects/[
4128
+ # PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be
4129
+ # generated by the system.
4130
+ # Corresponds to the JSON property `name`
4131
+ # @return [String]
4132
+ attr_accessor :name
4133
+
4134
+ def initialize(**args)
4135
+ update!(**args)
4136
+ end
4137
+
4138
+ # Update properties of this object
4139
+ def update!(**args)
4140
+ @criteria = args[:criteria] if args.key?(:criteria)
4141
+ @display_name = args[:display_name] if args.key?(:display_name)
4142
+ @interval = args[:interval] if args.key?(:interval)
4143
+ @name = args[:name] if args.key?(:name)
4144
+ end
4145
+ end
4146
+
4001
4147
  # SourceContext represents information about the source of a protobuf element,
4002
4148
  # like the file in which it is defined.
4003
4149
  class SourceContext
@@ -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.38.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221107"
25
+ REVISION = "20221205"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,12 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class Criteria
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
157
163
  class Custom
158
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
165
 
@@ -220,6 +226,12 @@ module Google
220
226
  include Google::Apis::Core::JsonObjectSupport
221
227
  end
222
228
 
229
+ class ForecastOptions
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
223
235
  class GetNotificationChannelVerificationCodeRequest
224
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
237
 
@@ -364,6 +376,12 @@ module Google
364
376
  include Google::Apis::Core::JsonObjectSupport
365
377
  end
366
378
 
379
+ class ListSnoozesResponse
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
367
385
  class ListTimeSeriesResponse
368
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
369
387
 
@@ -574,6 +592,12 @@ module Google
574
592
  include Google::Apis::Core::JsonObjectSupport
575
593
  end
576
594
 
595
+ class Snooze
596
+ class Representation < Google::Apis::Core::JsonRepresentation; end
597
+
598
+ include Google::Apis::Core::JsonObjectSupport
599
+ end
600
+
577
601
  class SourceContext
578
602
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
603
 
@@ -915,6 +939,13 @@ module Google
915
939
  end
916
940
  end
917
941
 
942
+ class Criteria
943
+ # @private
944
+ class Representation < Google::Apis::Core::JsonRepresentation
945
+ collection :policies, as: 'policies'
946
+ end
947
+ end
948
+
918
949
  class Custom
919
950
  # @private
920
951
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -951,7 +982,6 @@ module Google
951
982
  class Representation < Google::Apis::Core::JsonRepresentation
952
983
  property :content, as: 'content'
953
984
  property :mime_type, as: 'mimeType'
954
- property :subject, as: 'subject'
955
985
  end
956
986
  end
957
987
 
@@ -1019,6 +1049,13 @@ module Google
1019
1049
  end
1020
1050
  end
1021
1051
 
1052
+ class ForecastOptions
1053
+ # @private
1054
+ class Representation < Google::Apis::Core::JsonRepresentation
1055
+ property :forecast_horizon, as: 'forecastHorizon'
1056
+ end
1057
+ end
1058
+
1022
1059
  class GetNotificationChannelVerificationCodeRequest
1023
1060
  # @private
1024
1061
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1254,6 +1291,15 @@ module Google
1254
1291
  end
1255
1292
  end
1256
1293
 
1294
+ class ListSnoozesResponse
1295
+ # @private
1296
+ class Representation < Google::Apis::Core::JsonRepresentation
1297
+ property :next_page_token, as: 'nextPageToken'
1298
+ collection :snoozes, as: 'snoozes', class: Google::Apis::MonitoringV3::Snooze, decorator: Google::Apis::MonitoringV3::Snooze::Representation
1299
+
1300
+ end
1301
+ end
1302
+
1257
1303
  class ListTimeSeriesResponse
1258
1304
  # @private
1259
1305
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1371,6 +1417,8 @@ module Google
1371
1417
  property :duration, as: 'duration'
1372
1418
  property :evaluation_missing_data, as: 'evaluationMissingData'
1373
1419
  property :filter, as: 'filter'
1420
+ property :forecast_options, as: 'forecastOptions', class: Google::Apis::MonitoringV3::ForecastOptions, decorator: Google::Apis::MonitoringV3::ForecastOptions::Representation
1421
+
1374
1422
  property :threshold_value, as: 'thresholdValue'
1375
1423
  property :trigger, as: 'trigger', class: Google::Apis::MonitoringV3::Trigger, decorator: Google::Apis::MonitoringV3::Trigger::Representation
1376
1424
 
@@ -1640,6 +1688,18 @@ module Google
1640
1688
  end
1641
1689
  end
1642
1690
 
1691
+ class Snooze
1692
+ # @private
1693
+ class Representation < Google::Apis::Core::JsonRepresentation
1694
+ property :criteria, as: 'criteria', class: Google::Apis::MonitoringV3::Criteria, decorator: Google::Apis::MonitoringV3::Criteria::Representation
1695
+
1696
+ property :display_name, as: 'displayName'
1697
+ property :interval, as: 'interval', class: Google::Apis::MonitoringV3::TimeInterval, decorator: Google::Apis::MonitoringV3::TimeInterval::Representation
1698
+
1699
+ property :name, as: 'name'
1700
+ end
1701
+ end
1702
+
1643
1703
  class SourceContext
1644
1704
  # @private
1645
1705
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1529,6 +1529,172 @@ module Google
1529
1529
  execute_or_queue_command(command, &block)
1530
1530
  end
1531
1531
 
1532
+ # Creates a Snooze that will prevent alerts, which match the provided criteria,
1533
+ # from being opened. The Snooze applies for a specific time interval.
1534
+ # @param [String] parent
1535
+ # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
1536
+ # in which a Snooze should be created. The format is: projects/[
1537
+ # PROJECT_ID_OR_NUMBER]
1538
+ # @param [Google::Apis::MonitoringV3::Snooze] snooze_object
1539
+ # @param [String] fields
1540
+ # Selector specifying which fields to include in a partial response.
1541
+ # @param [String] quota_user
1542
+ # Available to use for quota purposes for server-side applications. Can be any
1543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1544
+ # @param [Google::Apis::RequestOptions] options
1545
+ # Request-specific options
1546
+ #
1547
+ # @yield [result, err] Result & error if block supplied
1548
+ # @yieldparam result [Google::Apis::MonitoringV3::Snooze] parsed result object
1549
+ # @yieldparam err [StandardError] error object if request failed
1550
+ #
1551
+ # @return [Google::Apis::MonitoringV3::Snooze]
1552
+ #
1553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1556
+ def create_project_snooze(parent, snooze_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1557
+ command = make_simple_command(:post, 'v3/{+parent}/snoozes', options)
1558
+ command.request_representation = Google::Apis::MonitoringV3::Snooze::Representation
1559
+ command.request_object = snooze_object
1560
+ command.response_representation = Google::Apis::MonitoringV3::Snooze::Representation
1561
+ command.response_class = Google::Apis::MonitoringV3::Snooze
1562
+ command.params['parent'] = parent unless parent.nil?
1563
+ command.query['fields'] = fields unless fields.nil?
1564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1565
+ execute_or_queue_command(command, &block)
1566
+ end
1567
+
1568
+ # Retrieves a Snooze by name.
1569
+ # @param [String] name
1570
+ # Required. The ID of the Snooze to retrieve. The format is: projects/[
1571
+ # PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
1572
+ # @param [String] fields
1573
+ # Selector specifying which fields to include in a partial response.
1574
+ # @param [String] quota_user
1575
+ # Available to use for quota purposes for server-side applications. Can be any
1576
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1577
+ # @param [Google::Apis::RequestOptions] options
1578
+ # Request-specific options
1579
+ #
1580
+ # @yield [result, err] Result & error if block supplied
1581
+ # @yieldparam result [Google::Apis::MonitoringV3::Snooze] parsed result object
1582
+ # @yieldparam err [StandardError] error object if request failed
1583
+ #
1584
+ # @return [Google::Apis::MonitoringV3::Snooze]
1585
+ #
1586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1589
+ def get_project_snooze(name, fields: nil, quota_user: nil, options: nil, &block)
1590
+ command = make_simple_command(:get, 'v3/{+name}', options)
1591
+ command.response_representation = Google::Apis::MonitoringV3::Snooze::Representation
1592
+ command.response_class = Google::Apis::MonitoringV3::Snooze
1593
+ command.params['name'] = name unless name.nil?
1594
+ command.query['fields'] = fields unless fields.nil?
1595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1596
+ execute_or_queue_command(command, &block)
1597
+ end
1598
+
1599
+ # Lists the Snoozes associated with a project. Can optionally pass in filter,
1600
+ # which specifies predicates to match Snoozes.
1601
+ # @param [String] parent
1602
+ # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
1603
+ # whose Snoozes should be listed. The format is: projects/[PROJECT_ID_OR_NUMBER]
1604
+ #
1605
+ # @param [String] filter
1606
+ # Optional. Optional filter to restrict results to the given criteria. The
1607
+ # following fields are supported. interval.start_time interval.end_timeFor
1608
+ # example: ``` interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.
1609
+ # end_time < "2022-03-12T00:00:00-08:00" ```
1610
+ # @param [Fixnum] page_size
1611
+ # Optional. The maximum number of results to return for a single query. The
1612
+ # server may further constrain the maximum number of results returned in a
1613
+ # single page. The value should be in the range 1, 1000. If the value given is
1614
+ # outside this range, the server will decide the number of results to be
1615
+ # returned.
1616
+ # @param [String] page_token
1617
+ # Optional. The next_page_token from a previous call to ListSnoozesRequest to
1618
+ # get the next page of results.
1619
+ # @param [String] fields
1620
+ # Selector specifying which fields to include in a partial response.
1621
+ # @param [String] quota_user
1622
+ # Available to use for quota purposes for server-side applications. Can be any
1623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1624
+ # @param [Google::Apis::RequestOptions] options
1625
+ # Request-specific options
1626
+ #
1627
+ # @yield [result, err] Result & error if block supplied
1628
+ # @yieldparam result [Google::Apis::MonitoringV3::ListSnoozesResponse] parsed result object
1629
+ # @yieldparam err [StandardError] error object if request failed
1630
+ #
1631
+ # @return [Google::Apis::MonitoringV3::ListSnoozesResponse]
1632
+ #
1633
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1634
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1635
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1636
+ def list_project_snoozes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1637
+ command = make_simple_command(:get, 'v3/{+parent}/snoozes', options)
1638
+ command.response_representation = Google::Apis::MonitoringV3::ListSnoozesResponse::Representation
1639
+ command.response_class = Google::Apis::MonitoringV3::ListSnoozesResponse
1640
+ command.params['parent'] = parent unless parent.nil?
1641
+ command.query['filter'] = filter unless filter.nil?
1642
+ command.query['pageSize'] = page_size unless page_size.nil?
1643
+ command.query['pageToken'] = page_token unless page_token.nil?
1644
+ command.query['fields'] = fields unless fields.nil?
1645
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1646
+ execute_or_queue_command(command, &block)
1647
+ end
1648
+
1649
+ # Updates a Snooze, identified by its name, with the parameters in the given
1650
+ # Snooze object.
1651
+ # @param [String] name
1652
+ # Required. The name of the Snooze. The format is: projects/[
1653
+ # PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be
1654
+ # generated by the system.
1655
+ # @param [Google::Apis::MonitoringV3::Snooze] snooze_object
1656
+ # @param [String] update_mask
1657
+ # Required. The fields to update.For each field listed in update_mask: If the
1658
+ # Snooze object supplied in the UpdateSnoozeRequest has a value for that field,
1659
+ # the value of the field in the existing Snooze will be set to the value of the
1660
+ # field in the supplied Snooze. If the field does not have a value in the
1661
+ # supplied Snooze, the field in the existing Snooze is set to its default value.
1662
+ # Fields not listed retain their existing value.The following are the field
1663
+ # names that are accepted in update_mask: display_name interval.start_time
1664
+ # interval.end_timeThat said, the start time and end time of the Snooze
1665
+ # determines which fields can legally be updated. Before attempting an update,
1666
+ # users should consult the documentation for UpdateSnoozeRequest, which talks
1667
+ # about which fields can be updated.
1668
+ # @param [String] fields
1669
+ # Selector specifying which fields to include in a partial response.
1670
+ # @param [String] quota_user
1671
+ # Available to use for quota purposes for server-side applications. Can be any
1672
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1673
+ # @param [Google::Apis::RequestOptions] options
1674
+ # Request-specific options
1675
+ #
1676
+ # @yield [result, err] Result & error if block supplied
1677
+ # @yieldparam result [Google::Apis::MonitoringV3::Snooze] parsed result object
1678
+ # @yieldparam err [StandardError] error object if request failed
1679
+ #
1680
+ # @return [Google::Apis::MonitoringV3::Snooze]
1681
+ #
1682
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1683
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1684
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1685
+ def patch_project_snooze(name, snooze_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1686
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1687
+ command.request_representation = Google::Apis::MonitoringV3::Snooze::Representation
1688
+ command.request_object = snooze_object
1689
+ command.response_representation = Google::Apis::MonitoringV3::Snooze::Representation
1690
+ command.response_class = Google::Apis::MonitoringV3::Snooze
1691
+ command.params['name'] = name unless name.nil?
1692
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1693
+ command.query['fields'] = fields unless fields.nil?
1694
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1695
+ execute_or_queue_command(command, &block)
1696
+ end
1697
+
1532
1698
  # Creates or adds data to one or more time series. The response is empty if all
1533
1699
  # time series in the request were written. If any time series could not be
1534
1700
  # written, a corresponding failure message is included in the error response.
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.38.0
4
+ version: 0.39.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: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2022-12-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/main/generated/google-apis-monitoring_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.39.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: []