Class: Google::Apis::CloudtraceV2::TimeEvent

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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 message event in the Span.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TimeEvent

Returns a new instance of TimeEvent.



587
588
589
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 587

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#annotationGoogle::Apis::CloudtraceV2::Annotation

Text annotation with a set of attributes. Corresponds to the JSON property annotation



575
576
577
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 575

def annotation
  @annotation
end

#message_eventGoogle::Apis::CloudtraceV2::MessageEvent

An event describing a message sent/received between Spans. Corresponds to the JSON property messageEvent



580
581
582
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 580

def message_event
  @message_event
end

#timeString

The timestamp indicating the time the event occurred. Corresponds to the JSON property time

Returns:

  • (String)


585
586
587
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 585

def time
  @time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



592
593
594
595
596
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 592

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