WAFGO正在准备页面
接入指南

API 文档

开发者资源 · API 参考

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

下载 JSON 文档
151 个服务1063 个接口
统计看板找到 4 个接口

组合节点看板数据

composeServerStatNodeBoard

POST/ServerStatBoardService/composeServerStatNodeBoard
原始定义
rpc composeServerStatNodeBoard (ComposeServerStatNodeBoardRequest) returns (ComposeServerStatNodeBoardResponse);

请求消息

ComposeServerStatNodeBoardRequest

组合节点看板数据

请求消息 · 字段定义
message ComposeServerStatNodeBoardRequest {
	int64 nodeId = 1; // 节点ID
}

响应消息

ComposeServerStatNodeBoardResponse
响应消息 · 字段定义
message ComposeServerStatNodeBoardResponse {
	bool isActive = 1;
	int64 trafficInBytes = 2;
	int64 trafficOutBytes = 3;
	int64 countRequests = 4;
	int64 countAttackRequests = 5;
	int64 countConnections = 6;
	int64 cacheDiskSize = 7;
	int64 cacheMemorySize = 8;
	float cpuUsage = 9;
	float memoryUsage = 10;
	int64 memoryTotalSize = 11;
	float load = 12;
	int64 monthlyTrafficBytes = 13; // 当月流量
	int64 dailyTrafficBytes = 14; // 当日流量
	int64 lastDailyTrafficBytes = 15; // 昨日流量

	repeated DailyTrafficStat dailyTrafficStats = 31;
	repeated HourlyTrafficStat hourlyTrafficStats = 32;

	repeated NodeValue cpuNodeValues = 34; // CPU数据
	repeated NodeValue memoryNodeValues = 35; // 内存数据
	repeated NodeValue loadNodeValues = 36; // 负载数据
	repeated NodeValue cacheDirsValues = 38; // 缓存目录数据
	repeated NodeValue networkPacketsValues = 39; // 网络数据包数据

	repeated MetricDataChart metricDataCharts = 37;


	message DailyTrafficStat {
		string day = 1;
		int64 bytes = 2;
		int64 cachedBytes = 3;
		int64 countRequests = 4;
		int64 countCachedRequests = 5;
		int64 countAttackRequests = 6;
		int64 attackBytes = 7;
	}


	message HourlyTrafficStat {
		string hour = 1;
		int64 bytes = 2;
		int64 cachedBytes = 3;
		int64 countRequests = 4;
		int64 countCachedRequests = 5;
		int64 countAttackRequests = 6;
		int64 attackBytes = 7;
	}
}

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

接入指南