pub struct Subquery {
pub range: PromDuration,
pub resolution: Option<PromDuration>,
pub span: Option<Span>,
}
Expand description
A Subquery which converts an instant vector to a range vector by repeatedly evaluating it at set intervals into the relative past
Fields§
§range: PromDuration
Duration back in time to begin the subquery
resolution: Option<PromDuration>
Optional step size. If unset, uses the global/query default at runtime.
span: Option<Span>
Implementations§
Source§impl Subquery
impl Subquery
pub fn new(range: PromDuration) -> Self
pub fn resolution(self, res: PromDuration) -> Self
pub fn clear_resolution(self) -> Self
pub fn span<S: Into<Span>>(self, span: S) -> Self
Trait Implementations§
impl Eq for Subquery
impl StructuralPartialEq for Subquery
Auto Trait Implementations§
impl Freeze for Subquery
impl RefUnwindSafe for Subquery
impl Send for Subquery
impl Sync for Subquery
impl Unpin for Subquery
impl UnwindSafe for Subquery
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