Skip to main content

ProviderAnalyzer

Trait ProviderAnalyzer 

Source
pub trait ProviderAnalyzer {
    // Required methods
    fn version(&self) -> AnalyzerVersion;
    fn classify_transaction(&self, tx: &TransactionView) -> Detection;

    // Provided method
    fn classify_har(
        &self,
        har_json: &str,
    ) -> Result<HarClassificationReport, HarError> { ... }
}
Expand description

Interface for versioned provider analyzers.

Required Methods§

Source

fn version(&self) -> AnalyzerVersion

Analyzer version identifier.

Source

fn classify_transaction(&self, tx: &TransactionView) -> Detection

Classify one transaction into provider evidence.

Provided Methods§

Source

fn classify_har( &self, har_json: &str, ) -> Result<HarClassificationReport, HarError>

Classify all transactions in a HAR payload.

§Errors

Returns an error when HAR parsing fails.

Implementors§