Stackdriver Monitoring V3 Client - Class PerformanceThreshold (1.2.2)

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

A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ performance Google\Cloud\Monitoring\V3\RequestBasedSli

RequestBasedSli to evaluate to judge window quality.

↳ basic_sli_performance Google\Cloud\Monitoring\V3\BasicSli

BasicSli to evaluate to judge window quality.

↳ threshold float

If window performance >= threshold, the window is counted as good.

getPerformance

RequestBasedSli to evaluate to judge window quality.

Generated from protobuf field .google.monitoring.v3.RequestBasedSli performance = 1;

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

hasPerformance

setPerformance

RequestBasedSli to evaluate to judge window quality.

Generated from protobuf field .google.monitoring.v3.RequestBasedSli performance = 1;

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

getBasicSliPerformance

BasicSli to evaluate to judge window quality.

Generated from protobuf field .google.monitoring.v3.BasicSli basic_sli_performance = 3;

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

hasBasicSliPerformance

setBasicSliPerformance

BasicSli to evaluate to judge window quality.

Generated from protobuf field .google.monitoring.v3.BasicSli basic_sli_performance = 3;

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

getThreshold

If window performance >= threshold, the window is counted as good.

Generated from protobuf field double threshold = 2;

Returns
TypeDescription
float

setThreshold

If window performance >= threshold, the window is counted as good.

Generated from protobuf field double threshold = 2;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getType

Returns
TypeDescription
string