pub struct QueueStats {
pub name: String,
pub active: i64,
pub pending: i64,
pub scheduled: i64,
pub retry: i64,
pub archived: i64,
pub completed: i64,
pub aggregating: i64,
pub daily_stats: Vec<DailyStats>,
}Expand description
队列统计信息 Queue statistics
Fields§
§name: String队列名称 Queue name
active: i64活跃任务数 Number of active tasks
pending: i64等待中任务数 Number of pending tasks
scheduled: i64已调度任务数 Number of scheduled tasks
retry: i64重试任务数 Number of retry tasks
archived: i64已归档任务数 Number of archived tasks
completed: i64已完成任务数 Number of completed tasks
aggregating: i64聚合中任务数 Number of aggregating tasks
daily_stats: Vec<DailyStats>每日统计 Daily statistics
Implementations§
Source§impl QueueStats
impl QueueStats
Sourcepub fn new<N: Into<String>>(
name: N,
active: i64,
pending: i64,
scheduled: i64,
retry: i64,
archived: i64,
completed: i64,
aggregating: i64,
daily_stats: Vec<DailyStats>,
) -> Self
pub fn new<N: Into<String>>( name: N, active: i64, pending: i64, scheduled: i64, retry: i64, archived: i64, completed: i64, aggregating: i64, daily_stats: Vec<DailyStats>, ) -> Self
Create a new QueueStats and normalize the queue name so that
callers don’t have to worry about trailing Redis key suffixes
like }:pending or }:t:<id>. If the name contains a brace pair
like asynq:{tenant:queue}:pending, the text inside {} is used.
Trait Implementations§
Source§impl Clone for QueueStats
impl Clone for QueueStats
Source§impl Debug for QueueStats
impl Debug for QueueStats
Source§impl<'de> Deserialize<'de> for QueueStats
impl<'de> Deserialize<'de> for QueueStats
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
Source§impl PartialEq for QueueStats
impl PartialEq for QueueStats
Source§impl Serialize for QueueStats
impl Serialize for QueueStats
impl StructuralPartialEq for QueueStats
Auto Trait Implementations§
impl Freeze for QueueStats
impl RefUnwindSafe for QueueStats
impl Send for QueueStats
impl Sync for QueueStats
impl Unpin for QueueStats
impl UnsafeUnpin for QueueStats
impl UnwindSafe for QueueStats
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