pub struct TaskSchedulerQuotaHealthSnapshot {Show 15 fields
pub identity: ExecutionIdentityV1,
pub max_active: usize,
pub observed: bool,
pub live: bool,
pub active: usize,
pub pending: usize,
pub blocked: bool,
pub admitted: u64,
pub released: u64,
pub cancelled: u64,
pub rejected: u64,
pub peak_active: usize,
pub total_wait_micros: u64,
pub average_wait_micros: u64,
pub max_wait_micros: u64,
}Expand description
Bounded live-or-recent health for one scheduler quota identity.
Unlike TaskSchedulerQuotaSnapshot, this projection retains cumulative
counters for a small bounded window after a quota becomes idle. It contains
only the validated digest identity and numeric capacity data; scheduler
labels, provider routing text, prompts, and payloads are never retained.
Fields§
§identity: ExecutionIdentityV1Digest-only quota identity requested by the caller.
max_active: usizeImmutable limit for this observed configuration epoch.
observed: boolWhether this scheduler has observed the requested identity/limit epoch.
live: boolWhether the quota currently has an active reservation or queued waiter.
active: usizeCurrent active reservations for this identity.
pending: usizeCurrent queued requests for this identity.
blocked: boolWhether pending work is currently blocked by this quota.
admitted: u64Successful admissions observed in the retained epoch.
released: u64Normally released reservations observed in the retained epoch.
cancelled: u64Queued or active admissions cancelled by their caller.
rejected: u64Pending admissions rejected while the scheduler was closing.
peak_active: usizeHighest simultaneous reservation count observed for this identity.
total_wait_micros: u64Saturating sum of successful admission wait time in microseconds.
average_wait_micros: u64Mean successful admission wait time in microseconds.
max_wait_micros: u64Longest successful admission wait time in microseconds.
Trait Implementations§
Source§impl Clone for TaskSchedulerQuotaHealthSnapshot
impl Clone for TaskSchedulerQuotaHealthSnapshot
Source§fn clone(&self) -> TaskSchedulerQuotaHealthSnapshot
fn clone(&self) -> TaskSchedulerQuotaHealthSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for TaskSchedulerQuotaHealthSnapshot
impl<'de> Deserialize<'de> for TaskSchedulerQuotaHealthSnapshot
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>,
impl Eq for TaskSchedulerQuotaHealthSnapshot
impl StructuralPartialEq for TaskSchedulerQuotaHealthSnapshot
Auto Trait Implementations§
impl Freeze for TaskSchedulerQuotaHealthSnapshot
impl RefUnwindSafe for TaskSchedulerQuotaHealthSnapshot
impl Send for TaskSchedulerQuotaHealthSnapshot
impl Sync for TaskSchedulerQuotaHealthSnapshot
impl Unpin for TaskSchedulerQuotaHealthSnapshot
impl UnsafeUnpin for TaskSchedulerQuotaHealthSnapshot
impl UnwindSafe for TaskSchedulerQuotaHealthSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more