pub struct OrchestrationStats {
pub total_workflows: usize,
pub pending_workflows: usize,
pub running_workflows: usize,
pub completed_workflows: usize,
pub total_tasks: usize,
pub pending_tasks: usize,
pub running_tasks: usize,
pub total_nodes: usize,
pub active_nodes: usize,
pub total_capacity: usize,
pub current_load: usize,
}
Expand description
Orchestration statistics
Fields§
§total_workflows: usize
§pending_workflows: usize
§running_workflows: usize
§completed_workflows: usize
§total_tasks: usize
§pending_tasks: usize
§running_tasks: usize
§total_nodes: usize
§active_nodes: usize
§total_capacity: usize
§current_load: usize
Implementations§
Source§impl OrchestrationStats
impl OrchestrationStats
Sourcepub fn capacity_utilization(&self) -> f64
pub fn capacity_utilization(&self) -> f64
Calculate capacity utilization percentage
Sourcepub fn node_availability(&self) -> f64
pub fn node_availability(&self) -> f64
Calculate node availability percentage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OrchestrationStats
impl RefUnwindSafe for OrchestrationStats
impl Send for OrchestrationStats
impl Sync for OrchestrationStats
impl Unpin for OrchestrationStats
impl UnwindSafe for OrchestrationStats
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
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>
Converts
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>
Converts
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