Initial commit

This commit is contained in:
2025-11-18 03:36:49 +08:00
commit d17c7efb3c
7078 changed files with 831480 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
# ServerHTTPFirewallDailyStatService
> WAF统计
---
## composeServerHTTPFirewallDashboard
> 组合服务的Dashboard
- 角色:`admin`, `user`
- HTTP`POST https://backend.dooki.cloud/ServerHTTPFirewallDailyStatService/composeServerHTTPFirewallDashboard`
- RPC`rpc composeServerHTTPFirewallDashboard (ComposeServerHTTPFirewallDashboardRequest) returns (ComposeServerHTTPFirewallDashboardResponse);`
**请求对象 (`ComposeServerHTTPFirewallDashboardRequest`)**
```json
{
"day": "string",
"userId": "int64 // 用户ID",
"serverId": "int64 // 服务ID网站ID"
}
```
**响应对象 (`ComposeServerHTTPFirewallDashboardResponse`)**
```json
{
"countDailyLog": "int64",
"countDailyBlock": "int64",
"countDailyCaptcha": "int64",
"countWeeklyBlock": "int64",
"countMonthlyBlock": "int64",
"httpFirewallRuleGroups": "[]HTTPFirewallRuleGroupStat",
"logDailyStats": "[]DailyStat",
"blockDailyStats": "[]DailyStat",
"captchaDailyStats": "[]DailyStat",
"httpFirewallRuleGroup": "HTTPFirewallRuleGroup",
"count": "int64 // 数量",
"day": "string"
}
```
**调用示例**
```bash
curl -X POST "https://backend.dooki.cloud/ServerHTTPFirewallDailyStatService/composeServerHTTPFirewallDashboard" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'
```
---