pub struct DatapointsFilter {
pub items: Vec<DatapointsQuery>,
pub start: Option<TimestampOrRelative>,
pub end: Option<TimestampOrRelative>,
pub limit: Option<u32>,
pub aggregates: Option<Vec<Aggregate>>,
pub granularity: Option<String>,
pub include_outside_points: Option<bool>,
pub ignore_unknown_ids: Option<bool>,
}Expand description
Filter on datapoints
Fields§
§items: Vec<DatapointsQuery>List of timeseries to query.
start: Option<TimestampOrRelative>Get datapoints from, and including, this time.
end: Option<TimestampOrRelative>Get datapoints up to, but excluding, this point in time.
limit: Option<u32>Returns up to this number of data points. The maximum is 100000 non-aggregated data points and 10000 aggregated data points in total across all queries in a single request.
aggregates: Option<Vec<Aggregate>>Specify the aggregates to return.
granularity: Option<String>The time granularity size and unit to aggregate over. Valid entries are ‘day, hour, minute, second’, or short forms ‘d, h, m, s’, or a multiple of these indicated by a number as a prefix. For ‘second’ and ‘minute’, the multiple must be an integer between 1 and 120 inclusive; for ‘hour’ and ‘day’, the multiple must be an integer between 1 and 100000 inclusive.
For example, a granularity ‘5m’ means that aggregates are calculated over 5 minutes. This field is required if aggregates are specified.
include_outside_points: Option<bool>Whether to include the last data points before the requsted time period and the first one after.
ignore_unknown_ids: Option<bool>Ignore IDs and external IDs that are not found
Trait Implementations§
Source§impl Clone for DatapointsFilter
impl Clone for DatapointsFilter
Source§fn clone(&self) -> DatapointsFilter
fn clone(&self) -> DatapointsFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more