vaping.plugins.rrd
Classes
RRDToolPlugin
RRDToolPlugin(vaping.plugins.TimeSeriesDB)
RRDTool plugin that allows vaping to persist data in a rrdtool database
Class Attributes
- ConfigSchema (
RRDToolSchema Class
): Base plugin config schema
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
)
RRDToolSchema
RRDToolSchema(vaping.plugins.TimeSeriesDBSchema)
Define a schema for FPing and also define defaults.
Class Attributes
- archives (
List Instance
): - data_sources (
List Instance
): - step (
Int Instance
): Passed to rrd tool --step option.