pub struct ChaosImpact {
pub start_time: DateTime<Utc>,
pub end_time: DateTime<Utc>,
pub total_events: usize,
pub severity_score: f64,
pub top_affected_endpoints: Vec<(String, usize)>,
pub event_distribution: HashMap<String, usize>,
pub avg_degradation_percent: f64,
pub peak_chaos_time: Option<DateTime<Utc>>,
pub peak_chaos_events: usize,
}Expand description
Chaos impact analysis
Fields§
§start_time: DateTime<Utc>Analysis period
end_time: DateTime<Utc>§total_events: usizeTotal chaos events
severity_score: f64Impact severity (0.0 - 1.0) Based on event frequency, latency, and fault rate
top_affected_endpoints: Vec<(String, usize)>Most affected endpoints
event_distribution: HashMap<String, usize>Chaos distribution
avg_degradation_percent: f64Average system degradation percentage
peak_chaos_time: Option<DateTime<Utc>>Peak chaos time
peak_chaos_events: usizeImplementations§
Source§impl ChaosImpact
impl ChaosImpact
Sourcepub fn from_buckets(buckets: &[MetricsBucket]) -> Self
pub fn from_buckets(buckets: &[MetricsBucket]) -> Self
Calculate impact from metrics buckets
Trait Implementations§
Source§impl Clone for ChaosImpact
impl Clone for ChaosImpact
Source§fn clone(&self) -> ChaosImpact
fn clone(&self) -> ChaosImpact
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChaosImpact
impl Debug for ChaosImpact
Source§impl<'de> Deserialize<'de> for ChaosImpact
impl<'de> Deserialize<'de> for ChaosImpact
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
Auto Trait Implementations§
impl Freeze for ChaosImpact
impl RefUnwindSafe for ChaosImpact
impl Send for ChaosImpact
impl Sync for ChaosImpact
impl Unpin for ChaosImpact
impl UnwindSafe for ChaosImpact
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request