pub struct Stats {
pub blocks_total: usize,
pub blocks_scanned: usize,
pub rows_scanned: usize,
pub rows_matched: usize,
pub dropped_series: usize,
}Expand description
What a search cost, reported alongside the rows.
Not decoration. “How much did that cost” is the first question when a query is slow, and it is also what tells an agent its filter was too broad.
Fields§
§blocks_total: usize§blocks_scanned: usize§rows_scanned: usize§rows_matched: usizeRows satisfying the whole query — window, terms and after — not rows
on this page. limit cuts the page; this says how much there was to
cut, so a caller can tell “my filter is right and I am reading page one
of forty” from “my filter is wrong”.
dropped_series: usizeSeries the metrics cap refused (series::bound); always zero on a
record search, which has no such cap.
The counterpart to the per-series dropped_points, and here rather than
in the response body because the response body is a JSON array with
nowhere to hang a number that belongs to all of it. A chart with a
series missing and no way to know it is the failure mode both of these
exist to prevent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].