Class: EventMachine::SFlow::EthernetInterfaceCounters
- Inherits:
-
Object
- Object
- EventMachine::SFlow::EthernetInterfaceCounters
- Defined in:
- lib/em-sflow/packet/ethernet_interface_counters.rb
Instance Attribute Summary collapse
-
#alignment_errors ⇒ Object
Returns the value of attribute alignment_errors.
-
#carrier_sense_errors ⇒ Object
Returns the value of attribute carrier_sense_errors.
-
#deferred_transmissions ⇒ Object
Returns the value of attribute deferred_transmissions.
-
#excessive_collisions ⇒ Object
Returns the value of attribute excessive_collisions.
-
#fcs_errors ⇒ Object
Returns the value of attribute fcs_errors.
-
#frames_too_long ⇒ Object
Returns the value of attribute frames_too_long.
-
#internal_mac_receive_errors ⇒ Object
Returns the value of attribute internal_mac_receive_errors.
-
#internal_mac_transmit_errors ⇒ Object
Returns the value of attribute internal_mac_transmit_errors.
-
#late_collisions ⇒ Object
Returns the value of attribute late_collisions.
-
#multiple_collision_frames ⇒ Object
Returns the value of attribute multiple_collision_frames.
-
#single_collision_frames ⇒ Object
Returns the value of attribute single_collision_frames.
-
#sqe_test_errors ⇒ Object
Returns the value of attribute sqe_test_errors.
-
#symbol_errors ⇒ Object
Returns the value of attribute symbol_errors.
Instance Method Summary collapse
-
#initialize(data) ⇒ EthernetInterfaceCounters
constructor
A new instance of EthernetInterfaceCounters.
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_errors ⇒ Object
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_errors ⇒ Object
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_transmissions ⇒ Object
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_collisions ⇒ Object
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_errors ⇒ Object
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_long ⇒ Object
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_errors ⇒ Object
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_errors ⇒ Object
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_collisions ⇒ Object
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_frames ⇒ Object
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_frames ⇒ Object
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_errors ⇒ Object
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_errors ⇒ Object
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 |