Struct dipstick::PrometheusScope
source · pub struct PrometheusScope { /* private fields */ }
Expand description
Prometheus Input
Trait Implementations§
source§impl Buffered for PrometheusScope
impl Buffered for PrometheusScope
source§fn buffered(&self, buffering: Buffering) -> Self
fn buffered(&self, buffering: Buffering) -> Self
Return a clone with the specified buffering set.
source§fn get_buffering(&self) -> Buffering
fn get_buffering(&self) -> Buffering
Return the current buffering strategy.
source§fn is_buffered(&self) -> bool
fn is_buffered(&self) -> bool
Returns false if the current buffering strategy is
Buffering::Unbuffered
.
Returns true otherwise.source§impl Clone for PrometheusScope
impl Clone for PrometheusScope
source§fn clone(&self) -> PrometheusScope
fn clone(&self) -> PrometheusScope
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 moresource§impl Debug for PrometheusScope
impl Debug for PrometheusScope
source§impl Drop for PrometheusScope
impl Drop for PrometheusScope
Any remaining buffered data is flushed on Drop.
source§impl Flush for PrometheusScope
impl Flush for PrometheusScope
source§impl InputScope for PrometheusScope
impl InputScope for PrometheusScope
source§fn new_metric(&self, name: MetricName, kind: InputKind) -> InputMetric
fn new_metric(&self, name: MetricName, kind: InputKind) -> InputMetric
Define a metric of the specified type.
source§impl WithAttributes for PrometheusScope
impl WithAttributes for PrometheusScope
source§fn get_attributes(&self) -> &Attributes
fn get_attributes(&self) -> &Attributes
Return attributes of component.
source§fn mut_attributes(&mut self) -> &mut Attributes
fn mut_attributes(&mut self) -> &mut Attributes
Return attributes of component for mutation.
source§fn with_attributes<F: Fn(&mut Attributes)>(&self, edit: F) -> Self
fn with_attributes<F: Fn(&mut Attributes)>(&self, edit: F) -> Self
Clone the component and mutate its attributes at once.