Class: EventMachine::SFlow::EthernetInterfaceCounters

Inherits:
Object
  • Object
show all
Defined in:
lib/em-sflow/packet/ethernet_interface_counters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ EthernetInterfaceCounters

Returns a new instance of EthernetInterfaceCounters.



4
5
6
7
8
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 4

def initialize data
  data.extend EventMachine::SFlow::BinaryString
  
  @alignment_errors, @fcs_errors, @single_collision_frames, @multiple_collision_frames, @sqe_test_errors, @deferred_transmissions, @late_collisions, @excessive_collisions, @internal_mac_transmit_errors, @carrier_sense_errors, @frames_too_long, @internal_mac_receive_errors, @symbol_errors = data.unpack("NNNNNNNNNNNNN")
end

Instance Attribute Details

#alignment_errorsObject

Returns the value of attribute alignment_errors.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def alignment_errors
  @alignment_errors
end

#carrier_sense_errorsObject

Returns the value of attribute carrier_sense_errors.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def carrier_sense_errors
  @carrier_sense_errors
end

#deferred_transmissionsObject

Returns the value of attribute deferred_transmissions.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def deferred_transmissions
  @deferred_transmissions
end

#excessive_collisionsObject

Returns the value of attribute excessive_collisions.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def excessive_collisions
  @excessive_collisions
end

#fcs_errorsObject

Returns the value of attribute fcs_errors.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def fcs_errors
  @fcs_errors
end

#frames_too_longObject

Returns the value of attribute frames_too_long.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def frames_too_long
  @frames_too_long
end

#internal_mac_receive_errorsObject

Returns the value of attribute internal_mac_receive_errors.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def internal_mac_receive_errors
  @internal_mac_receive_errors
end

#internal_mac_transmit_errorsObject

Returns the value of attribute internal_mac_transmit_errors.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def internal_mac_transmit_errors
  @internal_mac_transmit_errors
end

#late_collisionsObject

Returns the value of attribute late_collisions.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def late_collisions
  @late_collisions
end

#multiple_collision_framesObject

Returns the value of attribute multiple_collision_frames.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def multiple_collision_frames
  @multiple_collision_frames
end

#single_collision_framesObject

Returns the value of attribute single_collision_frames.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def single_collision_frames
  @single_collision_frames
end

#sqe_test_errorsObject

Returns the value of attribute sqe_test_errors.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def sqe_test_errors
  @sqe_test_errors
end

#symbol_errorsObject

Returns the value of attribute symbol_errors.



2
3
4
# File 'lib/em-sflow/packet/ethernet_interface_counters.rb', line 2

def symbol_errors
  @symbol_errors
end