feat(access-logs): 概览支持 Zone/域名多选筛选

概览可按 Zone→Domain 层级多选域名并折叠展开;明细列表 IP 旁展示地区。
后端 overview 支持 hosts 多域名精确匹配。
This commit is contained in:
ryan
2026-07-18 23:07:19 +08:00
parent 6f221b042e
commit 0bb6830047
11 changed files with 426 additions and 21 deletions
+2
View File
@@ -28,6 +28,8 @@ sidebar: false
- 边缘访问日志现支持上报并存储 User-Agent;概览新增设备类型饼图,以及浏览器、操作系统、User-Agent 排行。
- 访问日志明细支持查看单条请求详情,可查看 User-Agent、IP 访问趋势与分析,并快捷将 IP 加入或移出 IP 组。
- 访问日志页签状态改为 URL 参数记忆,筛选后不会再跳回概览。
- 访问日志概览支持按 Zone/域名多选筛选,并可折叠展开层级选择。
- 访问日志明细列表在 IP 旁展示对应国家/地区信息。
- 访问日志支持边缘缓存状态(`cache_status`):明细列表与详情可查看命中 / 回源 / 未缓存。启用需执行 ClickHouse 迁移并重新发布节点配置使新日志格式生效。
- 修复 Agent 观测缓冲在合并访问日志时忽略 `cache_status` 导致 HIT/MISS 被去重丢弃的问题。
- 优化访问日志概览的设备类型与状态码饼图布局,使设备类型与状态码饼图在 1024px(lg)以上屏幕保持双列并排展示,提升页面紧凑度。
+11 -1
View File
@@ -5519,10 +5519,20 @@ const docTemplate = `{
},
{
"type": "string",
"description": "请求 Host",
"description": "请求 Host(单域名)",
"name": "host",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "请求 Host 列表(多域名精确匹配)",
"name": "hosts",
"in": "query"
},
{
"type": "integer",
"description": "统计时间范围(小时)",
+11 -1
View File
@@ -5512,10 +5512,20 @@
},
{
"type": "string",
"description": "请求 Host",
"description": "请求 Host(单域名)",
"name": "host",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "请求 Host 列表(多域名精确匹配)",
"name": "hosts",
"in": "query"
},
{
"type": "integer",
"description": "统计时间范围(小时)",
+8 -1
View File
@@ -7354,10 +7354,17 @@ paths:
in: query
name: node_id
type: string
- description: 请求 Host
- description: 请求 Host(单域名)
in: query
name: host
type: string
- collectionFormat: csv
description: 请求 Host 列表(多域名精确匹配)
in: query
items:
type: string
name: hosts
type: array
- description: 统计时间范围(小时)
in: query
name: hours