Stackdriver Trace V2 Client - Class TimeEvents (1.4.11)

Reference documentation and code samples for the Stackdriver Trace V2 Client class TimeEvents.

A collection of TimeEvents. A TimeEvent is a time-stamped annotation on the span, consisting of either user-supplied key:value pairs, or details of a message sent/received between Spans.

Generated from protobuf message google.devtools.cloudtrace.v2.Span.TimeEvents

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ time_event array<Google\Cloud\Trace\V2\Span\TimeEvent>

A collection of TimeEvents.

↳ dropped_annotations_count int

The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.

↳ dropped_message_events_count int

The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.

getTimeEvent

A collection of TimeEvents.

Generated from protobuf field repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTimeEvent

A collection of TimeEvents.

Generated from protobuf field repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;

Parameter
NameDescription
var array<Google\Cloud\Trace\V2\Span\TimeEvent>
Returns
TypeDescription
$this

getDroppedAnnotationsCount

The number of dropped annotations in all the included time events.

If the value is 0, then no annotations were dropped.

Generated from protobuf field int32 dropped_annotations_count = 2;

Returns
TypeDescription
int

setDroppedAnnotationsCount

The number of dropped annotations in all the included time events.

If the value is 0, then no annotations were dropped.

Generated from protobuf field int32 dropped_annotations_count = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDroppedMessageEventsCount

The number of dropped message events in all the included time events.

If the value is 0, then no message events were dropped.

Generated from protobuf field int32 dropped_message_events_count = 3;

Returns
TypeDescription
int

setDroppedMessageEventsCount

The number of dropped message events in all the included time events.

If the value is 0, then no message events were dropped.

Generated from protobuf field int32 dropped_message_events_count = 3;

Parameter
NameDescription
var int
Returns
TypeDescription
$this