Reference documentation and code samples for the Stackdriver Monitoring V3 Client class Criteria.
Criteria specific to the AlertPolicy
s that this Snooze
applies to. The
Snooze
will suppress alerts that come from one of the AlertPolicy
s
whose names are supplied.
Generated from protobuf message google.monitoring.v3.Snooze.Criteria
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ policies |
array
The specific |
getPolicies
The specific AlertPolicy
names for the alert that should be snoozed.
The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 10 policies per snooze. This limit is checked during snooze creation.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setPolicies
The specific AlertPolicy
names for the alert that should be snoozed.
The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 10 policies per snooze. This limit is checked during snooze creation.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |