Stackdriver Trace V2 Client - Class TimeEvent (1.8.0)

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

A time-stamped annotation or message event in the Span.

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

Namespace

Google \ Cloud \ Trace \ V2 \ Span

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ time Google\Protobuf\Timestamp

The timestamp indicating the time the event occurred.

↳ annotation Google\Cloud\Trace\V2\Span\TimeEvent\Annotation

Text annotation with a set of attributes.

↳ message_event Google\Cloud\Trace\V2\Span\TimeEvent\MessageEvent

An event describing a message sent/received between Spans.

getTime

The timestamp indicating the time the event occurred.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasTime

clearTime

setTime

The timestamp indicating the time the event occurred.

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

getAnnotation

Text annotation with a set of attributes.

Returns
TypeDescription
Google\Cloud\Trace\V2\Span\TimeEvent\Annotation|null

hasAnnotation

setAnnotation

Text annotation with a set of attributes.

Parameter
NameDescription
var Google\Cloud\Trace\V2\Span\TimeEvent\Annotation
Returns
TypeDescription
$this

getMessageEvent

An event describing a message sent/received between Spans.

Returns
TypeDescription
Google\Cloud\Trace\V2\Span\TimeEvent\MessageEvent|null

hasMessageEvent

setMessageEvent

An event describing a message sent/received between Spans.

Parameter
NameDescription
var Google\Cloud\Trace\V2\Span\TimeEvent\MessageEvent
Returns
TypeDescription
$this

getValue

Returns
TypeDescription
string