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 {
LastSearchTime time.Time
LastUpdated time.Time
LastActivityTime time.Time
SearchesToday int64
ActiveDays int64
SchedulesThisWeek int64
SchedulesNextWeek int64
TotalSearches int64
TotalMemos int64
MemosLastMonth int64
TotalSchedules int64
MemosLastWeek int64
StreakDays int64
TotalAIQueries int64
AIQueriesToday int64
AIQueriesThisWeek int64
Mu sync.RWMutex
}
Stats represents usage statistics.
func (*Stats) GetSummary ¶
GetSummary returns a human-readable summary.
Click to show internal directories.
Click to hide internal directories.