Skip to main content

systemprompt_analytics/services/
mod.rs

1//! Service layer.
2//!
3//! Orchestrators on top of the repository layer. Hosts the
4//! [`AnalyticsService`], anomaly/behavioural detectors, request extractors,
5//! and provider integrations consumed by the API and CLI.
6//!
7//! Copyright (c) systemprompt.io — Business Source License 1.1.
8//! See <https://systemprompt.io> for licensing details.
9
10pub mod ai_crawler_keywords;
11mod ai_provider;
12mod anomaly_detection;
13mod behavioral_detector;
14pub mod bot_keywords;
15pub mod detection;
16pub(crate) mod extractor;
17mod providers;
18mod service;
19mod session_cleanup;
20mod user_agent;
21
22pub use ai_provider::AnalyticsAiSessionProvider;
23pub use anomaly_detection::{
24    AnomalyCheckResult, AnomalyDetectionService, AnomalyEvent, AnomalyLevel, AnomalyThresholdConfig,
25};
26pub use behavioral_detector::{
27    BEHAVIORAL_BOT_THRESHOLD, BehavioralAnalysisInput, BehavioralAnalysisResult,
28    BehavioralBotDetector, BehavioralSignal, SignalType,
29};
30pub use extractor::{SessionAnalytics, SessionAnalyticsBuilder};
31pub use service::AnalyticsService;
32pub use session_cleanup::SessionCleanupService;