WAFGOPreparing your page
Setup guide

API documentation

DEVELOPER RESOURCES · API REFERENCE

Explore WAFGO API services, request paths and message definitions. Browse by permission role to find the parameters and response structures for your integration.

Download JSON documentation
151 services1063 interfaces
Service bandwidth statistics service4 matching interfaces

Get peak bandwidth over the last N days

findDailyServerBandwidthStats

POST/ServerBandwidthStatService/findDailyServerBandwidthStats
Original definition
rpc findDailyServerBandwidthStats(FindDailyServerBandwidthStatsRequest) returns (FindDailyServerBandwidthStatsResponse);

Request message

FindDailyServerBandwidthStatsRequest

Get peak bandwidth over the last N days

Request message · Field definitions
message FindDailyServerBandwidthStatsRequest {
	int64 serverId = 1;
	int32 days = 2;
	string algo = 3; // Bandwidth algorithm; currently supports secondly and avg
}

Response message

FindDailyServerBandwidthStatsResponse
Response message · Field definitions
message FindDailyServerBandwidthStatsResponse {
	repeated Stat stats = 1;
	int32 percentile = 2; // Percentile
	Stat nthStat = 3; // Percentile statistics


	message Stat {
		string day = 1;
		int64 bytes = 3; // Peak bytes per second
		int64 bits = 4; // Peak bits per second
	}
}

Descriptions and comments follow your language. Request paths, method names, field names and types match the original API definitions.

Setup guide