pub struct CheckpointMetrics { /* private fields */ }Expand description
Checkpointer handles (spate_checkpoint_*).
Implementations§
Source§impl CheckpointMetrics
impl CheckpointMetrics
Sourcepub fn new(labels: &ComponentLabels, per_partition_detail: bool) -> Self
pub fn new(labels: &ComponentLabels, per_partition_detail: bool) -> Self
Resolve all checkpointer handles.
Claims the spate_checkpoint_* series for these labels; a second live
handle set logs and becomes a shadow, counting commits but publishing
no gauge (see “Series ownership” in docs/METRICS.md).
Sourcepub fn try_new(
labels: &ComponentLabels,
per_partition_detail: bool,
) -> Result<Self, MetricsError>
pub fn try_new( labels: &ComponentLabels, per_partition_detail: bool, ) -> Result<Self, MetricsError>
Resolve all checkpointer handles, failing when another live handle set already owns the series. The pipeline runtime’s path.
§Errors
MetricsError::DuplicateSeries on a collision.
Sourcepub fn set_pending_max(&self, pending: usize)
pub fn set_pending_max(&self, pending: usize)
Set the max pending-batch count across partitions.
Sourcepub fn set_partition_pending(&self, partition: PartitionId, pending: usize)
pub fn set_partition_pending(&self, partition: PartitionId, pending: usize)
Set one partition’s pending count. No-op unless
per_partition_detail.
Sourcepub fn retain_partitions(&self, keep: &[PartitionId])
pub fn retain_partitions(&self, keep: &[PartitionId])
Drop per-partition series for revoked partitions.
Sourcepub fn set_watermark_age(&self, age: Duration)
pub fn set_watermark_age(&self, age: Duration)
Set the age of the oldest unacknowledged batch.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CheckpointMetrics
impl !RefUnwindSafe for CheckpointMetrics
impl !UnwindSafe for CheckpointMetrics
impl Send for CheckpointMetrics
impl Sync for CheckpointMetrics
impl Unpin for CheckpointMetrics
impl UnsafeUnpin for CheckpointMetrics
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