Class: Google::Apis::CloudtraceV2::MessageEvent
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV2::MessageEvent
- 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
-
#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 and RECEIVED 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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ MessageEvent
Returns a new instance of MessageEvent.
248 249 250 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compressed_size_bytes ⇒ Fixnum
The number of compressed bytes sent or received. If missing assumed to
be the same size as uncompressed.
Corresponds to the JSON property compressedSizeBytes
228 229 230 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 228 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. It is recommended to be unique within
a Span.
Corresponds to the JSON property id
235 236 237 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 235 def id @id end |
#type ⇒ String
Type of MessageEvent. Indicates whether the message was sent or
received.
Corresponds to the JSON property type
241 242 243 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 241 def type @type end |
#uncompressed_size_bytes ⇒ Fixnum
The number of uncompressed bytes sent or received.
Corresponds to the JSON property uncompressedSizeBytes
246 247 248 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 246 def uncompressed_size_bytes @uncompressed_size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
253 254 255 256 257 258 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 253 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 |