Struct ore::metrics::third_party_metric::ThirdPartyMetric[][src]

pub struct ThirdPartyMetric<T: Collector + Clone> {
    pub(super) inner: T,
}
This is supported on crate feature metrics only.
Expand description

A metric that can be made accessible to cloud infrastructure/orchestrators, that won’t betray the contents of the materialize instance that it details.

Fields

inner: T

Implementations

Creates a metric that can be scraped by a third party, with the given label values.

Creates a metric that can be scraped by a third party, with the given label values.

Panics

Panics if the metric can not be created.

Creates a delete-on-drop counter that can be scraped by third parties.

Creates a delete-on-drop gauge that can be scraped by third parties.

Methods from Deref<Target = GenericCounter<T>>

The fully qualified name for this counter

This is the name with no labels, and corresponds to desc().fq_name on the Collector trait.

Increase the given value to the counter.

Panics

Panics in debug build if the value is < 0.

Increase the counter by 1.

Return the counter value.

Restart the counter, resetting its value back to 0.

Return a GenericLocalCounter for single thread usage.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

The resulting type after dereferencing.

Dereferences the value.

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

A guard object containing the value and keeping it alive. Read more

The loading method. Read more

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

The equivalent of Access::load.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more