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 ⇒ Fixnum
An identifier for the message, which must be unique in this span.
-
#message_size ⇒ Fixnum
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
115 116 117 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 115 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
107 108 109 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 107 def kernel_time @kernel_time end |
#message_id ⇒ Fixnum
An identifier for the message, which must be unique in this span.
Corresponds to the JSON property messageId
94 95 96 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 94 def @message_id end |
#message_size ⇒ Fixnum
The number of bytes sent or received.
Corresponds to the JSON property messageSize
99 100 101 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 99 def @message_size end |
#type ⇒ String
Type of NetworkEvent. Indicates whether the RPC message was sent or
received.
Corresponds to the JSON property type
113 114 115 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 113 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
120 121 122 123 124 125 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 120 def update!(**args) @message_id = args[:message_id] if args.key?(:message_id) @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) end |