vaping.plugins.rrd

Classes


RRDToolPlugin

RRDToolPlugin(vaping.plugins.TimeSeriesDB)

RRDTool plugin that allows vaping to persist data in a rrdtool database

Methods

__init__

def __init__(self, config, ctx)

Arguments

  • config (dict)
  • ctx: vaping context

create

def create(self, filename)

Create database

Arguments

  • filename (str): database filename

init

def init(self)

called after the plugin is initialized, plugin may define this for any other initialization code


update

def update(self, filename, time, value)

Update database

Arguments

  • filename (str): database filename
  • time (int): epoch timestamp
  • value (mixed)