Struct kairosdb::query::Query
[−]
[src]
pub struct Query { /* fields omitted */ }
JSON representation of a kairosdb query
Methods
impl Query
[src]
fn new(start: Time, end: Time) -> Query
Creates a new Query
object. With a absolute or relative
start and end time.
The following example creates a query starting from the
first nanosecond in our world until the first week in our world
finished.
let query = Query::new(Time::Nanoseconds(1), Time::Relative{value: 1, unit: TimeUnit::WEEKS});