Enum libcantal::RawType
[−]
[src]
pub enum RawType { Level(LevelKind), Counter, State, }
A raw type of metric, only used for Value
trait
Variants
Level(LevelKind)
Level or gauge type of metric
Counter
An ever-increasing counter
State
Just a string value that can be exposed to the collection system
Methods
impl RawType
[src]
fn as_json_str(&self) -> &'static str
[src]
Returns JSON-friendly type of a value
fn main_type(&self) -> &'static str
[src]
Returns main type of the value (specifics for cantal format)
See memory map protocol for more info
fn type_suffix(&self) -> Option<&'static str>
[src]
Returns type suffix of the value (specifics for cantal format)
See memory map protocol for more info