UsageService

GET /v1/console/usage/logs/count

Changed on

CountLogs 返回与 ListLogs 相同筛选条件的精确卡片统计。 该查询独立加载;原始日志聚合超时或暂不可用时返回 USAGE_LOG_COUNT_UNAVAILABLE, 不影响日志列表、详情和游标翻页。

Request

Query parameters

searchstring

请求 ID 精确匹配;非法 UUID 与列表一致,返回 total=0。

statusstring
modelIdstring
channelIdstring
startTimestring date-time
endTimestring date-time

晚于数据库快照时间时会截断到该快照时间;窗口最大 90 天。

apiKeyIdstring
modelNamestring
apiKeyNamestring

Response

OK

successCountstring

与 total 相同筛选条件下符合列表成功口径的调用数。

totalstring

精确快照总数;proto JSON 以十进制字符串序列化 int64。

totalBilledMicrosstring

与 total 相同筛选条件下的消费总额,单位为 CRD micros。

totalTokensstring

与 total 相同筛选条件下的 Token 总量。

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status