Stackdriver Monitoring V3 Client - Class MetricRange (1.2.2)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class MetricRange.

A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.

Generated from protobuf message google.monitoring.v3.WindowsBasedSli.MetricRange

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ time_series string

A monitoring filter specifying the TimeSeries to use for evaluating window quality.

↳ range Google\Cloud\Monitoring\V3\Range

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

getTimeSeries

A monitoring filter specifying the TimeSeries to use for evaluating window quality.

Generated from protobuf field string time_series = 1;

Returns
TypeDescription
string

setTimeSeries

A monitoring filter specifying the TimeSeries to use for evaluating window quality.

Generated from protobuf field string time_series = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRange

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

Generated from protobuf field .google.monitoring.v3.Range range = 4;

Returns
TypeDescription
Google\Cloud\Monitoring\V3\Range|null

hasRange

clearRange

setRange

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

Generated from protobuf field .google.monitoring.v3.Range range = 4;

Parameter
NameDescription
var Google\Cloud\Monitoring\V3\Range
Returns
TypeDescription
$this