class Google::Apis::CloudtraceV2::MessageEvent

An event describing a message sent/received between Spans.

Attributes

compressed_size_bytes[RW]

The number of compressed bytes sent or received. If missing assumed to be the same size as uncompressed. Corresponds to the JSON property `compressedSizeBytes` @return [Fixnum]

id[RW]

An identifier for the MessageEvent's message that can be used to match SENT and RECEIVED MessageEvents. It is recommended to be unique within a Span. Corresponds to the JSON property `id` @return [Fixnum]

type[RW]

Type of MessageEvent. Indicates whether the message was sent or received. Corresponds to the JSON property `type` @return [String]

uncompressed_size_bytes[RW]

The number of uncompressed bytes sent or received. Corresponds to the JSON property `uncompressedSizeBytes` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudtrace_v2/classes.rb, line 243
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudtrace_v2/classes.rb, line 248
def update!(**args)
  @compressed_size_bytes = args[:compressed_size_bytes] if args.key?(:compressed_size_bytes)
  @id = args[:id] if args.key?(:id)
  @type = args[:type] if args.key?(:type)
  @uncompressed_size_bytes = args[:uncompressed_size_bytes] if args.key?(:uncompressed_size_bytes)
end