Stackdriver Monitoring V3 Client - Class WindowsBasedSli (1.5.1)

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

A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion.

Generated from protobuf message google.monitoring.v3.WindowsBasedSli

Namespace

Google \ Cloud \ Monitoring \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ good_bad_metric_filter string

A monitoring filter specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.

↳ good_total_ratio_threshold Google\Cloud\Monitoring\V3\WindowsBasedSli\PerformanceThreshold

A window is good if its performance is high enough.

↳ metric_mean_in_range Google\Cloud\Monitoring\V3\WindowsBasedSli\MetricRange

A window is good if the metric's value is in a good range, averaged across returned streams.

↳ metric_sum_in_range Google\Cloud\Monitoring\V3\WindowsBasedSli\MetricRange

A window is good if the metric's value is in a good range, summed across returned streams.

↳ window_period Google\Protobuf\Duration

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

getGoodBadMetricFilter

A monitoring filter specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.

Returns
TypeDescription
string

hasGoodBadMetricFilter

setGoodBadMetricFilter

A monitoring filter specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGoodTotalRatioThreshold

A window is good if its performance is high enough.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\WindowsBasedSli\PerformanceThreshold|null

hasGoodTotalRatioThreshold

setGoodTotalRatioThreshold

A window is good if its performance is high enough.

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

getMetricMeanInRange

A window is good if the metric's value is in a good range, averaged across returned streams.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\WindowsBasedSli\MetricRange|null

hasMetricMeanInRange

setMetricMeanInRange

A window is good if the metric's value is in a good range, averaged across returned streams.

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

getMetricSumInRange

A window is good if the metric's value is in a good range, summed across returned streams.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\WindowsBasedSli\MetricRange|null

hasMetricSumInRange

setMetricSumInRange

A window is good if the metric's value is in a good range, summed across returned streams.

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

getWindowPeriod

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasWindowPeriod

clearWindowPeriod

setWindowPeriod

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

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

getWindowCriterion

Returns
TypeDescription
string