Reference documentation and code samples for the Stackdriver Monitoring V3 Client class AlertStrategy.
Control over how the notification channels in notification_channels
are notified when this alert fires.
Generated from protobuf message google.monitoring.v3.AlertPolicy.AlertStrategy
Namespace
Google \ Cloud \ Monitoring \ V3 \ AlertPolicyMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ notification_rate_limit
AlertStrategy\NotificationRateLimit
Required for log-based alerting policies, i.e. policies with a LogMatch
condition. 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].
↳ auto_close
Google\Protobuf\Duration
If an alerting policy that was active has no data for this long, any open incidents will close
↳ notification_channel_strategy
array< AlertStrategy\NotificationChannelStrategy
>
Control how notifications will be sent out, on a per-channel basis.
getNotificationRateLimit
Required for log-based alerting policies, i.e. policies with a LogMatch
condition.
This limit is not implemented for alerting policies that do not have a LogMatch condition.
hasNotificationRateLimit
clearNotificationRateLimit
setNotificationRateLimit
Required for log-based alerting policies, i.e. policies with a LogMatch
condition.
This limit is not implemented for alerting policies that do not have a LogMatch condition.
$this
getNotificationPrompts
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].
setNotificationPrompts
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].
var
int[]
$this
getAutoClose
If an alerting policy that was active has no data for this long, any open incidents will close
hasAutoClose
clearAutoClose
setAutoClose
If an alerting policy that was active has no data for this long, any open incidents will close
$this
getNotificationChannelStrategy
Control how notifications will be sent out, on a per-channel basis.
setNotificationChannelStrategy
Control how notifications will be sent out, on a per-channel basis.
$this