Class: Google::Apis::TracingV1::NetworkEvent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_timeString

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

Returns:

  • (String)


474
475
476
# File 'generated/google/apis/tracing_v1/classes.rb', line 474

def kernel_time
  @kernel_time
end

#message_idString

An identifier for the message, which must be unique in this span. Corresponds to the JSON property messageId

Returns:

  • (String)


485
486
487
# File 'generated/google/apis/tracing_v1/classes.rb', line 485

def message_id
  @message_id
end

#message_sizeString

The number of bytes sent or received. Corresponds to the JSON property messageSize

Returns:

  • (String)


466
467
468
# File 'generated/google/apis/tracing_v1/classes.rb', line 466

def message_size
  @message_size
end

#typeString

Type of NetworkEvent. Indicates whether the RPC message was sent or received. Corresponds to the JSON property type

Returns:

  • (String)


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