Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Port int Open bool Bind string )
Functions ¶
Types ¶
type AlertConfig ¶
type AlertConfig struct {
DailyTokenLimit int64 `json:"daily_token_limit"`
WeeklyTokenLimit int64 `json:"weekly_token_limit"`
UsageSpikeThreshold float64 `json:"usage_spike_threshold"` // multiplier for spike detection
Enabled bool `json:"enabled"`
}
AlertConfig holds alert threshold configuration
type Config ¶
type Config struct {
Port int `json:"port"`
Bind string `json:"bind"`
UpdateInterval int `json:"update_interval"`
Theme string `json:"theme"`
Alerts AlertConfig `json:"alerts"`
EnableExport bool `json:"enable_export"`
HistoryRetention int `json:"history_retention"`
}
Config holds dashboard configuration
Click to show internal directories.
Click to hide internal directories.