Stackdriver Monitoring V3 Client - Class TimeSeriesRatio (1.2.2)

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

A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed.

Generated from protobuf message google.monitoring.v3.TimeSeriesRatio

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ good_service_filter string

A monitoring filter specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

↳ bad_service_filter string

A monitoring filter specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

↳ total_service_filter string

A monitoring filter specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

getGoodServiceFilter

A monitoring filter specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

Generated from protobuf field string good_service_filter = 4;

Returns
TypeDescription
string

setGoodServiceFilter

A monitoring filter specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

Generated from protobuf field string good_service_filter = 4;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBadServiceFilter

A monitoring filter specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality.

Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

Generated from protobuf field string bad_service_filter = 5;

Returns
TypeDescription
string

setBadServiceFilter

A monitoring filter specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality.

Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

Generated from protobuf field string bad_service_filter = 5;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTotalServiceFilter

A monitoring filter specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

Generated from protobuf field string total_service_filter = 6;

Returns
TypeDescription
string

setTotalServiceFilter

A monitoring filter specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

Generated from protobuf field string total_service_filter = 6;

Parameter
NameDescription
var string
Returns
TypeDescription
$this