WAFGO正在准备页面
接入指南

API 文档

开发者资源 · API 参考

查阅 WAFGO API 的服务、请求路径和消息定义。按权限角色浏览接口,快速找到接入所需的参数与返回结构。

下载 JSON 文档
151 个服务1063 个接口
防火墙全局服务找到 2 个接口

组合看板数据

composeFirewallGlobalBoard

POST/FirewallService/composeFirewallGlobalBoard
原始定义
rpc composeFirewallGlobalBoard (ComposeFirewallGlobalBoardRequest) returns (ComposeFirewallGlobalBoardResponse);

请求消息

ComposeFirewallGlobalBoardRequest

组合看板数据

请求消息 · 字段定义
message ComposeFirewallGlobalBoardRequest {

}

响应消息

ComposeFirewallGlobalBoardResponse
响应消息 · 字段定义
message ComposeFirewallGlobalBoardResponse {
	int64 countDailyLogs = 1;
	int64 countDailyBlocks = 2;
	int64 countDailyCaptcha = 3;
	int64 countWeeklyBlocks = 4;

	repeated HTTPFirewallRuleGroupStat httpFirewallRuleGroups = 30;
	repeated DailyStat dailyStats = 31;
	repeated HourlyStat hourlyStats = 32;
	repeated NodeStat topNodeStats = 33;
	repeated DomainStat topDomainStats = 34;
	repeated CountryStat topCountryStats = 35;


	message HTTPFirewallRuleGroupStat {
		HTTPFirewallRuleGroup httpFirewallRuleGroup = 1;
		int64 count = 2;
	}


	message HourlyStat {
		string hour = 1;
		int64 countLogs = 2;
		int64 countCaptcha = 3;
		int64 countBlocks = 4;
	}


	message DailyStat {
		string day = 1;
		int64 countLogs = 2;
		int64 countCaptcha = 3;
		int64 countBlocks = 4;
	}


	message NodeStat {
		int64 nodeId = 1;
		string nodeName = 2;
		int64 countRequests = 3;
		int64 bytes = 4;
		int64 countAttackRequests = 6;
		int64 attackBytes = 7;
	}


	message DomainStat {
		int64 serverId = 1;
		string domain = 2;
		int64 countRequests = 3;
		int64 bytes = 4;
		int64 countAttackRequests = 6;
		int64 attackBytes = 7;
	}


	message CountryStat {
		string countryName = 1;
		int64 bytes = 2;
		int64 countRequests = 3;
		float percent = 4; // 流量占比
		int64 countAttackRequests = 6;
		int64 attackBytes = 7;
	}
}

说明与注释按当前语言显示。接口路径、方法名、字段名和类型与原始接口定义保持一致。

接入指南