Stackdriver Error Reporting V1beta1 Client - Class TimedCount (0.20.2)

Reference documentation and code samples for the Stackdriver Error Reporting V1beta1 Client class TimedCount.

The number of errors in a given time period.

All numbers are approximate since the error events are sampled before counting them.

Generated from protobuf message google.devtools.clouderrorreporting.v1beta1.TimedCount

Namespace

Google \ Cloud \ ErrorReporting \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ count int|string

Approximate number of occurrences in the given time period.

↳ start_time Google\Protobuf\Timestamp

Start of the time period to which count refers (included).

↳ end_time Google\Protobuf\Timestamp

End of the time period to which count refers (excluded).

getCount

Approximate number of occurrences in the given time period.

Returns
TypeDescription
int|string

setCount

Approximate number of occurrences in the given time period.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getStartTime

Start of the time period to which count refers (included).

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Start of the time period to which count refers (included).

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

End of the time period to which count refers (excluded).

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

End of the time period to which count refers (excluded).

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this