public sealed class UpdateSnoozeRequest : IMessage<UpdateSnoozeRequest>, IEquatable<UpdateSnoozeRequest>, IDeepCloneable<UpdateSnoozeRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Monitoring v3 API class UpdateSnoozeRequest.
The message definition for updating a Snooze. The field, snooze.name
identifies the Snooze to be updated. The remainder of snooze gives the
content the Snooze in question will be assigned.
What fields can be updated depends on the start time and end time of the
Snooze.
end time is in the past: These Snoozes are considered
read-only and cannot be updated.
start time is in the past and end time is in the future: display_name
and interval.end_time can be updated.
start time is in the future: display_name, interval.start_time and
interval.end_time can be updated.
If the Snooze object supplied in the UpdateSnoozeRequest has a
value for that field, the value of the field in the existing Snooze
will be set to the value of the field in the supplied Snooze.
If the field does not have a value in the supplied Snooze, the field
in the existing Snooze is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in update_mask:
display_name
interval.start_time
interval.end_time
That said, the start time and end time of the Snooze determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for UpdateSnoozeRequest, which talks about
which fields can be updated.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eUpdateSnoozeRequest\u003c/code\u003e class within the Google Cloud Monitoring v3 API, spanning versions from 2.3.0 to the latest 3.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateSnoozeRequest\u003c/code\u003e class is used to modify an existing \u003ccode\u003eSnooze\u003c/code\u003e, requiring a \u003ccode\u003esnooze.name\u003c/code\u003e identifier and content updates.\u003c/p\u003e\n"],["\u003cp\u003eThe ability to update fields such as \u003ccode\u003edisplay_name\u003c/code\u003e, \u003ccode\u003einterval.start_time\u003c/code\u003e, and \u003ccode\u003einterval.end_time\u003c/code\u003e depends on whether the snooze's start and end times are in the past or future, with past snoozes being read-only.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateMask\u003c/code\u003e property determines which fields are updated, and only \u003ccode\u003edisplay_name\u003c/code\u003e, \u003ccode\u003einterval.start_time\u003c/code\u003e, and \u003ccode\u003einterval.end_time\u003c/code\u003e can be used as accepted values in the \u003ccode\u003eupdate_mask\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eThis webpage also shows that the \u003ccode\u003eUpdateSnoozeRequest\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and contains constructors for creating new instances.\u003c/p\u003e\n"]]],[],null,[]]