Skip to main content

Crate statsai_core

Crate statsai_core 

Source
Expand description

Core schemas and ID helpers for statsai.

Structs§

CostInfo
DailyRollup
EventId
EventSource
GitInfo
MetricStats
ModelInfo
ParseEvidence
PrivacyInfo
ProjectInfo
ProviderAccount
ProviderAccountId
RuntimeInfo
SemanticFingerprintInput
SessionInfo
SourceAccountAssignment
SourceAccountAssignmentId
SourceId
SourceLocation
Subscription
SubscriptionId
SubscriptionReportRow
SummaryId
SummaryMetadata
SummaryMetrics
SummaryModelUsage
SummaryReportRow
SyncAck
SyncBatch
SyncEntityCounts
SyncRejectedRecord
UsageCounts
UsageEvent
UsageReport
UsageReportRow
UsageSummary
UsageTotals
VerifiedSourceState
VerifiedSubscriptionState

Enums§

BillingPeriod
Confidence
IdentitySource
LatencySource
LocationOrigin
PrivacyMode
ReportPeriod
SourceKind
SourceVerificationMode
SubscriptionStatus

Constants§

DAILY_ROLLUP_SCHEMA_VERSION
PROVIDER_ACCOUNT_SCHEMA_VERSION
REPORTED_USAGE_SUMMARY_INPUT_SCHEMA_VERSION
SOURCE_ACCOUNT_ASSIGNMENT_SCHEMA_VERSION
SOURCE_LOCATION_SCHEMA_VERSION
SUBSCRIPTION_SCHEMA_VERSION
SYNC_ACK_SCHEMA_VERSION
SYNC_BATCH_SCHEMA_VERSION
USAGE_EVENT_SCHEMA_VERSION
USAGE_SUMMARY_SCHEMA_VERSION

Functions§

build_usage_report
canonical_display
display_account_identity
display_path
Display-friendly path normalization. Expands ~ for home but does NOT perform filesystem canonicalization (to avoid symlink/mount identity changes for labels).
event_id
expand_home_path
hash_text
home_dir
normalize_email
normalize_provider_user_id
path_hash
periods_overlap
project_bucket_key
project_contains_file_paths
project_has_remote_identity
project_has_stable_identity
provider_account_id
provider_account_id_from_identity
provider_account_stable_key
sanitize_project_for_sync
sanitize_summary_for_sync
semantic_event_fingerprint
semantic_event_id
source_account_assignment_id
source_id
subscription_id
summary_id
timestamp_in_period