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.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ notification_rate_limit |
AlertStrategy\NotificationRateLimit
Required for alert policies with a |
↳ auto_close |
Google\Protobuf\Duration
If an alert 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 alert policies with a LogMatch
condition.
This limit is not implemented for alert policies that are not log-based.
Returns | |
---|---|
Type | Description |
AlertStrategy\NotificationRateLimit|null |
hasNotificationRateLimit
clearNotificationRateLimit
setNotificationRateLimit
Required for alert policies with a LogMatch
condition.
This limit is not implemented for alert policies that are not log-based.
Parameter | |
---|---|
Name | Description |
var |
AlertStrategy\NotificationRateLimit
|
Returns | |
---|---|
Type | Description |
$this |
getAutoClose
If an alert policy that was active has no data for this long, any open incidents will close
Returns | |
---|---|
Type | Description |
Google\Protobuf\Duration|null |
hasAutoClose
clearAutoClose
setAutoClose
If an alert policy that was active has no data for this long, any open incidents will close
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |
getNotificationChannelStrategy
Control how notifications will be sent out, on a per-channel basis.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setNotificationChannelStrategy
Control how notifications will be sent out, on a per-channel basis.
Parameter | |
---|---|
Name | Description |
var |
array<AlertStrategy\NotificationChannelStrategy>
|
Returns | |
---|---|
Type | Description |
$this |