Required for log-based alerting policies, i.e. policies with aLogMatchcondition. This limit is not implemented for alerting policies that do not have a LogMatch condition.
↳ notification_prompts
array
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].
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].
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].
Parameter
Name
Description
var
int[]
Returns
Type
Description
$this
getAutoClose
If an alerting policy that was active has no data for this long, any open
incidents will close
[[["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 AlertStrategy (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.AlertPolicy.AlertStrategy)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.AlertPolicy.AlertStrategy)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.AlertPolicy.AlertStrategy)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.AlertPolicy.AlertStrategy)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.AlertPolicy.AlertStrategy)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.AlertPolicy.AlertStrategy)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.AlertPolicy.AlertStrategy)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.AlertPolicy.AlertStrategy)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.AlertPolicy.AlertStrategy)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.AlertPolicy.AlertStrategy)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.AlertPolicy.AlertStrategy)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.AlertPolicy.AlertStrategy)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.AlertPolicy.AlertStrategy)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.AlertPolicy.AlertStrategy) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class AlertStrategy.\n\nControl over how the notification channels in `notification_channels`\nare notified when this alert fires.\n\nGenerated from protobuf message `google.monitoring.v3.AlertPolicy.AlertStrategy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3 \\\\ AlertPolicy\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNotificationRateLimit\n\nRequired for log-based alerting policies, i.e. policies with a `LogMatch`\ncondition.\n\nThis limit is not implemented for alerting policies that do not have\na LogMatch condition.\n\n### hasNotificationRateLimit\n\n### clearNotificationRateLimit\n\n### setNotificationRateLimit\n\nRequired for log-based alerting policies, i.e. policies with a `LogMatch`\ncondition.\n\nThis limit is not implemented for alerting policies that do not have\na LogMatch condition.\n\n### getNotificationPrompts\n\nFor log-based alert policies, the notification prompts is always\n\\[OPENED\\]. For non log-based alert policies, the notification prompts can\nbe \\[OPENED\\] or \\[OPENED, CLOSED\\].\n\n### setNotificationPrompts\n\nFor log-based alert policies, the notification prompts is always\n\\[OPENED\\]. For non log-based alert policies, the notification prompts can\nbe \\[OPENED\\] or \\[OPENED, CLOSED\\].\n\n### getAutoClose\n\nIf an alerting policy that was active has no data for this long, any open\nincidents will close\n\n### hasAutoClose\n\n### clearAutoClose\n\n### setAutoClose\n\nIf an alerting policy that was active has no data for this long, any open\nincidents will close\n\n### getNotificationChannelStrategy\n\nControl how notifications will be sent out, on a per-channel basis.\n\n### setNotificationChannelStrategy\n\nControl how notifications will be sent out, on a per-channel basis."]]