Class: Google::Apis::CloudtraceV2::TimeEvent
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV2::TimeEvent
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudtrace_v2/classes.rb,
lib/google/apis/cloudtrace_v2/representations.rb,
lib/google/apis/cloudtrace_v2/representations.rb
Overview
A time-stamped annotation or message event in the Span.
Instance Attribute Summary collapse
-
#annotation ⇒ Google::Apis::CloudtraceV2::Annotation
Text annotation with a set of attributes.
-
#message_event ⇒ Google::Apis::CloudtraceV2::MessageEvent
An event describing a message sent/received between Spans.
-
#time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeEvent
constructor
A new instance of TimeEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimeEvent
Returns a new instance of TimeEvent.
576 577 578 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 576 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
564 565 566 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 564 def annotation @annotation end |
#message_event ⇒ Google::Apis::CloudtraceV2::MessageEvent
An event describing a message sent/received between Spans.
Corresponds to the JSON property messageEvent
569 570 571 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 569 def @message_event end |
#time ⇒ String
Optional. The timestamp indicating the time the event occurred.
Corresponds to the JSON property time
574 575 576 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 574 def time @time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
581 582 583 584 585 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 581 def update!(**args) @annotation = args[:annotation] if args.key?(:annotation) @message_event = args[:message_event] if args.key?(:message_event) @time = args[:time] if args.key?(:time) end |