pub trait SzDiagnostic {
// Required methods
fn check_repository_performance(
&self,
seconds_to_run: i64,
) -> SzResult<JsonString>;
fn get_feature(&self, feature_id: FeatureId) -> SzResult<JsonString>;
fn get_repository_info(&self) -> SzResult<JsonString>;
fn purge_repository(&self) -> SzResult<()>;
}
Expand description
System diagnostics and monitoring
The SzDiagnostic
trait provides methods for system health monitoring,
performance analysis, and repository maintenance.
Required Methods§
Sourcefn check_repository_performance(
&self,
seconds_to_run: i64,
) -> SzResult<JsonString>
fn check_repository_performance( &self, seconds_to_run: i64, ) -> SzResult<JsonString>
Runs a performance test for the specified duration
Sourcefn get_feature(&self, feature_id: FeatureId) -> SzResult<JsonString>
fn get_feature(&self, feature_id: FeatureId) -> SzResult<JsonString>
Gets feature information by feature ID
Sourcefn get_repository_info(&self) -> SzResult<JsonString>
fn get_repository_info(&self) -> SzResult<JsonString>
Gets repository information and statistics
Sourcefn purge_repository(&self) -> SzResult<()>
fn purge_repository(&self) -> SzResult<()>
Purges all data from the repository (configuration remains)