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
277 278 279 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 277 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
252 253 254 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 252 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
257 258 259 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 257 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
264 265 266 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 264 def time @time end |
#type ⇒ String
Type of NetworkEvent. Indicates whether the RPC message was sent or
received.
Corresponds to the JSON property type
270 271 272 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 270 def type @type end |
#uncompressed_message_size ⇒ Fixnum
The number of uncompressed bytes sent or received.
Corresponds to the JSON property uncompressedMessageSize
275 276 277 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 275 def @uncompressed_message_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
282 283 284 285 286 287 288 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 282 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 |