Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::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.
(::Google::Cloud::Monitoring::V3::TimeInterval) — 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.
value (::Google::Cloud::Monitoring::V3::TimeInterval) — 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.
Returns
(::Google::Cloud::Monitoring::V3::TimeInterval) — 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.
#name
defname()->::String
Returns
(::String) — Required. Identifier. The name of the Snooze. The format is:
[[["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,["# Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::Snooze (v1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-Snooze)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-Snooze)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-Snooze)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-Snooze)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-Snooze)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-Snooze)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-Snooze)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-Snooze)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-Snooze)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-Snooze)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-Snooze)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-Snooze)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-Snooze)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-Snooze)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-Snooze)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-Snooze)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-Snooze)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-Snooze)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-Snooze)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-Snooze) \nReference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::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\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #criteria\n\n def criteria() -\u003e ::Google::Cloud::Monitoring::V3::Snooze::Criteria\n\n**Returns**\n\n- ([::Google::Cloud::Monitoring::V3::Snooze::Criteria](./Google-Cloud-Monitoring-V3-Snooze-Criteria)) --- Required. This defines the criteria for applying the `Snooze`. See `Criteria` for more information.\n\n### #criteria=\n\n def criteria=(value) -\u003e ::Google::Cloud::Monitoring::V3::Snooze::Criteria\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Monitoring::V3::Snooze::Criteria](./Google-Cloud-Monitoring-V3-Snooze-Criteria)) --- Required. This defines the criteria for applying the `Snooze`. See `Criteria` for more information. \n**Returns**\n\n- ([::Google::Cloud::Monitoring::V3::Snooze::Criteria](./Google-Cloud-Monitoring-V3-Snooze-Criteria)) --- Required. This defines the criteria for applying the `Snooze`. See `Criteria` for more information.\n\n### #display_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. A display name for the `Snooze`. This can be, at most, 512 unicode characters.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. A display name for the `Snooze`. This can be, at most, 512 unicode characters. \n**Returns**\n\n- (::String) --- Required. A display name for the `Snooze`. This can be, at most, 512 unicode characters.\n\n### #interval\n\n def interval() -\u003e ::Google::Cloud::Monitoring::V3::TimeInterval\n\n**Returns**\n\n- ([::Google::Cloud::Monitoring::V3::TimeInterval](./Google-Cloud-Monitoring-V3-TimeInterval)) --- 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.\n\n### #interval=\n\n def interval=(value) -\u003e ::Google::Cloud::Monitoring::V3::TimeInterval\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Monitoring::V3::TimeInterval](./Google-Cloud-Monitoring-V3-TimeInterval)) --- 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. \n**Returns**\n\n- ([::Google::Cloud::Monitoring::V3::TimeInterval](./Google-Cloud-Monitoring-V3-TimeInterval)) --- 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.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Identifier. The name of the `Snooze`. The format is:\n\n\n projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]\n\n The ID of the `Snooze` will be generated by the system.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Identifier. The name of the `Snooze`. The format is:\n\n\n projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]\n\nThe ID of the `Snooze` will be generated by the system. \n**Returns**\n\n- (::String) --- Required. Identifier. The name of the `Snooze`. The format is:\n\n\n projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]\n\n The ID of the `Snooze` will be generated by the system."]]