pub struct TroubleshootingEnvironment { /* private fields */ }Expand description
障害診断環境
Implementations§
Source§impl TroubleshootingEnvironment
impl TroubleshootingEnvironment
Sourcepub fn new(
services: HashMap<String, Service>,
target_service: impl Into<String>,
) -> Self
pub fn new( services: HashMap<String, Service>, target_service: impl Into<String>, ) -> Self
新しい環境を作成
Sourcepub fn memory_leak_scenario() -> Self
pub fn memory_leak_scenario() -> Self
メモリリークシナリオを作成
Sourcepub fn cpu_spike_scenario() -> Self
pub fn cpu_spike_scenario() -> Self
CPUスパイクシナリオを作成
Sourcepub fn network_timeout_scenario() -> Self
pub fn network_timeout_scenario() -> Self
ネットワークタイムアウトシナリオを作成
Sourcepub fn complex_scenario(
total_services: usize,
noise_services: usize,
cascade_depth: usize,
seed: u64,
) -> Self
pub fn complex_scenario( total_services: usize, noise_services: usize, cascade_depth: usize, seed: u64, ) -> Self
Sourcepub fn medium_complexity_scenario() -> Self
pub fn medium_complexity_scenario() -> Self
プリセット: 中規模複雑シナリオ (15サービス, 3ノイズ, 2連鎖)
Sourcepub fn high_complexity_scenario() -> Self
pub fn high_complexity_scenario() -> Self
プリセット: 大規模複雑シナリオ (30サービス, 8ノイズ, 3連鎖)
Sourcepub fn extreme_complexity_scenario() -> Self
pub fn extreme_complexity_scenario() -> Self
プリセット: 超大規模シナリオ (50サービス, 15ノイズ, 4連鎖)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TroubleshootingEnvironment
impl RefUnwindSafe for TroubleshootingEnvironment
impl Send for TroubleshootingEnvironment
impl Sync for TroubleshootingEnvironment
impl Unpin for TroubleshootingEnvironment
impl UnwindSafe for TroubleshootingEnvironment
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> 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 more