pub enum LineOp {
Literal(Vec<u8>),
LabelExists(String, Vec<LabelOp>),
ValueAsText,
ScaledValueAsText(f64),
NewLine,
}
Expand description
Print commands are steps in the execution of output templates.
Variants§
Literal(Vec<u8>)
Print a string.
LabelExists(String, Vec<LabelOp>)
Lookup and print label value for key, if it exists.
ValueAsText
Print metric value as text.
ScaledValueAsText(f64)
Print metric value, divided by the given scale, as text.
NewLine
Print the newline character.labels.lookup(key)