Type Alias substrate_prometheus_endpoint::SourcedCounter
source · pub type SourcedCounter<S> = SourcedMetric<Counter, S>;
Expand description
A counter whose values are obtained from an existing source.
*Note: The counter values provided by the source
S
must be monotonically increasing. Otherwise use aSourcedGauge
instead.
Aliased Type§
struct SourcedCounter<S> { /* private fields */ }
Implementations
source§impl<T: SourcedType, S: MetricSource> SourcedMetric<T, S>
impl<T: SourcedType, S: MetricSource> SourcedMetric<T, S>
Trait Implementations
source§impl<T: Clone, S: Clone> Clone for SourcedMetric<T, S>
impl<T: Clone, S: Clone> Clone for SourcedMetric<T, S>
source§fn clone(&self) -> SourcedMetric<T, S>
fn clone(&self) -> SourcedMetric<T, S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more