Stackdriver Monitoring V3 Client - Class NotificationChannelStrategy (1.7.1)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class NotificationChannelStrategy.

Control over how the notification channels in notification_channels are notified when this alert fires, on a per-channel basis.

Generated from protobuf message google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy

Namespace

Google \ Cloud \ Monitoring \ V3 \ AlertPolicy \ AlertStrategy

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ notification_channel_names array

The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]

↳ renotify_interval Google\Protobuf\Duration

The frequency at which to send reminder notifications for open incidents.

getNotificationChannelNames

The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy.

The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNotificationChannelNames

The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy.

The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getRenotifyInterval

The frequency at which to send reminder notifications for open incidents.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasRenotifyInterval

clearRenotifyInterval

setRenotifyInterval

The frequency at which to send reminder notifications for open incidents.

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