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 ⇒ Fixnum
The number of compressed bytes sent or received.
-
#id ⇒ Fixnum
An identifier for the message, which must be unique in this span.
-
#type ⇒ String
Type of MessageEvent.
-
#uncompressed_size ⇒ 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
246 247 248 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 246 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compressed_size ⇒ Fixnum
The number of compressed bytes sent or received. If missing assumed to
be the same size as uncompressed.
Corresponds to the JSON property compressedSize
228 229 230 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 228 def compressed_size @compressed_size end |
#id ⇒ Fixnum
An identifier for the message, which must be unique in this span.
Corresponds to the JSON property id
233 234 235 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 233 def id @id end |
#type ⇒ String
Type of MessageEvent. Indicates whether the message was sent or
received.
Corresponds to the JSON property type
239 240 241 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 239 def type @type end |
#uncompressed_size ⇒ Fixnum
The number of uncompressed bytes sent or received.
Corresponds to the JSON property uncompressedSize
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 |