Struct collectd_plugin::ValueListBuilder [−][src]
pub struct ValueListBuilder<'a> { /* fields omitted */ }
Expand description
Creates a value list to report values to collectd.
Implementations
Primes a value list for submission. plugin
will most likely be the name from the
PluginManager
and type_
is the datatype found in types.db
A set of observed values that belong to the same plugin and type instance
Distinguishes entities that yield metrics. Each core would be a different instance of the same plugin, as each core reports “idle”, “user”, “system” metrics.
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.
Override the machine’s hostname that the observed values will be attributed to. Best to override when observing values from another machine
The timestamp at which the value was collected. Overrides the default time, which is when
collectd receives the values from submit
. Use only if there is a significant delay is
metrics gathering or if submitting values from the past.
The interval in which new values are to be expected. This is typically handled at a global or plugin level. Use at your own discretion.
Add a metadata entry.
Multiple entries can be added by calling this method. If the same key is used, only the last entry is kept.
Submits the observed values to collectd and returns errors if encountered
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ValueListBuilder<'a>
impl<'a> Send for ValueListBuilder<'a>
impl<'a> Sync for ValueListBuilder<'a>
impl<'a> Unpin for ValueListBuilder<'a>
impl<'a> UnwindSafe for ValueListBuilder<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more