router/api-router.go:326。controller.GetChannelAffinityUsageCacheStats,controller/channel_affinity_cache.go:57。log:read。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/log/channel_affinity_usage_cache?rule_name=&using_group=&key_fp=' \
--header 'Authorization: Bearer <token>'{
"data": {
"rule_name": "string",
"using_group": "string",
"key_fp": "string",
"cached_token_rate_mode": "string",
"hit": 0,
"total": 0,
"window_seconds": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"cached_tokens": 0,
"prompt_cache_hit_tokens": 0,
"last_seen_at": 0,
"property1": "string",
"property2": "string"
},
"message": "string",
"success": true,
"property1": "string",
"property2": "string"
}