[][src]Struct threescalers::response::MetricsHierarchy

pub struct MetricsHierarchy(_);

Methods

impl MetricsHierarchy[src]

pub fn new() -> Self[src]

pub fn insert<S: Into<String>, V: Into<Vec<String>>>(
    &mut self,
    parent_metric: S,
    children_metrics: V
) -> Option<Vec<String>>
[src]

pub fn remove<S: AsRef<str>>(&mut self, parent_metric: S) -> Option<Vec<String>>[src]

pub fn iter(&self) -> Iter<String, Vec<String>>[src]

pub fn iter_mut(&mut self) -> IterMut<String, Vec<String>>[src]

pub fn into_inner(self) -> HashMap<String, Vec<String>>[src]

pub fn parent_of(&self, metric_name: &str) -> Option<&str>[src]

Retrieves the parent metric of a given metric. Note that Apisonator metrics have 0 or 1 parent metrics, not multiple.

Trait Implementations

impl Default for MetricsHierarchy[src]

impl Clone for MetricsHierarchy[src]

impl PartialEq<MetricsHierarchy> for MetricsHierarchy[src]

impl Debug for MetricsHierarchy[src]

impl<'de> Deserialize<'de> for MetricsHierarchy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]