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



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

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

Instance Attribute Details

#compressed_sizeFixnum

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

Returns:

  • (Fixnum)


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

def compressed_size
  @compressed_size
end

#idFixnum

An identifier for the message, which must be unique in this span. Corresponds to the JSON property id

Returns:

  • (Fixnum)


233
234
235
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 233

def id
  @id
end

#typeString

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

Returns:

  • (String)


239
240
241
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 239

def type
  @type
end

#uncompressed_sizeFixnum

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

Returns:

  • (Fixnum)


244
245
246
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 244

def uncompressed_size
  @uncompressed_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



251
252
253
254
255
256
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 251

def update!(**args)
  @compressed_size = args[:compressed_size] if args.key?(:compressed_size)
  @id = args[:id] if args.key?(:id)
  @type = args[:type] if args.key?(:type)
  @uncompressed_size = args[:uncompressed_size] if args.key?(:uncompressed_size)
end