Stackdriver Monitoring V3 Client - Class AlertStrategy (1.2.2)

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ notification_rate_limit Google\Cloud\Monitoring\V3\AlertPolicy\AlertStrategy\NotificationRateLimit

Required for alert policies with a LogMatch condition. This limit is not implemented for alert policies that are not log-based.

↳ auto_close Google\Protobuf\Duration

If an alert policy that was active has no data for this long, any open incidents will close

getNotificationRateLimit

Required for alert policies with a LogMatch condition.

This limit is not implemented for alert policies that are not log-based.

Generated from protobuf field .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;

Returns
TypeDescription
Google\Cloud\Monitoring\V3\AlertPolicy\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.

Generated from protobuf field .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;

Parameter
NameDescription
var Google\Cloud\Monitoring\V3\AlertPolicy\AlertStrategy\NotificationRateLimit
Returns
TypeDescription
$this

getAutoClose

If an alert policy that was active has no data for this long, any open incidents will close

Generated from protobuf field .google.protobuf.Duration auto_close = 3;

Returns
TypeDescription
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

Generated from protobuf field .google.protobuf.Duration auto_close = 3;

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this