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 document provides reference information for the \u003ccode\u003eUpdateSnoozeRequest\u003c/code\u003e class within the Google Cloud Monitoring v3 API, which is used for updating a \u003ccode\u003eSnooze\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateSnoozeRequest\u003c/code\u003e class has properties for \u003ccode\u003eSnooze\u003c/code\u003e and \u003ccode\u003eUpdateMask\u003c/code\u003e, specifying the \u003ccode\u003eSnooze\u003c/code\u003e to be updated and the fields to update, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eGoogle.Cloud.Monitoring.V3\u003c/code\u003e package is 3.15.0, and several previous versions, from 2.3.0 to 3.14.0, are available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe fields that can be updated in a \u003ccode\u003eSnooze\u003c/code\u003e resource, such as \u003ccode\u003edisplay_name\u003c/code\u003e, \u003ccode\u003einterval.start_time\u003c/code\u003e, and \u003ccode\u003einterval.end_time\u003c/code\u003e, depend on the start and end times of the \u003ccode\u003eSnooze\u003c/code\u003e being in the past or future.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdateSnoozeRequest\u003c/code\u003e implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, allowing for message handling, equality comparisons, deep cloning, and buffer message operations, respectively.\u003c/p\u003e\n"]]],[],null,[]]