pub struct Forecaster { /* private fields */ }Expand description
Main forecaster for API change predictions
Implementations§
Source§impl Forecaster
impl Forecaster
Sourcepub fn new(config: ForecastingConfig) -> Self
pub fn new(config: ForecastingConfig) -> Self
Create a new forecaster
Sourcepub fn generate_forecast(
&self,
incidents: &[DriftIncident],
_workspace_id: Option<String>,
service_id: Option<String>,
service_name: Option<String>,
endpoint: String,
method: String,
forecast_window_days: u32,
) -> Option<ChangeForecast>
pub fn generate_forecast( &self, incidents: &[DriftIncident], _workspace_id: Option<String>, service_id: Option<String>, service_name: Option<String>, endpoint: String, method: String, forecast_window_days: u32, ) -> Option<ChangeForecast>
Generate forecast for a service or endpoint
Sourcepub fn analyze_historical_patterns(
&self,
incidents: &[DriftIncident],
window_start: DateTime<Utc>,
window_end: DateTime<Utc>,
) -> PatternAnalysis
pub fn analyze_historical_patterns( &self, incidents: &[DriftIncident], window_start: DateTime<Utc>, window_end: DateTime<Utc>, ) -> PatternAnalysis
Analyze historical patterns (for statistics generation)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Forecaster
impl RefUnwindSafe for Forecaster
impl Send for Forecaster
impl Sync for Forecaster
impl Unpin for Forecaster
impl UnsafeUnpin for Forecaster
impl UnwindSafe for Forecaster
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