pub enum Instruction {
CHART,
DIMENSION,
BEGIN,
SET,
END,
FLUSH,
DISABLE,
VARIABLE,
}
Expand description
Command literals used for plugin communication.
Netdata parses stdout
output of plugins looking for lines starting with
this instruction codes.
See also https://learn.netdata.cloud/docs/agent/collectors/plugins.d#external-plugins-api
Variants§
CHART
Create or update a Chart.
DIMENSION
Add or update a Dimension associated to a chart.
BEGIN
signify Begin of a data collection sequence.
SET
Set the value of a dimension for the initialized chart.
END
Complete data collection for the initialized chart.
FLUSH
Ignore the last collected values.
DISABLE
Disable this plugin. This will prevent Netdata from restarting the plugin.
You can also exit with the value 1 to have the same effect.
VARIABLE
define Variables.
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Instruction
impl Debug for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more