Stackdriver Monitoring V3 Client - Class CreateMetricDescriptorRequest (1.9.0)

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

The CreateMetricDescriptor request.

Generated from protobuf message google.monitoring.v3.CreateMetricDescriptorRequest

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: 4 projects/[PROJECT_ID_OR_NUMBER]

↳ metric_descriptor
Google\Api\MetricDescriptor

Required. The new custom metric descriptor.

getName

Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]

Returns
Type
Description
string

setName

Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getMetricDescriptor

Required. The new custom metric descriptor.

Returns
Type
Description

hasMetricDescriptor

clearMetricDescriptor

setMetricDescriptor

Required. The new custom metric descriptor.

Parameter
Name
Description
Returns
Type
Description
$this

static::build

Parameters
Name
Description
name
string

Required. The project on which to execute the request. The format is: 4 projects/[PROJECT_ID_OR_NUMBER]

metricDescriptor
Google\Api\MetricDescriptor

Required. The new custom metric descriptor.

Create a Mobile Website
View Site in Mobile | Classic
Share by: