Class: Google::Apis::TracingV1::NetworkEvent
- Inherits:
-
Object
- Object
- Google::Apis::TracingV1::NetworkEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tracing_v1/classes.rb,
generated/google/apis/tracing_v1/representations.rb,
generated/google/apis/tracing_v1/representations.rb
Overview
An event describing an RPC message sent/received on the network.
Instance Attribute Summary collapse
-
#kernel_time ⇒ String
If available, this is the kernel time: * For sent messages, this is the time at which the first bit was sent.
-
#message_id ⇒ String
An identifier for the message, which must be unique in this span.
-
#message_size ⇒ String
The number of bytes sent or received.
-
#type ⇒ String
Type of NetworkEvent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkEvent
constructor
A new instance of NetworkEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ NetworkEvent
Returns a new instance of NetworkEvent
487 488 489 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 487 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kernel_time ⇒ String
If available, this is the kernel time:
- 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
kernelTime
474 475 476 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 474 def kernel_time @kernel_time end |
#message_id ⇒ String
An identifier for the message, which must be unique in this span.
Corresponds to the JSON property messageId
485 486 487 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 485 def @message_id end |
#message_size ⇒ String
The number of bytes sent or received.
Corresponds to the JSON property messageSize
466 467 468 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 466 def @message_size end |
#type ⇒ String
Type of NetworkEvent. Indicates whether the RPC message was sent or
received.
Corresponds to the JSON property type
480 481 482 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 480 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
492 493 494 495 496 497 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 492 def update!(**args) @message_size = args[:message_size] if args.key?(:message_size) @kernel_time = args[:kernel_time] if args.key?(:kernel_time) @type = args[:type] if args.key?(:type) @message_id = args[:message_id] if args.key?(:message_id) end |