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 anomaly_detection;
12mod behavioral_detector;
13pub mod bot_keywords;
14pub mod detection;
15pub(crate) mod extractor;
16mod profile_usage;
17mod providers;
18mod service;
19mod user_agent;
20
21pub use anomaly_detection::{
22    AnomalyCheckResult, AnomalyDetectionService, AnomalyEvent, AnomalyLevel, AnomalyThresholdConfig,
23};
24pub use behavioral_detector::{
25    BEHAVIORAL_BOT_THRESHOLD, BehavioralAnalysisInput, BehavioralAnalysisResult,
26    BehavioralBotDetector, BehavioralSignal, SignalType,
27};
28pub use extractor::{SessionAnalytics, SessionAnalyticsBuilder};
29pub use profile_usage::ProfileUsageService;
30pub use service::AnalyticsService;