选择站点增加对子域名的选择 - #22
Open
mfblog wants to merge 8 commits into
Open
Conversation
茶茶吖 的 EdgeOne 监控大屏
There was a problem hiding this comment.
Pull request overview
本次 PR 主要在监控大屏中增加“按域名(子域名)筛选/下钻”的能力,并补充域名维度的 Web 防护处置(拦截/挑战)明细分析,以便在选定站点后进一步定位到具体加速域名的异常与安全事件。
Changes:
- 前端新增“选择域名”下拉框,并将域名参数透传到流量/Top 分析请求,同时新增“域名拦截分析”可视化区块。
- 后端新增
/domains获取站点下加速域名列表,并在/traffic中对部分指标增加 domain Filters;新增/security-intercepts聚合域名维度的防护处置排行数据。 - 文档与默认站点标题/图标文案更新,新增 PRODUCT.md 产品说明文档。
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| README.md | 更新环境变量说明与默认标题/图标文案(当前存在与实际实现不一致的问题)。 |
| PRODUCT.md | 新增产品定位与设计原则文档(当前含明显占位文本)。 |
| node-functions/api/[[default]].js | 新增域名列表接口、域名过滤与安全拦截聚合接口。 |
| index.html | 增加域名选择 UI、域名拦截分析区块,以及 Top 图表渲染能力增强与域名参数透传。 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+39
to
+40
| - `SITE_NAME`: 大屏标题,固定为 "茶茶吖 的 EdgeOne 监控大屏" | ||
| - `SITE_ICON`: 网页图标,固定为 "https://blog.ccya.top/logo.svg" |
Comment on lines
+268
to
+284
| const { secretId, secretKey } = getKeys(); | ||
| const { zoneId } = req.query; | ||
|
|
||
| if (!secretId || !secretKey) { | ||
| return res.status(500).json({ error: "Missing credentials" }); | ||
| } | ||
|
|
||
| const TeoClient = teo.v20220901.Client; | ||
| const client = new TeoClient({ | ||
| credential: { secretId, secretKey }, | ||
| region: "ap-guangzhou", | ||
| profile: { httpProfile: { endpoint: "teo.tencentcloudapi.com" } } | ||
| }); | ||
|
|
||
| const params = zoneId && zoneId !== '*' ? { ZoneId: zoneId } : {}; | ||
| const data = await client.DescribeAccelerationDomains(params); | ||
| res.json(data); |
Comment on lines
+3
to
+6
| ## Register | ||
|
|
||
| product | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
选择站点增加对子域名的选择