vaping.plugins.whisper
Classes
WhisperPlugin
WhisperPlugin(vaping.plugins.TimeSeriesDB)
Whisper plugin that allows vaping to persist data in a whisper database
Class Attributes
- ConfigSchema (
WhisperSchema 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
get
def get(self, filename, from_time, to_time=None)
Retrieve data from database for the specified timespan
Arguments
- filename (
str): database filename - from_time (
int): epoch timestamp start - to_time (
int): epoch timestamp end
update
def update(self, filename, time, value)
Update database
Arguments
- filename (
str): database filename - time (
int): epoch timestamp - value (
mixed)
WhisperSchema
WhisperSchema(vaping.plugins.TimeSeriesDBSchema)
Define a schema for FPing and also define defaults.
Class Attributes
- aggregation_method (
Str Instance): - retention (
List Instance): - sparse (
Bool Instance): - x_files_factor (
Float Instance):