pub enum AtModifier {
Timestamp(i64),
Start,
End,
}Expand description
The @ modifier for timestamp pinning.
The @ modifier allows pinning a query to a specific timestamp,
or to the start/end of the evaluation range.
§Examples
metric @ 1609459200- Pin to Unix timestampmetric @ start()- Pin to evaluation startmetric @ end()- Pin to evaluation end
Variants§
Timestamp(i64)
Pin to a specific Unix timestamp (in milliseconds).
Start
Pin to the start of the evaluation range: @ start()
End
Pin to the end of the evaluation range: @ end()
Trait Implementations§
Source§impl Clone for AtModifier
impl Clone for AtModifier
Source§fn clone(&self) -> AtModifier
fn clone(&self) -> AtModifier
Returns a duplicate of the value. Read more
1.0.0 · 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 AtModifier
impl Debug for AtModifier
Source§impl Display for AtModifier
impl Display for AtModifier
Source§impl PartialEq for AtModifier
impl PartialEq for AtModifier
impl StructuralPartialEq for AtModifier
Auto Trait Implementations§
impl Freeze for AtModifier
impl RefUnwindSafe for AtModifier
impl Send for AtModifier
impl Sync for AtModifier
impl Unpin for AtModifier
impl UnwindSafe for AtModifier
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