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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.