pub struct MetricsQuery {
pub types: Vec<String>,
pub start: Option<String>,
pub end: Option<String>,
pub period: Option<u32>,
pub window: Option<u32>,
pub limit: Option<u32>,
pub descending: Option<bool>,
}Expand description
Query parameters for the metrics endpoints (get_metrics_events,
get_metrics_usage, get_metrics_rates). types filters by
event/usage/rate type; leave it empty for all. window is only meaningful
for rates (the bucket the rate is computed over, in seconds).
Fields§
§types: Vec<String>Event, usage, or rate types to include; empty means all.
start: Option<String>Window start (RFC 3339).
end: Option<String>Window end (RFC 3339).
period: Option<u32>Bucket size in seconds (1 to 86400).
window: Option<u32>Rate window in seconds; rates only.
limit: Option<u32>Maximum buckets to return.
descending: Option<bool>Return newest bucket first.
Trait Implementations§
Source§impl Clone for MetricsQuery
impl Clone for MetricsQuery
Source§impl Debug for MetricsQuery
impl Debug for MetricsQuery
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