pub struct StatsSeriesQuery {
pub from: Option<Timestamp>,
pub to: Option<Timestamp>,
pub step: Option<StatsStep>,
pub compare: bool,
pub mode: Option<StatsMode>,
pub fill: Option<bool>,
pub limit: Option<u32>,
}Expand description
Range and shape of a series query. Core aligns the range to 10 minutes; data is kept 90 days and a range may span at most 92 days.
Fields§
§from: Option<Timestamp>Start. Core’s default: 24 hours before to.
to: Option<Timestamp>End. Core’s default: now.
step: Option<StatsStep>Step; Core’s default auto.
compare: boolAlso give totals of the preceding range of equal length (previous_total,
change).
mode: Option<StatsMode>Point values; Core’s default count.
fill: Option<bool>Some(false): leave out steps without data instead of 0 (Core’s default
true).
limit: Option<u32>Series kept, 1–100 (Core’s default 20); the rest is merged into __other.
Trait Implementations§
Source§impl Clone for StatsSeriesQuery
impl Clone for StatsSeriesQuery
Source§fn clone(&self) -> StatsSeriesQuery
fn clone(&self) -> StatsSeriesQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatsSeriesQuery
impl Debug for StatsSeriesQuery
Source§impl Default for StatsSeriesQuery
impl Default for StatsSeriesQuery
Source§fn default() -> StatsSeriesQuery
fn default() -> StatsSeriesQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatsSeriesQuery
impl RefUnwindSafe for StatsSeriesQuery
impl Send for StatsSeriesQuery
impl Sync for StatsSeriesQuery
impl Unpin for StatsSeriesQuery
impl UnsafeUnpin for StatsSeriesQuery
impl UnwindSafe for StatsSeriesQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more