class Metric extends Message

A specific metric, identified by specifying values for all of the labels of a [MetricDescriptor][google.api.MetricDescriptor].

Protobuf type Google\Api\Metric

Methods

__construct()

No description

string
getType()

An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].

setType(string $var)

An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].

RepeatedField
getLabels()

The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.

setLabels(array|RepeatedField $var)

The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.

Details

at line 34
__construct()

at line 46
string getType()

An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].

For example, custom.googleapis.com/invoice/paid/amount.

Generated from protobuf field string type = 3;

Return Value

string

at line 58
setType(string $var)

An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].

For example, custom.googleapis.com/invoice/paid/amount.

Generated from protobuf field string type = 3;

Parameters

string $var

at line 71
RepeatedField getLabels()

The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.

Generated from protobuf field map<string, string> labels = 2;

Return Value

RepeatedField

at line 83
setLabels(array|RepeatedField $var)

The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.

Generated from protobuf field map<string, string> labels = 2;

Parameters

array|RepeatedField $var