class CreateMetricDescriptorRequest extends Message

The CreateMetricDescriptor request.

Protobuf type Google\Monitoring\V3\CreateMetricDescriptorRequest

Methods

__construct()

No description

string
getName()

The project on which to execute the request. The format is "projects/{project_id_or_number}".

setName(string $var)

The project on which to execute the request. The format is "projects/{project_id_or_number}".

Details

at line 33
__construct()

at line 45
string getName()

The project on which to execute the request. The format is "projects/{project_id_or_number}".

Generated from protobuf field string name = 3;

Return Value

string

at line 57
setName(string $var)

The project on which to execute the request. The format is "projects/{project_id_or_number}".

Generated from protobuf field string name = 3;

Parameters

string $var

at line 70
MetricDescriptor getMetricDescriptor()

The new custom metric descriptor.

Generated from protobuf field .google.api.MetricDescriptor metric_descriptor = 2;

Return Value

MetricDescriptor

at line 82
setMetricDescriptor(MetricDescriptor $var)

The new custom metric descriptor.

Generated from protobuf field .google.api.MetricDescriptor metric_descriptor = 2;

Parameters

MetricDescriptor $var