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 network 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



646
647
648
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 646

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



634
635
636
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 634

def annotation
  @annotation
end

#network_eventGoogle::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

#timeString

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

Returns:

  • (String)


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