Struct kairosdb::datapoints::Datapoints
[−]
[src]
pub struct Datapoints { /* fields omitted */ }
Struct to define everything for a datapoint
Methods
impl Datapoints
[src]
fn new(name: &str, ttl: u32) -> Datapoints
Creates a new set of datapoints
fn add<Tz: TimeZone>(&mut self, datetime: DateTime<Tz>, value: f64)
Adds a new datapoint to the set using 'DateTime'
fn add_ms(&mut self, ms: i64, value: f64)
Adds a new datapoint to the set using the unix millisecond as time reference
fn add_tag(&mut self, name: &str, value: &str)
Adds a tag to the datapoint set