Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountSnapshot ¶
type ModelCostSnapshot ¶
type MonthCostSnapshot ¶
type MonthCostSnapshot struct {
Month time.Month
APICostNanoDollars int64
UnpricedResponses int64
ModelCosts []ModelCostSnapshot
}
type Snapshot ¶
type Snapshot struct {
Uptime time.Duration
Turns int64
Failures int64
Limited int64
TTFB time.Duration
WSOpen int64
MonthlyUsage responseUsage
APICostNanoDollars int64
UnpricedResponses int64
ModelCosts []ModelCostSnapshot
LastMonth MonthCostSnapshot
PriceFetchedAt time.Time
Accounts map[string]AccountSnapshot
Threads []ThreadSnapshot
Events []Event
}
type StateStore ¶
type StateStore struct {
// contains filtered or unexported fields
}
func (*StateStore) Close ¶
func (s *StateStore) Close() error
type ThreadSnapshot ¶
type ThreadSnapshot struct {
Key string `json:"key"`
ClientIP string `json:"-"`
APIKeySuffix string `json:"-"`
Account string `json:"account"`
Model string `json:"model"`
Effort string `json:"reasoning_effort"`
ServiceTier string `json:"service_tier"`
Via transport `json:"via"`
Metadata turnMetadata
Turns int64 `json:"turns"`
Compactions int64 `json:"compactions"`
Usage responseUsage
LatestUsage responseUsage
TTFB time.Duration
Latency time.Duration
Last time.Time `json:"last"`
// contains filtered or unexported fields
}
Source Files
¶
- account.go
- account_refresh.go
- accounts_http.go
- active_websockets.go
- admin.go
- admin_auth.go
- admin_password.go
- admission.go
- api_key_costs.go
- client_usage.go
- cmd_accounts.go
- cmd_admin.go
- cmd_keys.go
- cmd_server.go
- cmd_settings.go
- context_mutex.go
- country.go
- credit_routing.go
- credits.go
- dashboard.go
- device_login.go
- listener.go
- logging.go
- login.go
- main.go
- models.go
- pool.go
- pool_store.go
- price_catalog.go
- pricing.go
- proxy.go
- refresh_observation.go
- refresh_operations.go
- resources.go
- responses_accounting.go
- responses_body.go
- responses_failures.go
- responses_http.go
- responses_observation.go
- responses_output.go
- responses_redaction.go
- responses_request.go
- responses_routes.go
- responses_routing.go
- responses_setup.go
- responses_sse.go
- responses_status.go
- responses_transport.go
- responses_upstream_http.go
- responses_validation.go
- route_claims.go
- routing_retry.go
- settings.go
- state_store.go
- stats.go
- telemetry.go
- tools_http.go
- transcription_http.go
- tui.go
- turn_metadata.go
- usage.go
- websocket.go
- websocket_dial.go
- websocket_failures.go
- websocket_relay.go
Click to show internal directories.
Click to hide internal directories.