Class: Google::Apis::TracingV1::TimeEvent
- Inherits:
-
Object
- Object
- Google::Apis::TracingV1::TimeEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tracing_v1/classes.rb,
generated/google/apis/tracing_v1/representations.rb,
generated/google/apis/tracing_v1/representations.rb
Overview
A time-stamped annotation in the Span.
Instance Attribute Summary collapse
-
#annotation ⇒ Google::Apis::TracingV1::Annotation
Text annotation with a set of attributes.
-
#local_time ⇒ String
The timestamp indicating the time the event occurred.
-
#network_event ⇒ Google::Apis::TracingV1::NetworkEvent
An event describing an RPC message sent/received on the network.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeEvent
constructor
A new instance of TimeEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimeEvent
Returns a new instance of TimeEvent
75 76 77 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 75 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation ⇒ Google::Apis::TracingV1::Annotation
Text annotation with a set of attributes.
Corresponds to the JSON property annotation
68 69 70 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 68 def annotation @annotation end |
#local_time ⇒ String
The timestamp indicating the time the event occurred.
Corresponds to the JSON property localTime
73 74 75 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 73 def local_time @local_time end |
#network_event ⇒ Google::Apis::TracingV1::NetworkEvent
An event describing an RPC message sent/received on the network.
Corresponds to the JSON property networkEvent
63 64 65 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 63 def network_event @network_event end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
80 81 82 83 84 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 80 def update!(**args) @network_event = args[:network_event] if args.key?(:network_event) @annotation = args[:annotation] if args.key?(:annotation) @local_time = args[:local_time] if args.key?(:local_time) end |