Stackdriver Monitoring V3 Client - Class Daily (2.0.0)

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

Used to schedule the query to run every so many days.

Generated from protobuf message google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily

Namespace

Google \ Cloud \ Monitoring \ V3 \ AlertPolicy \ Condition \ SqlCondition

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ periodicity int

Required. The number of days between runs. Must be greater than or equal to 1 day and less than or equal to 31 days.

↳ execution_time Google\Type\TimeOfDay

Optional. The time of day (in UTC) at which the query should run. If left unspecified, the server picks an arbitrary time of day and runs the query at the same time each day.

getPeriodicity

Required. The number of days between runs. Must be greater than or equal to 1 day and less than or equal to 31 days.

Returns
Type Description
int

setPeriodicity

Required. The number of days between runs. Must be greater than or equal to 1 day and less than or equal to 31 days.

Parameter
Name Description
var int
Returns
Type Description
$this

getExecutionTime

Optional. The time of day (in UTC) at which the query should run. If left unspecified, the server picks an arbitrary time of day and runs the query at the same time each day.

Returns
Type Description
Google\Type\TimeOfDay|null

hasExecutionTime

clearExecutionTime

setExecutionTime

Optional. The time of day (in UTC) at which the query should run. If left unspecified, the server picks an arbitrary time of day and runs the query at the same time each day.

Parameter
Name Description
var Google\Type\TimeOfDay
Returns
Type Description
$this