pub struct EventSnapshot {
pub timestamp: DateTime<Utc>,
pub pending: u64,
pub active: u64,
pub succeeded: u64,
pub failed: u64,
pub retried: u64,
pub revoked: u64,
pub queue_depth: u64,
pub worker_count: u64,
pub queue_depths: HashMap<String, u64>,
}Expand description
Periodic aggregate snapshot of cluster state.
A snapshot is a point-in-time summary suitable for dashboards, persistence,
and as an input to AlertEvaluator. All counts are plain integers so the
type serializes compactly.
Fields§
§timestamp: DateTime<Utc>When the snapshot was taken.
pending: u64Number of tasks currently pending (sent but not started).
active: u64Number of tasks currently active/running.
succeeded: u64Number of tasks that have succeeded (in the aggregation period).
failed: u64Number of tasks that have failed (in the aggregation period).
retried: u64Number of tasks retried (in the aggregation period).
revoked: u64Number of tasks revoked (in the aggregation period).
queue_depth: u64Total depth across all queues.
worker_count: u64Number of workers considered online.
queue_depths: HashMap<String, u64>Optional per-queue depth breakdown.
Implementations§
Source§impl EventSnapshot
impl EventSnapshot
Trait Implementations§
Source§impl Clone for EventSnapshot
impl Clone for EventSnapshot
Source§impl Debug for EventSnapshot
impl Debug for EventSnapshot
Source§impl<'de> Deserialize<'de> for EventSnapshot
impl<'de> Deserialize<'de> for EventSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EventSnapshot
Source§impl PartialEq for EventSnapshot
impl PartialEq for EventSnapshot
Source§impl Serialize for EventSnapshot
impl Serialize for EventSnapshot
impl StructuralPartialEq for EventSnapshot
Auto Trait Implementations§
impl Freeze for EventSnapshot
impl RefUnwindSafe for EventSnapshot
impl Send for EventSnapshot
impl Sync for EventSnapshot
impl Unpin for EventSnapshot
impl UnsafeUnpin for EventSnapshot
impl UnwindSafe for EventSnapshot
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