Google Cloud Service Control V1 Client - Class MetricValue (1.0.6)

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

Represents a single metric value.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ labels array|Google\Protobuf\Internal\MapField

The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.

↳ start_time Google\Protobuf\Timestamp

The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.

↳ end_time Google\Protobuf\Timestamp

The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.

↳ bool_value bool

A boolean value.

↳ int64_value int|string

A signed 64-bit integer value.

↳ double_value float

A double precision floating point value.

↳ string_value string

A text string value.

↳ distribution_value Google\Cloud\ServiceControl\V1\Distribution

A distribution value.

getLabels

The labels describing the metric value.

See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

The labels describing the metric value.

See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getStartTime

The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getBoolValue

A boolean value.

Returns
TypeDescription
bool

hasBoolValue

setBoolValue

A boolean value.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getInt64Value

A signed 64-bit integer value.

Returns
TypeDescription
int|string

hasInt64Value

setInt64Value

A signed 64-bit integer value.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getDoubleValue

A double precision floating point value.

Returns
TypeDescription
float

hasDoubleValue

setDoubleValue

A double precision floating point value.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getStringValue

A text string value.

Returns
TypeDescription
string

hasStringValue

setStringValue

A text string value.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDistributionValue

A distribution value.

Returns
TypeDescription
Google\Cloud\ServiceControl\V1\Distribution|null

hasDistributionValue

setDistributionValue

A distribution value.

Parameter
NameDescription
var Google\Cloud\ServiceControl\V1\Distribution
Returns
TypeDescription
$this

getValue

Returns
TypeDescription
string