Stackdriver Monitoring V3 Client - Class Criteria (1.12.1)

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

Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied.

Generated from protobuf message google.monitoring.v3.Snooze.Criteria

Namespace

Google \ Cloud \ Monitoring \ V3 \ Snooze

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ policies array

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 16 policies per snooze. This limit is checked during snooze creation.

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 16 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 16 policies per snooze. This limit is checked during snooze creation.

Parameter
Name Description
var string[]
Returns
Type Description
$this