Stackdriver Monitoring V3 Client - Class CreateSnoozeRequest (1.9.0)

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

The message definition for creating a Snooze. Users must provide the body of the Snooze to be created but must omit the Snooze field, name.

Generated from protobuf message google.monitoring.v3.CreateSnoozeRequest

Namespace

Google \ Cloud \ Monitoring \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The project in which a Snooze should be created. The format is: projects/[PROJECT_ID_OR_NUMBER]

↳ snooze Google\Cloud\Monitoring\V3\Snooze

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

getParent

Required. The project in which a Snooze should be created. The format is: projects/[PROJECT_ID_OR_NUMBER]

Returns
TypeDescription
string

setParent

Required. The project in which a Snooze should be created. The format is: projects/[PROJECT_ID_OR_NUMBER]

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSnooze

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

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

hasSnooze

clearSnooze

setSnooze

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

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

static::build

Parameters
NameDescription
parent string

Required. The project in which a Snooze should be created. The format is:

projects/[PROJECT_ID_OR_NUMBER] Please see Google\Cloud\Monitoring\V3\SnoozeServiceClient::workspaceName() for help formatting this field.

snooze Google\Cloud\Monitoring\V3\Snooze

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\CreateSnoozeRequest