pub struct MetricsQuery {
pub scopes: Vec<MetricsScope>,
pub hosts: Vec<String>,
pub disks: Vec<String>,
pub interval: Option<String>,
pub samples: u16,
pub by_host: bool,
pub by_disk: bool,
pub job_id: Option<String>,
pub deployment_id: Option<String>,
}Expand description
Bounded realtime metrics request.
Fields§
§scopes: Vec<MetricsScope>§hosts: Vec<String>§disks: Vec<String>§interval: Option<String>§samples: u16§by_host: bool§by_disk: bool§job_id: Option<String>§deployment_id: Option<String>Implementations§
Source§impl MetricsQuery
impl MetricsQuery
Sourcepub fn types_mask(&self) -> u32
pub fn types_mask(&self) -> u32
Combine requested selector bits without allowing duplicate scopes to alter the mask.
Sourcepub fn scope_label(&self) -> String
pub fn scope_label(&self) -> String
Stable label used by human and machine output.
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
impl Eq for MetricsQuery
Source§impl PartialEq for MetricsQuery
impl PartialEq for MetricsQuery
impl StructuralPartialEq 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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