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
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 |
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.
Generated from protobuf field .google.protobuf.Timestamp time = 1;
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasTime
clearTime
setTime
The timestamp indicating the time the event occurred.
Generated from protobuf field .google.protobuf.Timestamp time = 1;
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAnnotation
Text annotation with a set of attributes.
Generated from protobuf field .google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation annotation = 2;
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Trace\V2\Span\TimeEvent\Annotation|null |
|
hasAnnotation
setAnnotation
Text annotation with a set of attributes.
Generated from protobuf field .google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation annotation = 2;
| 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.
Generated from protobuf field .google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent message_event = 3;
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Trace\V2\Span\TimeEvent\MessageEvent|null |
|
hasMessageEvent
setMessageEvent
An event describing a message sent/received between Spans.
Generated from protobuf field .google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent message_event = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Trace\V2\Span\TimeEvent\MessageEvent
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValue
| Returns | |
|---|---|
| Type | Description |
string |
|