Class: Google::Apis::CloudtraceV2::NetworkEvent
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV2::NetworkEvent
- 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 an RPC message sent or received on the network.
Instance Attribute Summary collapse
-
#compressed_message_size ⇒ Fixnum
The number of compressed bytes sent or received.
-
#message_id ⇒ Fixnum
An identifier for the message, which must be unique in this span.
-
#time ⇒ String
For sent messages, this is the time at which the first bit was sent.
-
#type ⇒ String
Type of NetworkEvent.
-
#uncompressed_message_size ⇒ Fixnum
The number of uncompressed bytes sent or received.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkEvent
constructor
A new instance of NetworkEvent.
-
#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) ⇒ NetworkEvent
Returns a new instance of NetworkEvent
331 332 333 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 331 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compressed_message_size ⇒ Fixnum
The number of compressed bytes sent or received.
Corresponds to the JSON property compressedMessageSize
306 307 308 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 306 def @compressed_message_size end |
#message_id ⇒ Fixnum
An identifier for the message, which must be unique in this span.
Corresponds to the JSON property messageId
311 312 313 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 311 def @message_id end |
#time ⇒ String
For sent messages, this is the time at which the first bit was sent.
For received messages, this is the time at which the last bit was
received.
Corresponds to the JSON property time
318 319 320 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 318 def time @time end |
#type ⇒ String
Type of NetworkEvent. Indicates whether the RPC message was sent or
received.
Corresponds to the JSON property type
324 325 326 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 324 def type @type end |
#uncompressed_message_size ⇒ Fixnum
The number of uncompressed bytes sent or received.
Corresponds to the JSON property uncompressedMessageSize
329 330 331 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 329 def @uncompressed_message_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
336 337 338 339 340 341 342 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 336 def update!(**args) @compressed_message_size = args[:compressed_message_size] if args.key?(:compressed_message_size) @message_id = args[:message_id] if args.key?(:message_id) @time = args[:time] if args.key?(:time) @type = args[:type] if args.key?(:type) @uncompressed_message_size = args[:uncompressed_message_size] if args.key?(:uncompressed_message_size) end |