pub struct MetricsQuery {
pub types: Vec<String>,
pub start: Option<String>,
pub end: Option<String>,
pub period: Option<u32>,
pub limit: Option<u32>,
pub descending: Option<bool>,
}Expand description
Query parameters for get_metrics_events and
get_metrics_usage. types filters by event/usage type; leave it
empty for all.
Fields§
§types: Vec<String>Event or usage 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).
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§fn clone(&self) -> MetricsQuery
fn clone(&self) -> MetricsQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricsQuery
impl Debug for MetricsQuery
Source§impl Default for MetricsQuery
impl Default for MetricsQuery
Source§fn default() -> MetricsQuery
fn default() -> MetricsQuery
Returns the “default value” for a type. Read more
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