Stackdriver Monitoring V3 Client - Class CreateNotificationChannelRequest (1.7.1)

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

The CreateNotificationChannel request.

Generated from protobuf message google.monitoring.v3.CreateNotificationChannelRequest

Namespace

Google \ Cloud \ Monitoring \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] This names the container into which the channel will be written, this does not name the newly created channel. The resulting channel's name will have a normalized version of this field as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel.

↳ notification_channel Google\Cloud\Monitoring\V3\NotificationChannel

Required. The definition of the NotificationChannel to create.

getName

Required. The project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] This names the container into which the channel will be written, this does not name the newly created channel. The resulting channel's name will have a normalized version of this field as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel.

Returns
TypeDescription
string

setName

Required. The project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] This names the container into which the channel will be written, this does not name the newly created channel. The resulting channel's name will have a normalized version of this field as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNotificationChannel

Required. The definition of the NotificationChannel to create.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\NotificationChannel|null

hasNotificationChannel

clearNotificationChannel

setNotificationChannel

Required. The definition of the NotificationChannel to create.

Parameter
NameDescription
var Google\Cloud\Monitoring\V3\NotificationChannel
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
name string

Required. The project on which to execute the request. The format is:

projects/[PROJECT_ID_OR_NUMBER]

This names the container into which the channel will be written, this does not name the newly created channel. The resulting channel's name will have a normalized version of this field as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel.

notificationChannel Google\Cloud\Monitoring\V3\NotificationChannel

Required. The definition of the NotificationChannel to create.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\CreateNotificationChannelRequest