Reference documentation and code samples for the Stackdriver Monitoring V3 Client class Snooze.
A Snooze will prevent any alerts from being opened, and close any that
are already open. The Snooze will work on alerts that match the
criteria defined in the Snooze. The Snooze will be active from
interval.start_time through interval.end_time.
Generated from protobuf message google.monitoring.v3.Snooze
Namespace
Google \ Cloud \ Monitoring \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
Required. The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.
↳ display_name
string
Required. A display name for the Snooze. This can be, at most, 512 unicode characters.
getName
Required. Identifier. The name of the Snooze. The format is:
projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
The ID of the Snooze will be generated by the system.
Returns
Type
Description
string
setName
Required. Identifier. The name of the Snooze. The format is:
projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
The ID of the Snooze will be generated by the system.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCriteria
Required. This defines the criteria for applying the Snooze. See
Criteria for more information.
Required. The Snooze will be active from interval.start_time through
interval.end_time.
interval.start_time cannot be in the past. There is a 15 second clock
skew to account for the time it takes for a request to reach the API from
the UI.
Required. The Snooze will be active from interval.start_time through
interval.end_time.
interval.start_time cannot be in the past. There is a 15 second clock
skew to account for the time it takes for a request to reach the API from
the UI.
[[["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 Snooze (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.Snooze)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.Snooze)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.Snooze)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.Snooze)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.Snooze)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.Snooze)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.Snooze)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.Snooze)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.Snooze)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.Snooze)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.Snooze)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.Snooze)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.Snooze)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.Snooze) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class Snooze.\n\nA `Snooze` will prevent any alerts from being opened, and close any that\nare already open. The `Snooze` will work on alerts that match the\ncriteria defined in the `Snooze`. The `Snooze` will be active from\n`interval.start_time` through `interval.end_time`.\n\nGenerated from protobuf message `google.monitoring.v3.Snooze`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Identifier. The name of the `Snooze`. The format is:\nprojects/\\[PROJECT_ID_OR_NUMBER\\]/snoozes/\\[SNOOZE_ID\\]\nThe ID of the `Snooze` will be generated by the system.\n\n### setName\n\nRequired. Identifier. The name of the `Snooze`. The format is:\nprojects/\\[PROJECT_ID_OR_NUMBER\\]/snoozes/\\[SNOOZE_ID\\]\nThe ID of the `Snooze` will be generated by the system.\n\n### getCriteria\n\nRequired. This defines the criteria for applying the `Snooze`. See\n`Criteria` for more information.\n\n### hasCriteria\n\n### clearCriteria\n\n### setCriteria\n\nRequired. This defines the criteria for applying the `Snooze`. See\n`Criteria` for more information.\n\n### getInterval\n\nRequired. The `Snooze` will be active from `interval.start_time` through\n`interval.end_time`.\n\n`interval.start_time` cannot be in the past. There is a 15 second clock\nskew to account for the time it takes for a request to reach the API from\nthe UI.\n\n### hasInterval\n\n### clearInterval\n\n### setInterval\n\nRequired. The `Snooze` will be active from `interval.start_time` through\n`interval.end_time`.\n\n`interval.start_time` cannot be in the past. There is a 15 second clock\nskew to account for the time it takes for a request to reach the API from\nthe UI.\n\n### getDisplayName\n\nRequired. A display name for the `Snooze`. This can be, at most, 512\nunicode characters.\n\n### setDisplayName\n\nRequired. A display name for the `Snooze`. This can be, at most, 512\nunicode characters."]]