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 \ SpanMethods
__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 |
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 | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasTime
clearTime
setTime
The timestamp indicating the time the event occurred.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getAnnotation
Text annotation with a set of attributes.
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\Span\TimeEvent\Annotation|null |
hasAnnotation
setAnnotation
Text annotation with a set of attributes.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\Span\TimeEvent\Annotation
|
Returns | |
---|---|
Type | Description |
$this |
getMessageEvent
An event describing a message sent/received between Spans.
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\Span\TimeEvent\MessageEvent|null |
hasMessageEvent
setMessageEvent
An event describing a message sent/received between Spans.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\Span\TimeEvent\MessageEvent
|
Returns | |
---|---|
Type | Description |
$this |
getValue
Returns | |
---|---|
Type | Description |
string |