[−][src]Struct metrics_observer_yaml::YamlBuilder
Builder for YamlObserver
.
Methods
impl YamlBuilder
[src]
pub fn new() -> Self
[src]
Creates a new YamlBuilder
with default values.
pub fn set_quantiles(self, quantiles: &[f64]) -> Self
[src]
Sets the quantiles to use when rendering histograms.
Quantiles represent a scale of 0 to 1, where percentiles represent a scale of 1 to 100, so a quantile of 0.99 is the 99th percentile, and a quantile of 0.99 is the 99.9th percentile.
By default, the quantiles will be set to: 0.0, 0.5, 0.9, 0.95, 0.99, 0.999, and 1.0.
Trait Implementations
impl Default for YamlBuilder
[src]
impl Builder for YamlBuilder
[src]
type Output = YamlObserver
The observer created by this builder.
fn build(&self) -> Self::Output
[src]
Auto Trait Implementations
impl Sync for YamlBuilder
impl Send for YamlBuilder
impl Unpin for YamlBuilder
impl RefUnwindSafe for YamlBuilder
impl UnwindSafe for YamlBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,