Files
pyGoEdge-UserPanel/reference/goedge 文档/ServerHTTPFirewallDailyStatService.md
2025-11-18 03:36:49 +08:00

1.3 KiB
Raw Permalink Blame History

ServerHTTPFirewallDailyStatService

WAF统计


composeServerHTTPFirewallDashboard

组合服务的Dashboard

  • 角色:admin, user
  • HTTPPOST https://backend.dooki.cloud/ServerHTTPFirewallDailyStatService/composeServerHTTPFirewallDashboard
  • RPCrpc composeServerHTTPFirewallDashboard (ComposeServerHTTPFirewallDashboardRequest) returns (ComposeServerHTTPFirewallDashboardResponse);

请求对象 (ComposeServerHTTPFirewallDashboardRequest)

{
  "day": "string",
  "userId": "int64 // 用户ID",
  "serverId": "int64 // 服务ID网站ID"
}

响应对象 (ComposeServerHTTPFirewallDashboardResponse)

{
  "countDailyLog": "int64",
  "countDailyBlock": "int64",
  "countDailyCaptcha": "int64",
  "countWeeklyBlock": "int64",
  "countMonthlyBlock": "int64",
  "httpFirewallRuleGroups": "[]HTTPFirewallRuleGroupStat",
  "logDailyStats": "[]DailyStat",
  "blockDailyStats": "[]DailyStat",
  "captchaDailyStats": "[]DailyStat",
  "httpFirewallRuleGroup": "HTTPFirewallRuleGroup",
  "count": "int64 // 数量",
  "day": "string"
}

调用示例

curl -X POST "https://backend.dooki.cloud/ServerHTTPFirewallDailyStatService/composeServerHTTPFirewallDashboard" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'