IPFIX implementation for Ruby
Provides a bridge between records in IPFIX Messages and Ruby hashes. Intended as a reference implementation
-
create a Model (model = InfoModel.new.load_default)
-
create a Session (session = Session.new(m))
-
create a Message within the Session (message = Message.new(nil, session, domain))
-
create Templates and append Information Elements via the << operator
-
append Templates to the Message via the << operator
-
append Hashes to the Message via the << operator
-
Get the encoded message using message.string(), or write it to an IO using message.write()
-
create a Model (model = InfoModel.new.load_default)
-
create a Session (session = Session.new(m))
-
create a Message within the Session from the encoded string containing the Message (message = Message.new(string, session)), or create an empty Message (message = Message.new(nil, session)) and fill it in from an IO (Message.read(io))
-
Iterate over hashes in the message using Message.each().
See the tests for code examples.