Class: Google::Apis::CloudtraceV2::TimeEvent
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV2::TimeEvent
- Defined in:
- generated/google/apis/cloudtrace_v2/classes.rb,
generated/google/apis/cloudtrace_v2/representations.rb,
generated/google/apis/cloudtrace_v2/representations.rb
Overview
A time-stamped annotation or network event in the Span.
Instance Attribute Summary collapse
-
#annotation ⇒ Google::Apis::CloudtraceV2::Annotation
Text annotation with a set of attributes.
-
#network_event ⇒ Google::Apis::CloudtraceV2::NetworkEvent
An event describing an RPC message sent or received on the network.
-
#time ⇒ String
The timestamp indicating the time the event occurred.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeEvent
constructor
A new instance of TimeEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimeEvent
Returns a new instance of TimeEvent
646 647 648 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 646 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation ⇒ Google::Apis::CloudtraceV2::Annotation
Text annotation with a set of attributes.
Corresponds to the JSON property annotation
634 635 636 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 634 def annotation @annotation end |
#network_event ⇒ Google::Apis::CloudtraceV2::NetworkEvent
An event describing an RPC message sent or received on the network.
Corresponds to the JSON property networkEvent
639 640 641 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 639 def network_event @network_event end |
#time ⇒ String
The timestamp indicating the time the event occurred.
Corresponds to the JSON property time
644 645 646 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 644 def time @time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
651 652 653 654 655 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 651 def update!(**args) @annotation = args[:annotation] if args.key?(:annotation) @network_event = args[:network_event] if args.key?(:network_event) @time = args[:time] if args.key?(:time) end |