Stackdriver Monitoring V3 Client - Class Hourly (2.0.0)

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

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

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

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 hours between runs. Must be greater than or equal to 1 hour and less than or equal to 48 hours.

↳ minute_offset int

Optional. The number of minutes after the hour (in UTC) to run the query. Must be greater than or equal to 0 minutes and less than or equal to 59 minutes. If left unspecified, then an arbitrary offset is used.

getPeriodicity

Required. The number of hours between runs. Must be greater than or equal to 1 hour and less than or equal to 48 hours.

Returns
Type Description
int

setPeriodicity

Required. The number of hours between runs. Must be greater than or equal to 1 hour and less than or equal to 48 hours.

Parameter
Name Description
var int
Returns
Type Description
$this

getMinuteOffset

Optional. The number of minutes after the hour (in UTC) to run the query. Must be greater than or equal to 0 minutes and less than or equal to 59 minutes. If left unspecified, then an arbitrary offset is used.

Returns
Type Description
int

hasMinuteOffset

clearMinuteOffset

setMinuteOffset

Optional. The number of minutes after the hour (in UTC) to run the query. Must be greater than or equal to 0 minutes and less than or equal to 59 minutes. If left unspecified, then an arbitrary offset is used.

Parameter
Name Description
var int
Returns
Type Description
$this