Stackdriver Monitoring V3 Client - Class CreateNotificationChannelRequest (1.10.3)

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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getNotificationChannel

Required. The definition of the NotificationChannel to create.

Returns
Type Description
Google\Cloud\Monitoring\V3\NotificationChannel|null

hasNotificationChannel

clearNotificationChannel

setNotificationChannel

Required. The definition of the NotificationChannel to create.

Parameter
Name Description
var Google\Cloud\Monitoring\V3\NotificationChannel
Returns
Type Description
$this

static::build

Parameters
Name Description
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
Type Description
Google\Cloud\Monitoring\V3\CreateNotificationChannelRequest