pub struct AdapterMetricFamilies {
pub adapter: &'static str,
pub families: &'static [&'static str],
pub prefix: Option<&'static str>,
}Expand description
The instrument families an adapter publishes on a component of its own, outside any activity (SRD-117 §6).
A stop_when: or poll: predicate reads any registered family
through metric(…). The workload lint warns on a family it does
not know, since an unregistered family reads 0.0 with no error; an
adapter names its families here so reading one is not mistaken for
a misspelling.
Fields§
§adapter: &'static str§families: &'static [&'static str]Families the adapter always publishes.
prefix: Option<&'static str>A prefix under which the adapter publishes families named by
the workload (the logfile adapter’s logfile_<rule>_<field>).
Trait Implementations§
impl Collect for AdapterMetricFamilies
Auto Trait Implementations§
impl Forget for AdapterMetricFamilies
impl Freeze for AdapterMetricFamilies
impl Move for AdapterMetricFamilies
impl RefUnwindSafe for AdapterMetricFamilies
impl Send for AdapterMetricFamilies
impl Sync for AdapterMetricFamilies
impl Unpin for AdapterMetricFamilies
impl UnsafeUnpin for AdapterMetricFamilies
impl UnwindSafe for AdapterMetricFamilies
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more