Skip to Content

缓存命中率与毛利

返回全站缓存统计:今天与本月的命中率、真正打到上游的调用数,以及按命中率算出的有效上游成本与 Bulk 档毛利。缓存命中 = 0 上游成本,所以这是决定毛利的那个数。

GET
/v1/cache

返回全站缓存统计:今天与本月的命中率、真正打到上游的调用数,以及按命中率算出的有效上游成本与 Bulk 档毛利。缓存命中 = 0 上游成本,所以这是决定毛利的那个数。

Authorization

headerX-API-KEY<token>

Response Body

OK

application/json
  1. response
data*
meta?
Example Request
curl -X GET 'https://api.agenttweet.com/v1/cache'
Example Response
{  "data": {},  "meta": {    "count": 0,    "cursor": "string",    "provider": "string",    "cached": true,    "tokens_raw": 0,    "tokens_flat": 0,    "tokens_saved": 0,    "tokens_saved_pct": 0,    "tokens_billed": 0,    "cost_usd": 0,    "balance_usd": 0,    "request_id": "string"  }}