Class: Google::Apis::CloudtraceV2::MessageEvent

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

An event describing a message sent/received between Spans.

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) ⇒ MessageEvent

Returns a new instance of MessageEvent



249
250
251
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 249

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

Instance Attribute Details

#compressed_size_bytesFixnum

The number of compressed bytes sent or received. If missing assumed to be the same size as uncompressed. Corresponds to the JSON property compressedSizeBytes

Returns:

  • (Fixnum)


229
230
231
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 229

def compressed_size_bytes
  @compressed_size_bytes
end

#idFixnum

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

Returns:

  • (Fixnum)


236
237
238
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 236

def id
  @id
end

#typeString

Type of MessageEvent. Indicates whether the message was sent or received. Corresponds to the JSON property type

Returns:

  • (String)


242
243
244
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 242

def type
  @type
end

#uncompressed_size_bytesFixnum

The number of uncompressed bytes sent or received. Corresponds to the JSON property uncompressedSizeBytes

Returns:

  • (Fixnum)


247
248
249
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 247

def uncompressed_size_bytes
  @uncompressed_size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



254
255
256
257
258
259
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 254

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