Stackdriver Monitoring V3 Client - Class TimeSeriesQueryLanguageCondition (1.11.0)

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

A condition type that allows alert policies to be defined using Monitoring Query Language.

Generated from protobuf message google.monitoring.v3.AlertPolicy.Condition.TimeSeriesQueryLanguageCondition

Namespace

Google \ Cloud \ Monitoring \ V3 \ AlertPolicy \ Condition

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ query string

Monitoring Query Language query that generates time series data and describes a condition for alerting on that data.

↳ summary string

A short explanation of what the query represents. For example: "Error ratio exceeds 15% for >5% of servers in >2 regions"

getQuery

Monitoring Query Language query that generates time series data and describes a condition for alerting on that data.

Returns
Type Description
string

setQuery

Monitoring Query Language query that generates time series data and describes a condition for alerting on that data.

Parameter
Name Description
var string
Returns
Type Description
$this

getSummary

A short explanation of what the query represents. For example: "Error ratio exceeds 15% for >5% of servers in >2 regions"

Returns
Type Description
string

setSummary

A short explanation of what the query represents. For example: "Error ratio exceeds 15% for >5% of servers in >2 regions"

Parameter
Name Description
var string
Returns
Type Description
$this