[][src]Struct prometheus_parser::Subquery

pub struct Subquery {
    pub range: PromDuration,
    pub resolution: Option<PromDuration>,
    pub span: Option<Span>,
}

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>

Methods

impl Subquery[src]

pub fn new(range: PromDuration) -> Self[src]

pub fn resolution(self, res: PromDuration) -> Self[src]

pub fn clear_resolution(self) -> Self[src]

pub fn span<S: Into<Span>>(self, span: S) -> Self[src]

Trait Implementations

impl Clone for Subquery[src]

impl Debug for Subquery[src]

impl Display for Subquery[src]

impl Eq for Subquery[src]

impl PartialEq<Subquery> for Subquery[src]

impl StructuralEq for Subquery[src]

impl StructuralPartialEq for Subquery[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.