Reference documentation and code samples for the Stackdriver Monitoring V3 Client class UpdateSnoozeRequest.
The message definition for updating aSnooze. The field,snooze.nameidentifies theSnoozeto be updated. The remainder ofsnoozegives the
content theSnoozein question will be assigned.
What fields can be updated depends on the start time and end time of theSnooze.
end time is in the past: TheseSnoozes are considered
read-only and cannot be updated.
start time is in the past and end time is in the future:display_nameandinterval.end_timecan be updated.
start time is in the future:display_name,interval.start_timeandinterval.end_timecan be updated.
Generated from protobuf messagegoogle.monitoring.v3.UpdateSnoozeRequest
Required. The fields to update. For each field listed inupdate_mask: * * If theSnoozeobject supplied in theUpdateSnoozeRequesthas a value for that field, the value of the field in the existingSnoozewill be set to the value of the field in the suppliedSnooze. * * If the field does not have a value in the suppliedSnooze, the field in the existingSnoozeis set to its default value. Fields not listed retain their existing value. The following are the field names that are accepted inupdate_mask: * *display_name* *interval.start_time* *interval.end_timeThat said, the start time and end time of theSnoozedetermines which fields can legally be updated. Before attempting an update, users should consult the documentation forUpdateSnoozeRequest, which talks about which fields can be updated.
getSnooze
Required. TheSnoozeto update. Must have the name field present.
If theSnoozeobject supplied in theUpdateSnoozeRequesthas a
value for that field, the value of the field in the existingSnoozewill be set to the value of the field in the suppliedSnooze.
If the field does not have a value in the suppliedSnooze, the field
in the existingSnoozeis set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted inupdate_mask:
display_name
interval.start_time
interval.end_timeThat said, the start time and end time of theSnoozedetermines which
fields can legally be updated. Before attempting an update, users should
consult the documentation forUpdateSnoozeRequest, which talks about
which fields can be updated.
If theSnoozeobject supplied in theUpdateSnoozeRequesthas a
value for that field, the value of the field in the existingSnoozewill be set to the value of the field in the suppliedSnooze.
If the field does not have a value in the suppliedSnooze, the field
in the existingSnoozeis set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted inupdate_mask:
display_name
interval.start_time
interval.end_timeThat said, the start time and end time of theSnoozedetermines which
fields can legally be updated. Before attempting an update, users should
consult the documentation forUpdateSnoozeRequest, which talks about
which fields can be updated.
If theSnoozeobject supplied in theUpdateSnoozeRequesthas a
value for that field, the value of the field in the existingSnoozewill be set to the value of the field in the suppliedSnooze.
If the field does not have a value in the suppliedSnooze, the field
in the existingSnoozeis set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted inupdate_mask:
display_name
interval.start_time
interval.end_time
That said, the start time and end time of theSnoozedetermines which
fields can legally be updated. Before attempting an update, users should
consult the documentation forUpdateSnoozeRequest, which talks about
which fields can be updated.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Monitoring V3 Client - Class UpdateSnoozeRequest (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.UpdateSnoozeRequest)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.UpdateSnoozeRequest)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.UpdateSnoozeRequest)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.UpdateSnoozeRequest)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.UpdateSnoozeRequest)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.UpdateSnoozeRequest)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.UpdateSnoozeRequest)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.UpdateSnoozeRequest)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.UpdateSnoozeRequest)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.UpdateSnoozeRequest)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.UpdateSnoozeRequest)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.UpdateSnoozeRequest)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.UpdateSnoozeRequest)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.UpdateSnoozeRequest) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class UpdateSnoozeRequest.\n\nThe message definition for updating a `Snooze`. The field, `snooze.name`\nidentifies the `Snooze` to be updated. The remainder of `snooze` gives the\ncontent the `Snooze` in question will be assigned.\n\nWhat fields can be updated depends on the start time and end time of the\n`Snooze`.\n\n- end time is in the past: These `Snooze`s are considered read-only and cannot be updated.\n- start time is in the past and end time is in the future: `display_name` and `interval.end_time` can be updated.\n- start time is in the future: `display_name`, `interval.start_time` and `interval.end_time` can be updated.\n\nGenerated from protobuf message `google.monitoring.v3.UpdateSnoozeRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSnooze\n\nRequired. The `Snooze` to update. Must have the name field present.\n\n### hasSnooze\n\n### clearSnooze\n\n### setSnooze\n\nRequired. The `Snooze` to update. Must have the name field present.\n\n### getUpdateMask\n\nRequired. The fields to update.\n\nFor each field listed in `update_mask`:\n\n- 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`.\n- 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`:\n- `display_name`\n- `interval.start_time`\n- `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.\n\n### hasUpdateMask\n\n### clearUpdateMask\n\n### setUpdateMask\n\nRequired. The fields to update.\n\nFor each field listed in `update_mask`:\n\n- 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`.\n- 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`:\n- `display_name`\n- `interval.start_time`\n- `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.\n\n### static::build"]]