systemprompt-analytics 0.63.0

Analytics for systemprompt.io AI governance infrastructure. Session, agent, tool, and microdollar-precision cost attribution across the MCP governance pipeline.
Documentation
//! Public DTO/row types for the analytics crate.
//!
//! Submodules are split by domain (engagement, events, fingerprint)
//! plus a `reporting` family of row structs consumed by report frontends such
//! as `systemprompt-cli`.
//!
//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.

mod engagement;
mod events;
mod fingerprint;
pub mod reporting;
mod rows;

pub use engagement::{CreateEngagementEventInput, EngagementEvent, EngagementOptionalMetrics};
pub use events::{
    AnalyticsEventBatchResponse, AnalyticsEventCreated, AnalyticsEventType, ConversionEventData,
    CreateAnalyticsEventBatchInput, CreateAnalyticsEventInput, EngagementEventData,
    LinkClickEventData, ScrollEventData,
};
pub use fingerprint::{FingerprintAnalysisResult, FingerprintReputation, FlagReason};
pub use reporting::*;
pub(crate) use rows::{
    AgentListDbRow, EngagementEventRow, RecentContextDbRow, ToolAgentUsageDbRow, ToolListDbRow,
};