Documentation
¶
Overview ¶
Package stats provides simple local usage statistics for personal assistant systems. This is a lightweight alternative to enterprise monitoring solutions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector collects and manages usage statistics.
func NewCollector ¶
NewCollector creates a new statistics collector.
func (*Collector) RecordAIQuery ¶
func (c *Collector) RecordAIQuery()
RecordAIQuery records an AI query action.
func (*Collector) RecordSearch ¶
func (c *Collector) RecordSearch()
RecordSearch records a search action.
type Stats ¶
type Stats struct {
Mu sync.RWMutex
// Memo stats
TotalMemos int64
MemosLastWeek int64
MemosLastMonth int64
// Schedule stats
TotalSchedules int64
SchedulesThisWeek int64
SchedulesNextWeek int64
// Search stats
TotalSearches int64
SearchesToday int64
LastSearchTime time.Time
// Activity stats
ActiveDays int64 // Days with activity in the last 30 days
LastActivityTime time.Time
StreakDays int64 // Current consecutive days with activity
// AI stats
TotalAIQueries int64
AIQueriesToday int64
AIQueriesThisWeek int64
// Timestamp
LastUpdated time.Time
}
Stats represents usage statistics.
func (*Stats) GetSummary ¶
GetSummary returns a human-readable summary.
Click to show internal directories.
Click to hide internal directories.