pub struct SeriesQuery {
pub name: Option<String>,
pub from: i64,
pub to: i64,
pub terms: Vec<Term>,
pub max_series: usize,
pub max_points: usize,
}Expand description
A metrics query.
Note what is missing: no step, no aggregation, no rate. Downsampling in the
engine would need a fill policy, an alignment rule and a choice of aggregator
per metric kind, all of which are presentation decisions the caller is better
placed to make and all of which are wrong for somebody. Raw points, bounded
by max_points, and the chart decides.
Fields§
§name: Option<String>Exact metric name. None matches every metric, which is what the name
listing uses and what an exploratory query does before it knows better.
from: i64Inclusive nanosecond bounds.
to: i64§terms: Vec<Term>Attribute filters. A term is satisfied if it matches at any level —
resource, scope, metric or data point — because a caller filtering on
service.name should not have to know which of the four carries it.
max_series: usize§max_points: usizePer series, not in total: truncating one busy series must not silently empty the others charted beside it.
Trait Implementations§
Source§impl Clone for SeriesQuery
impl Clone for SeriesQuery
Source§fn clone(&self) -> SeriesQuery
fn clone(&self) -> SeriesQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SeriesQuery
impl RefUnwindSafe for SeriesQuery
impl Send for SeriesQuery
impl Sync for SeriesQuery
impl Unpin for SeriesQuery
impl UnsafeUnpin for SeriesQuery
impl UnwindSafe for SeriesQuery
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].