Google Cloud Service Control V1 Client - Class MetricValueSet (1.4.4)

Reference documentation and code samples for the Google Cloud Service Control V1 Client class MetricValueSet.

Represents a set of metric values in the same metric.

Each metric value in the set should have a unique combination of start time, end time, and label values.

Generated from protobuf message google.api.servicecontrol.v1.MetricValueSet

Namespace

Google \ Cloud \ ServiceControl \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_name string

The metric name defined in the service configuration.

↳ metric_values array<Google\Cloud\ServiceControl\V1\MetricValue>

The values in this metric.

getMetricName

The metric name defined in the service configuration.

Returns
Type Description
string

setMetricName

The metric name defined in the service configuration.

Parameter
Name Description
var string
Returns
Type Description
$this

getMetricValues

The values in this metric.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMetricValues

The values in this metric.

Parameter
Name Description
var array<Google\Cloud\ServiceControl\V1\MetricValue>
Returns
Type Description
$this