dashboard

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Port int
	Open bool
	Bind string
)

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the dashboard cobra command for registration.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL