pub struct ComponentLabels {
pub pipeline: SharedString,
pub component: SharedString,
pub component_type: SharedString,
}Expand description
The standard label set attached to every framework metric.
Fields§
§pipeline: SharedStringPipeline name.
component: SharedStringComponent instance id from config/builder (e.g. orders_kafka).
component_type: SharedStringComponent implementation (e.g. kafka, clickhouse, map).
Implementations§
Source§impl ComponentLabels
impl ComponentLabels
Sourcepub fn new(
pipeline: impl Into<SharedString>,
component: impl Into<SharedString>,
component_type: impl Into<SharedString>,
) -> Self
pub fn new( pipeline: impl Into<SharedString>, component: impl Into<SharedString>, component_type: impl Into<SharedString>, ) -> Self
Build the standard label set.
Trait Implementations§
Source§impl Clone for ComponentLabels
impl Clone for ComponentLabels
Source§fn clone(&self) -> ComponentLabels
fn clone(&self) -> ComponentLabels
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComponentLabels
impl RefUnwindSafe for ComponentLabels
impl Send for ComponentLabels
impl Sync for ComponentLabels
impl Unpin for ComponentLabels
impl UnsafeUnpin for ComponentLabels
impl UnwindSafe for ComponentLabels
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