pub struct LiveAnalyzer { /* private fields */ }Expand description
Live cluster analyzer.
Implementations§
Source§impl LiveAnalyzer
impl LiveAnalyzer
Sourcepub async fn new(config: LiveAnalyzerConfig) -> Result<Self, LiveAnalyzerError>
pub async fn new(config: LiveAnalyzerConfig) -> Result<Self, LiveAnalyzerError>
Create a new live analyzer, attempting to connect to the cluster.
Sourcepub async fn with_context(
context: &str,
config: LiveAnalyzerConfig,
) -> Result<Self, LiveAnalyzerError>
pub async fn with_context( context: &str, config: LiveAnalyzerConfig, ) -> Result<Self, LiveAnalyzerError>
Create analyzer with specific context.
Sourcepub async fn available_sources(&self) -> Vec<DataSource>
pub async fn available_sources(&self) -> Vec<DataSource>
Check what data sources are available.
Sourcepub async fn analyze(&self) -> Result<LiveAnalysisResult, LiveAnalyzerError>
pub async fn analyze(&self) -> Result<LiveAnalysisResult, LiveAnalyzerError>
Analyze cluster and generate recommendations.
Auto Trait Implementations§
impl Freeze for LiveAnalyzer
impl !RefUnwindSafe for LiveAnalyzer
impl Send for LiveAnalyzer
impl Sync for LiveAnalyzer
impl Unpin for LiveAnalyzer
impl !UnwindSafe for LiveAnalyzer
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> 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 moreCreates a shared type from an unshared type.