Class: Google::Apis::CloudtraceV2::MessageEvent
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV2::MessageEvent
- 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
An event describing a message sent/received between Spans.
Instance Attribute Summary collapse
-
#compressed_size_bytes ⇒ Fixnum
The number of compressed bytes sent or received.
-
#id ⇒ Fixnum
An identifier for the MessageEvent's message that can be used to match
SENT
andRECEIVED
MessageEvents. -
#type ⇒ String
Type of MessageEvent.
-
#uncompressed_size_bytes ⇒ Fixnum
The number of uncompressed bytes sent or received.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MessageEvent
constructor
A new instance of MessageEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MessageEvent
Returns a new instance of MessageEvent.
242 243 244 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 242 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compressed_size_bytes ⇒ Fixnum
The number of compressed bytes sent or received. If missing, the compressed
size is assumed to be the same size as the uncompressed size.
Corresponds to the JSON property compressedSizeBytes
224 225 226 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 224 def compressed_size_bytes @compressed_size_bytes end |
#id ⇒ Fixnum
An identifier for the MessageEvent's message that can be used to match SENT
and RECEIVED
MessageEvents.
Corresponds to the JSON property id
230 231 232 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 230 def id @id end |
#type ⇒ String
Type of MessageEvent. Indicates whether the message was sent or received.
Corresponds to the JSON property type
235 236 237 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 235 def type @type end |
#uncompressed_size_bytes ⇒ Fixnum
The number of uncompressed bytes sent or received.
Corresponds to the JSON property uncompressedSizeBytes
240 241 242 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 240 def uncompressed_size_bytes @uncompressed_size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
247 248 249 250 251 252 |
# File 'lib/google/apis/cloudtrace_v2/classes.rb', line 247 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 |