[−][src]Struct dipstick::AtomicBucket
Central aggregation structure. Maintains a list of metrics for enumeration when used as source.
Methods
impl AtomicBucket
[src]
impl AtomicBucket
pub fn new() -> AtomicBucket | [src] |
Build a new atomic bucket.
pub fn set_default_stats<F>(func: F) where | [src] |
Set the default aggregated metrics statistics generator.
pub fn unset_default_stats() | [src] |
Revert the default aggregated metrics statistics generator to the default stats_summary
.
pub fn set_default_drain( | [src] |
Set the default bucket aggregated metrics flush output.
pub fn unset_default_drain() | [src] |
Revert the default bucket aggregated metrics flush output.
pub fn set_stats<F>(&self, func: F) where | [src] |
Set this bucket's statistics generator.
pub fn unset_stats<F>(&self) | [src] |
Revert this bucket's statistics generator to the default stats.
pub fn set_drain( | [src] |
Set this bucket's aggregated metrics flush output.
pub fn unset_drain(&self) | [src] |
Revert this bucket's flush target to the default output.
pub fn flush_to(&self, publish_scope: &dyn OutputScope) -> Result<()> | [src] |
Immediately flush the bucket's metrics to the specified scope and stats.
Trait Implementations
impl InputScope for AtomicBucket
[src]
impl InputScope for AtomicBucket
fn new_metric(&self, name: MetricName, kind: InputKind) -> InputMetric | [src] |
Lookup or create scores for the requested metric.
fn counter(&self, name: &str) -> Counter | [src] |
Define a counter.
fn marker(&self, name: &str) -> Marker | [src] |
Define a marker.
fn timer(&self, name: &str) -> Timer | [src] |
Define a timer.
fn gauge(&self, name: &str) -> Gauge | [src] |
Define a gauge.
fn level(&self, name: &str) -> Level | [src] |
Define a level.
impl Flush for AtomicBucket
[src]
impl Flush for AtomicBucket
impl<S: AsRef<str>> From<S> for AtomicBucket
[src]
impl<S: AsRef<str>> From<S> for AtomicBucket
fn from(name: S) -> AtomicBucket | [src] |
impl Clone for AtomicBucket
[src]
impl Clone for AtomicBucket
fn clone(&self) -> AtomicBucket | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for AtomicBucket
[src]
impl Debug for AtomicBucket
Auto Trait Implementations
impl Send for AtomicBucket
impl Send for AtomicBucket
impl Sync for AtomicBucket
impl Sync for AtomicBucket
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |