account_stats.go 523 B

1234567891011121314
  1. package usagestats
  2. // AccountStats 账号使用统计
  3. //
  4. // cost: 账号口径费用(使用 total_cost * account_rate_multiplier)
  5. // standard_cost: 标准费用(使用 total_cost,不含倍率)
  6. // user_cost: 用户/API Key 口径费用(使用 actual_cost,受分组倍率影响)
  7. type AccountStats struct {
  8. Requests int64 `json:"requests"`
  9. Tokens int64 `json:"tokens"`
  10. Cost float64 `json:"cost"`
  11. StandardCost float64 `json:"standard_cost"`
  12. UserCost float64 `json:"user_cost"`
  13. }