Release / update-version (push) Has been cancelled
Release / build-frontend (push) Has been cancelled
Release / release (push) Has been cancelled
Release / sync-version-file (push) Has been cancelled
CI / shell (push) Canceled after 0s
CI / test (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CI / golangci-lint (push) Canceled after 0s
Security Scan / backend-security (push) Canceled after 0s
Security Scan / frontend-security (push) Canceled after 0s
15 lines
523 B
Go
15 lines
523 B
Go
package usagestats
|
||
|
||
// AccountStats 账号使用统计
|
||
//
|
||
// cost: 账号口径费用(使用 total_cost * account_rate_multiplier)
|
||
// standard_cost: 标准费用(使用 total_cost,不含倍率)
|
||
// user_cost: 用户/API Key 口径费用(使用 actual_cost,受分组倍率影响)
|
||
type AccountStats struct {
|
||
Requests int64 `json:"requests"`
|
||
Tokens int64 `json:"tokens"`
|
||
Cost float64 `json:"cost"`
|
||
StandardCost float64 `json:"standard_cost"`
|
||
UserCost float64 `json:"user_cost"`
|
||
}
|