Class: Google::Apis::TracingV1::TimeEvent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#annotationGoogle::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_timeString

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

Returns:

  • (String)


73
74
75
# File 'generated/google/apis/tracing_v1/classes.rb', line 73

def local_time
  @local_time
end

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