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 profile_usage;
18mod providers;
19mod service;
20mod session_cleanup;
21mod user_agent;
22
23pub use ai_provider::AnalyticsAiSessionProvider;
24pub use anomaly_detection::{
25    AnomalyCheckResult, AnomalyDetectionService, AnomalyEvent, AnomalyLevel, AnomalyThresholdConfig,
26};
27pub use behavioral_detector::{
28    BEHAVIORAL_BOT_THRESHOLD, BehavioralAnalysisInput, BehavioralAnalysisResult,
29    BehavioralBotDetector, BehavioralSignal, SignalType,
30};
31pub use extractor::{SessionAnalytics, SessionAnalyticsBuilder};
32pub use profile_usage::ProfileUsageService;
33pub use service::AnalyticsService;
34pub use session_cleanup::SessionCleanupService;