pub struct MetricsDb { /* private fields */ }
Expand description

Metrics database, useful for querying stored metrics

Implementations

Creates a new metrics DB with given path of a SQLite database

Returns sessions in database, based on SESSION_TIME_GAP_THRESHOLD

Returns list of metrics keys stored in the database

Returns all metrics for given key in ascending timestamp order

Returns rate of change, the derivative, of the given metrics key’s values

f(t) = (x(t + 1) - x(t)) / ((t+1) - (t)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.