Expand description
Statistics collection and display for dcg.
This module provides functionality to:
- Parse log files (both text and JSON formats)
- Aggregate statistics by pack
- Display statistics for a configurable time period
Structs§
- Aggregated
Stats - Aggregated statistics across all packs.
- Pack
Stats - Statistics for a single pack.
- Parsed
LogEntry - A single log entry parsed from the log file.
Enums§
- Decision
- Decision type from log entries.
Constants§
- DEFAULT_
PERIOD_ SECS - Default time period for statistics (30 days in seconds).
Functions§
- format_
stats_ json - Format statistics as JSON.
- format_
stats_ pretty - Format statistics for display.
- parse_
log_ file - Parse a log file and return aggregated statistics.