pub struct PipelineMetrics { /* private fields */ }Expand description
Pipeline-level handles (etl_pipeline_*).
Implementations§
Source§impl PipelineMetrics
impl PipelineMetrics
Sourcepub fn new(labels: &ComponentLabels, version: &str) -> Self
pub fn new(labels: &ComponentLabels, version: &str) -> Self
Resolve pipeline handles and publish the info series.
Sourcepub fn set_state(&self, state: PipelineState)
pub fn set_state(&self, state: PipelineState)
Flip the state gauges so exactly the current state reads 1.
Sourcepub fn set_threads(&self, threads: usize)
pub fn set_threads(&self, threads: usize)
Publish the pinned pipeline thread count.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PipelineMetrics
impl !RefUnwindSafe for PipelineMetrics
impl Send for PipelineMetrics
impl Sync for PipelineMetrics
impl Unpin for PipelineMetrics
impl UnsafeUnpin for PipelineMetrics
impl !UnwindSafe for PipelineMetrics
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