[−][src]Struct threescalers::response::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]
&mut self,
parent_metric: S,
children_metrics: V
) -> Option<Vec<String>>
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]
fn default() -> MetricsHierarchy
[src]
impl Clone for MetricsHierarchy
[src]
fn clone(&self) -> MetricsHierarchy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<MetricsHierarchy> for MetricsHierarchy
[src]
fn eq(&self, other: &MetricsHierarchy) -> bool
[src]
fn ne(&self, other: &MetricsHierarchy) -> bool
[src]
impl Debug for MetricsHierarchy
[src]
impl<'de> Deserialize<'de> for MetricsHierarchy
[src]
fn deserialize<D>(deserializer: D) -> Result<MetricsHierarchy, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for MetricsHierarchy
impl Unpin for MetricsHierarchy
impl Sync for MetricsHierarchy
impl UnwindSafe for MetricsHierarchy
impl RefUnwindSafe for MetricsHierarchy
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,