Struct influx_db_client::keys::Point
[−]
[src]
pub struct Point { pub measurement: String, pub tags: HashMap<String, Value>, pub fields: HashMap<String, Value>, pub timestamp: Option<i64>, }
influxdb point
Fields
measurement: String
measurement
tags
fields: HashMap<String, Value>
fields
timestamp: Option<i64>
timestamp
Methods
impl Point
[src]
fn new(measurement: &str) -> Point
[src]
Create a new point
fn add_tag<T: ToString>(&mut self, tag: T, value: Value)
[src]
Add a tag and its value
fn add_field<T: ToString>(&mut self, field: T, value: Value)
[src]
Add a field and its value
fn add_timestamp(&mut self, timestamp: i64)
[src]
Set the specified timestamp