pub trait DataSource {
// Required methods
fn node_birth_metrics(&self) -> Vec<Metric>;
fn device_birth_metrics(&self, device: &str) -> Vec<Metric>;
}Expand description
What the application supplies to the engine: the metrics to publish in births.
Required Methods§
Sourcefn node_birth_metrics(&self) -> Vec<Metric>
fn node_birth_metrics(&self) -> Vec<Metric>
The Edge Node’s metrics for an NBIRTH (every metric it will ever report).
Sourcefn device_birth_metrics(&self, device: &str) -> Vec<Metric>
fn device_birth_metrics(&self, device: &str) -> Vec<Metric>
A Device’s metrics for a DBIRTH.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".