Reference documentation and code samples for the Stackdriver Monitoring V3 Client class Trigger.
Specifies how many time series must fail a predicate to trigger a
condition. If not specified, then a {count: 1}
trigger is used.
Generated from protobuf message google.monitoring.v3.AlertPolicy.Condition.Trigger
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ count |
int
The absolute number of time series that must fail the predicate for the condition to be triggered. |
↳ percent |
float
The percentage of time series that must fail the predicate for the condition to be triggered. |
getCount
The absolute number of time series that must fail the predicate for the condition to be triggered.
Generated from protobuf field int32 count = 1;
Returns | |
---|---|
Type | Description |
int |
hasCount
setCount
The absolute number of time series that must fail the predicate for the condition to be triggered.
Generated from protobuf field int32 count = 1;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getPercent
The percentage of time series that must fail the predicate for the condition to be triggered.
Generated from protobuf field double percent = 2;
Returns | |
---|---|
Type | Description |
float |
hasPercent
setPercent
The percentage of time series that must fail the predicate for the condition to be triggered.
Generated from protobuf field double percent = 2;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getType
Returns | |
---|---|
Type | Description |
string |