Struct hotmic::Source [−][src]
pub struct Source<T> { /* fields omitted */ }
An independent handle for sending metric samples into the sink.
Sources are cloneable, and can not only send metric samples but can register and deregister metric facets at any time.
Methods
impl<T> Source<T> where
T: Eq + Hash,
[src]
impl<T> Source<T> where
T: Eq + Hash,
pub fn send(&mut self, sample: Sample<T>) -> Result<(), Error>
[src]
pub fn send(&mut self, sample: Sample<T>) -> Result<(), Error>
Sends a metric sample into the sink.
pub fn add_facet(&mut self, facet: Facet<T>)
[src]
pub fn add_facet(&mut self, facet: Facet<T>)
Registers a facet with the sink.
pub fn remove_facet(&mut self, facet: Facet<T>)
[src]
pub fn remove_facet(&mut self, facet: Facet<T>)
Deregisters a from from the sink.