[−][src]Struct collectd_plugin::ValueList
Contains values and metadata that collectd has collected from plugins
Fields
values: Vec<ValueReport<'a>>plugin: &'a strThe plugin that submitted this value. This would be your PluginManager when submitting
values
plugin_instance: Option<&'a str>Distinguishes entities that yield metrics. Each core would be a different instance of the same plugin, as each core reports "idle", "user", "system" metrics.
type_: &'a strThis is the string found in types.db, determines how many values are expected and how they should be interpreted
type_instance: Option<&'a str>The type instance is used to separate values of identical type which nonetheless belong to one another. For instance, even though "free", "used", and "total" all have types of "Memory" they are different type instances.
host: &'a strThe hostname where the values were collectd
time: DateTime<Utc>The timestamp at which the value was collected
interval: DurationThe interval in which new values are to be expected
Methods
impl<'a> ValueList<'a>[src]
pub fn rates(&self) -> Result<Cow<Vec<ValueReport<'a>>>, CacheRateError>[src]
Collectd does not automatically convert Derived values into a rate. This is why many
write plugins have a StoreRates config option so that these rates are calculated on
demand from collectd's internal cache. This function will return a vector that can supercede
the values field that contains the rate of all non-gauge values. Values that are gauges
remain unchanged, so one doesn't need to resort back to values field as this function
will return everything prepped for submission.
pub fn from<'b>(
set: &'b data_set_t,
list: &'b value_list_t
) -> Result<ValueList<'b>, ReceiveError>[src]
set: &'b data_set_t,
list: &'b value_list_t
) -> Result<ValueList<'b>, ReceiveError>
Trait Implementations
impl<'a> Clone for ValueList<'a>[src]
fn clone(&self) -> ValueList<'a>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> PartialEq<ValueList<'a>> for ValueList<'a>[src]
impl<'a> Debug for ValueList<'a>[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,