Stackdriver Monitoring V3 Client - Class CreateServiceRequest (1.11.1)

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

The CreateService request.

Generated from protobuf message google.monitoring.v3.CreateServiceRequest

Namespace

Google \ Cloud \ Monitoring \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Resource name of the parent Metrics Scope. The format is: projects/[PROJECT_ID_OR_NUMBER]

↳ service_id string

Optional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern [a-z0-9\-]+

↳ service Service

Required. The Service to create.

getParent

Required. Resource name of the parent Metrics Scope. The format is: projects/[PROJECT_ID_OR_NUMBER]

Returns
Type Description
string

setParent

Required. Resource name of the parent Metrics Scope. The format is: projects/[PROJECT_ID_OR_NUMBER]

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceId

Optional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern [a-z0-9\-]+

Returns
Type Description
string

setServiceId

Optional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern [a-z0-9\-]+

Parameter
Name Description
var string
Returns
Type Description
$this

getService

Required. The Service to create.

Returns
Type Description
Service|null

hasService

clearService

setService

Required. The Service to create.

Parameter
Name Description
var Service
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. Resource name of the parent Metrics Scope. The format is:

projects/[PROJECT_ID_OR_NUMBER]

service Service

Required. The Service to create.

Returns
Type Description
CreateServiceRequest