Stackdriver Monitoring V3 Client - Class Point (1.2.2)

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

A single data point in a time series.

Generated from protobuf message google.monitoring.v3.Point

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ interval Google\Cloud\Monitoring\V3\TimeInterval

The time interval to which the data point applies. For GAUGE metrics, the start time is optional, but if it is supplied, it must equal the end time. For DELTA metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start and end time should specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.

↳ value Google\Cloud\Monitoring\V3\TypedValue

The value of the data point.

getInterval

The time interval to which the data point applies. For GAUGE metrics, the start time is optional, but if it is supplied, it must equal the end time. For DELTA metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start and end time should specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.

Generated from protobuf field .google.monitoring.v3.TimeInterval interval = 1;

Returns
TypeDescription
Google\Cloud\Monitoring\V3\TimeInterval|null

hasInterval

clearInterval

setInterval

The time interval to which the data point applies. For GAUGE metrics, the start time is optional, but if it is supplied, it must equal the end time. For DELTA metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start and end time should specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.

Generated from protobuf field .google.monitoring.v3.TimeInterval interval = 1;

Parameter
NameDescription
var Google\Cloud\Monitoring\V3\TimeInterval
Returns
TypeDescription
$this

getValue

The value of the data point.

Generated from protobuf field .google.monitoring.v3.TypedValue value = 2;

Returns
TypeDescription
Google\Cloud\Monitoring\V3\TypedValue|null

hasValue

clearValue

setValue

The value of the data point.

Generated from protobuf field .google.monitoring.v3.TypedValue value = 2;

Parameter
NameDescription
var Google\Cloud\Monitoring\V3\TypedValue
Returns
TypeDescription
$this