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 hours

findHourlyServerBandwidthStats

POST/ServerBandwidthStatService/findHourlyServerBandwidthStats
Original definition
rpc findHourlyServerBandwidthStats(FindHourlyServerBandwidthStatsRequest) returns (FindHourlyServerBandwidthStatsResponse);

Request message

FindHourlyServerBandwidthStatsRequest

Get peak bandwidth over the last N hours

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

Response message

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


	message Stat {
		string day = 1;
		int32 hour = 2;
		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