[[["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::AlertPolicy::AlertStrategy (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-AlertPolicy-AlertStrategy)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy) \nReference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy.\n\nControl over how the notification channels in `notification_channels`\nare notified when this alert fires. \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### #auto_close\n\n def auto_close() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- If an alerting policy that was active has no data for this long, any open incidents will close\n\n### #auto_close=\n\n def auto_close=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- If an alerting policy that was active has no data for this long, any open incidents will close \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- If an alerting policy that was active has no data for this long, any open incidents will close\n\n### #notification_channel_strategy\n\n def notification_channel_strategy() -\u003e ::Array\u003c::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationChannelStrategy\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationChannelStrategy](./Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy-NotificationChannelStrategy)\\\u003e) --- Control how notifications will be sent out, on a per-channel basis.\n\n### #notification_channel_strategy=\n\n def notification_channel_strategy=(value) -\u003e ::Array\u003c::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationChannelStrategy\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationChannelStrategy](./Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy-NotificationChannelStrategy)\\\u003e) --- Control how notifications will be sent out, on a per-channel basis. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationChannelStrategy](./Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy-NotificationChannelStrategy)\\\u003e) --- Control how notifications will be sent out, on a per-channel basis.\n\n### #notification_prompts\n\n def notification_prompts() -\u003e ::Array\u003c::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationPrompt\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationPrompt](./Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy-NotificationPrompt)\\\u003e) --- For log-based alert policies, the notification prompts is always \\[OPENED\\]. For non log-based alert policies, the notification prompts can be \\[OPENED\\] or \\[OPENED, CLOSED\\].\n\n### #notification_prompts=\n\n def notification_prompts=(value) -\u003e ::Array\u003c::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationPrompt\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationPrompt](./Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy-NotificationPrompt)\\\u003e) --- For log-based alert policies, the notification prompts is always \\[OPENED\\]. For non log-based alert policies, the notification prompts can be \\[OPENED\\] or \\[OPENED, CLOSED\\]. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationPrompt](./Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy-NotificationPrompt)\\\u003e) --- For log-based alert policies, the notification prompts is always \\[OPENED\\]. For non log-based alert policies, the notification prompts can be \\[OPENED\\] or \\[OPENED, CLOSED\\].\n\n### #notification_rate_limit\n\n def notification_rate_limit() -\u003e ::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationRateLimit\n\n**Returns**\n\n- ([::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationRateLimit](./Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy-NotificationRateLimit)) --- Required for log-based alerting policies, i.e. policies with a `LogMatch` condition.\n\n\n This limit is not implemented for alerting policies that do not have\n a LogMatch condition.\n\n### #notification_rate_limit=\n\n def notification_rate_limit=(value) -\u003e ::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationRateLimit\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationRateLimit](./Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy-NotificationRateLimit)) --- Required for log-based alerting policies, i.e. policies with a `LogMatch` condition.\n\n\n This limit is not implemented for alerting policies that do not have\na LogMatch condition. \n**Returns**\n\n- ([::Google::Cloud::Monitoring::V3::AlertPolicy::AlertStrategy::NotificationRateLimit](./Google-Cloud-Monitoring-V3-AlertPolicy-AlertStrategy-NotificationRateLimit)) --- Required for log-based alerting policies, i.e. policies with a `LogMatch` condition.\n\n\n This limit is not implemented for alerting policies that do not have\n a LogMatch condition."]]