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



447
448
449
# File 'generated/google/apis/tracing_v1/classes.rb', line 447

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



440
441
442
# File 'generated/google/apis/tracing_v1/classes.rb', line 440

def annotation
  @annotation
end

#local_timeString

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

Returns:

  • (String)


445
446
447
# File 'generated/google/apis/tracing_v1/classes.rb', line 445

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



435
436
437
# File 'generated/google/apis/tracing_v1/classes.rb', line 435

def network_event
  @network_event
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



452
453
454
455
456
# File 'generated/google/apis/tracing_v1/classes.rb', line 452

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