Stackdriver Monitoring V3 Client - Class CreateMetricDescriptorRequest (1.6.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
NameDescription
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
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMetricDescriptor

Required. The new custom metric descriptor.

Returns
TypeDescription
Google\Api\MetricDescriptor|null

hasMetricDescriptor

clearMetricDescriptor

setMetricDescriptor

Required. The new custom metric descriptor.

Parameter
NameDescription
var Google\Api\MetricDescriptor
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
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.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\CreateMetricDescriptorRequest