Class: Google::Apis::CloudtraceV2::TimeEvents

Inherits:
Object
  • Object
show all
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 collection of TimeEvents. A TimeEvent is a time-stamped annotation on the span, consisting of either user-supplied key:value pairs, or details of a message sent/received between Spans.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeEvents

Returns a new instance of TimeEvents.



610
611
612
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 610

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

Instance Attribute Details

#dropped_annotations_countFixnum

The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped. Corresponds to the JSON property droppedAnnotationsCount

Returns:

  • (Fixnum)


597
598
599
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 597

def dropped_annotations_count
  @dropped_annotations_count
end

#dropped_message_events_countFixnum

The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped. Corresponds to the JSON property droppedMessageEventsCount

Returns:

  • (Fixnum)


603
604
605
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 603

def dropped_message_events_count
  @dropped_message_events_count
end

#time_eventArray<Google::Apis::CloudtraceV2::TimeEvent>

A collection of TimeEvents. Corresponds to the JSON property timeEvent



608
609
610
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 608

def time_event
  @time_event
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



615
616
617
618
619
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 615

def update!(**args)
  @dropped_annotations_count = args[:dropped_annotations_count] if args.key?(:dropped_annotations_count)
  @dropped_message_events_count = args[:dropped_message_events_count] if args.key?(:dropped_message_events_count)
  @time_event = args[:time_event] if args.key?(:time_event)
end