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



115
116
117
# File 'generated/google/apis/tracing_v1/classes.rb', line 115

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)


107
108
109
# File 'generated/google/apis/tracing_v1/classes.rb', line 107

def kernel_time
  @kernel_time
end

#message_idFixnum

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

Returns:

  • (Fixnum)


94
95
96
# File 'generated/google/apis/tracing_v1/classes.rb', line 94

def message_id
  @message_id
end

#message_sizeFixnum

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

Returns:

  • (Fixnum)


99
100
101
# File 'generated/google/apis/tracing_v1/classes.rb', line 99

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)


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