Stackdriver Trace V2 Client - Class TimeEvent (1.8.10)

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
Name
Description
data
array

Optional. Data for populating the Message object.

↳ time
Google\Protobuf\Timestamp

The timestamp indicating the time the event occurred.

↳ annotation
TimeEvent\Annotation

Text annotation with a set of attributes.

↳ message_event
TimeEvent\MessageEvent

An event describing a message sent/received between Spans.

getTime

The timestamp indicating the time the event occurred.

Returns
Type
Description

hasTime

clearTime

setTime

The timestamp indicating the time the event occurred.

Parameter
Name
Description
Returns
Type
Description
$this

getAnnotation

Text annotation with a set of attributes.

Returns
Type
Description

hasAnnotation

setAnnotation

Text annotation with a set of attributes.

Parameter
Name
Description
Returns
Type
Description
$this

getMessageEvent

An event describing a message sent/received between Spans.

Returns
Type
Description

hasMessageEvent

setMessageEvent

An event describing a message sent/received between Spans.

Parameter
Name
Description
Returns
Type
Description
$this

getValue

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: