pub trait Plugin {
    // Required methods
    fn fetch_metrics(&self) -> Result<HashMap<String, f64>, String>;
    fn graph_definition(&self) -> Vec<Graph>;

    // Provided methods
    fn metric_key_prefix(&self) -> String { ... }
    fn run(&self) -> Result<(), String> { ... }
}
Expand description

A trait which represents a Plugin.

You can create a plugin by implementing fetch_metrics and graph_definition.

Required Methods§

Provided Methods§

Implementors§