pub struct HybridStore { /* private fields */ }Expand description
Composite read backend over an ordered tier list (finest first).
Implementations§
Trait Implementations§
Source§impl MetricAccess for HybridStore
impl MetricAccess for HybridStore
Source§fn select_range(
&self,
matchers: &[Matcher],
start_ms: i64,
end_ms: i64,
) -> Result<Vector, QueryError>
fn select_range( &self, matchers: &[Matcher], start_ms: i64, end_ms: i64, ) -> Result<Vector, QueryError>
Range selection: series matching every
matcher, with every
sample in [start_ms, end_ms] (ascending). Yields a range
vector — the input a rollup (rate(m[w]), *_over_time)
consumes. This is the one required method; select_instant
derives from it.Source§fn select_instant(
&self,
matchers: &[Matcher],
at_ms: i64,
lookback_ms: Option<i64>,
) -> Result<Vector, QueryError>
fn select_instant( &self, matchers: &[Matcher], at_ms: i64, lookback_ms: Option<i64>, ) -> Result<Vector, QueryError>
Instant selection: series matching every
matcher, each reduced
to its latest sample within [at_ms - lookback, at_ms] (the
PromQL stale-tolerance window; lookback_ms = None means a
strict [at_ms, at_ms]). Yields an instant vector — one sample
per series. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HybridStore
impl !UnwindSafe for HybridStore
impl Freeze for HybridStore
impl Send for HybridStore
impl Sync for HybridStore
impl Unpin for HybridStore
impl UnsafeUnpin for HybridStore
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