class Ringflux::Plugin
Public Class Methods
write_point(*args)
click to toggle source
# File lib/ringflux/plugin.rb, line 26 def self.write_point(*args) logger.debug "Sending data to InfluxDB: #{args.inspect}" @@connection.write_point(*args) end
Public Instance Methods
start()
click to toggle source
# File lib/ringflux/plugin.rb, line 21 def start logger.info "Connecting to InfluxDB #{config.username}@#{config.host} with database #{config.database}" @@connection = InfluxDB::Client.new config.database, host: config.host, username: config.username, password: config.password, async: config.async end
Private Instance Methods
config()
click to toggle source
# File lib/ringflux/plugin.rb, line 33 def config self.class.config end