Sha256: edde55ec11ad8df5d13da1d9e95354ab08f4f433ac8482a83a6628f9a9f58585
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
class EventMachine::SFlow::ExpandedFlowSample attr_accessor :sequence_number, :source_class, :source_value, :sampling_rate, :sample_pool, :drop_count, :input_type, :input_value, :output_type, :output_value, :records def initialize data data.extend EM::SFlow::BinaryString data.extend EM::SFlow::FlowRecord @sequence_number, @source_class, @source_value, @sampling_rate, @sample_pool, @drop_count, @input_type, @input_value, @output_type, @output_value, record_count = data.unpack("NNNNNNNNNNN") data.advance(44) @records = data.to_flow_records!(record_count) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
em-sflow-1.0.3 | lib/em-sflow/packet/expanded_flow_sample.rb |
em-sflow-1.0.2 | lib/em-sflow/packet/expanded_flow_sample.rb |