pub struct MetricsQuery;Expand description
MetricsQuery
Read-only query façade over metric snapshots. Responsible for mapping, sorting, and pagination only.
Implementations§
Source§impl MetricsQuery
impl MetricsQuery
Sourcepub fn page(kind: MetricsKind, page: PageRequest) -> Page<MetricEntry>
pub fn page(kind: MetricsKind, page: PageRequest) -> Page<MetricEntry>
Return one sorted, paginated metrics family snapshot.
pub fn core(page: PageRequest) -> Page<MetricEntry>
pub fn placement(page: PageRequest) -> Page<MetricEntry>
pub fn platform(page: PageRequest) -> Page<MetricEntry>
pub fn runtime(page: PageRequest) -> Page<MetricEntry>
pub fn security(page: PageRequest) -> Page<MetricEntry>
pub fn storage(page: PageRequest) -> Page<MetricEntry>
Sourcepub fn sample_query<T>(value: T) -> QueryPerfSample<T>
pub fn sample_query<T>(value: T) -> QueryPerfSample<T>
Wrap a query result with the current same-call local instruction count.
Auto Trait Implementations§
impl Freeze for MetricsQuery
impl RefUnwindSafe for MetricsQuery
impl Send for MetricsQuery
impl Sync for MetricsQuery
impl Unpin for MetricsQuery
impl UnsafeUnpin for MetricsQuery
impl UnwindSafe for MetricsQuery
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