| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- /api/log/{group}/search
- 描述信息:获取 组级别 log 数据
- 方法:get
- 参数:
- query
- page 页码 number
- per_page 每页条数 number
- model_name model name string
- token_name token name string
- start_timestamp 开始时间 timestamp 毫秒级别时间戳
- end_timestamp 结束时间 timestamp 毫秒级别时间戳
- code_type 状态 'all' | 'success' | 'error' string
- 响应结构:
- {
- "data": {
- "channels": [
- 0
- ],
- "logs": [
- {
- "channel": 0,
- "code": 0,
- "content": "string",
- "created_at": "string",
- "endpoint": "string",
- "group": "string",
- "id": 0,
- "ip": "string",
- "metadata": {
- "additionalProp1": "string",
- "additionalProp2": "string",
- "additionalProp3": "string"
- },
- "mode": 0,
- "model": "string",
- "price": {
- "cache_creation_price": 0,
- "cache_creation_price_unit": 0,
- "cached_price": 0,
- "cached_price_unit": 0,
- "image_input_price": 0,
- "image_input_price_unit": 0,
- "input_price": 0,
- "input_price_unit": 0,
- "output_price": 0,
- "output_price_unit": 0,
- "per_request_price": 0,
- "thinking_mode_output_price": 0,
- "thinking_mode_output_price_unit": 0,
- "web_search_price": 0,
- "web_search_price_unit": 0
- },
- "request_at": "string",
- "request_detail": {
- "id": 0,
- "log_id": 0,
- "request_body": "string",
- "request_body_truncated": true,
- "response_body": "string",
- "response_body_truncated": true
- },
- "request_id": "string",
- "retry_at": "string",
- "retry_times": 0,
- "token_id": 0,
- "token_name": "string",
- "ttfb_milliseconds": 0,
- "usage": {
- "cache_creation_tokens": 0,
- "cached_tokens": 0,
- "image_input_tokens": 0,
- "input_tokens": 0,
- "output_tokens": 0,
- "reasoning_tokens": 0,
- "total_tokens": 0,
- "web_search_count": 0
- },
- "used_amount": 0,
- "user": "string"
- }
- ],
- "models": [
- "string"
- ],
- "token_names": [
- "string"
- ],
- "total": 0
- },
- "message": "string",
- "success": true
- }
- ---
- /api/logs/search
- 描述信息:获取 全部 log 数据
- 方法:get
- 参数:
- query
- page 页码 number
- per_page 每页条数 number
- model_name model name string
- start_timestamp 开始时间 timestamp 毫秒级别时间戳
- end_timestamp 结束时间 timestamp 毫秒级别时间戳
- code_type 状态 'all' | 'success' | 'error' string
- 响应结构:
- {
- "data": {
- "channels": [
- 0
- ],
- "logs": [
- {
- "channel": 0,
- "code": 0,
- "content": "string",
- "created_at": "string",
- "endpoint": "string",
- "group": "string",
- "id": 0,
- "ip": "string",
- "metadata": {
- "additionalProp1": "string",
- "additionalProp2": "string",
- "additionalProp3": "string"
- },
- "mode": 0,
- "model": "string",
- "price": {
- "cache_creation_price": 0,
- "cache_creation_price_unit": 0,
- "cached_price": 0,
- "cached_price_unit": 0,
- "image_input_price": 0,
- "image_input_price_unit": 0,
- "input_price": 0,
- "input_price_unit": 0,
- "output_price": 0,
- "output_price_unit": 0,
- "per_request_price": 0,
- "thinking_mode_output_price": 0,
- "thinking_mode_output_price_unit": 0,
- "web_search_price": 0,
- "web_search_price_unit": 0
- },
- "request_at": "string",
- "request_detail": {
- "id": 0,
- "log_id": 0,
- "request_body": "string",
- "request_body_truncated": true,
- "response_body": "string",
- "response_body_truncated": true
- },
- "request_id": "string",
- "retry_at": "string",
- "retry_times": 0,
- "token_id": 0,
- "token_name": "string",
- "ttfb_milliseconds": 0,
- "usage": {
- "cache_creation_tokens": 0,
- "cached_tokens": 0,
- "image_input_tokens": 0,
- "input_tokens": 0,
- "output_tokens": 0,
- "reasoning_tokens": 0,
- "total_tokens": 0,
- "web_search_count": 0
- },
- "used_amount": 0,
- "user": "string"
- }
- ],
- "total": 0
- },
- "message": "string",
- "success": true
- }
|