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

Read bandwidth data for a date range

findDailyServerBandwidthStatsBetweenDays

POST/ServerBandwidthStatService/findDailyServerBandwidthStatsBetweenDays
Original definition
rpc findDailyServerBandwidthStatsBetweenDays (FindDailyServerBandwidthStatsBetweenDaysRequest) returns (FindDailyServerBandwidthStatsBetweenDaysResponse);

Request message

FindDailyServerBandwidthStatsBetweenDaysRequest

Read bandwidth data for a date range

Request message · Field definitions
message FindDailyServerBandwidthStatsBetweenDaysRequest {
	int64 userId = 1; // User ID; specify either this or a service ID
	int64 serverId = 2; // Service ID; specify either this or a user ID
	string dayFrom = 3; // Start date in YYYYMMDD format
	string dayTo = 4; // End date in YYYYMMDD format
	int32 percentile = 5; // Optional: bandwidth percentile position (nth), from 0 to 100
	int64 nodeRegionId = 6; // Optional: region ID; currently supported only for aggregate user statistics
	string algo = 7; // Bandwidth algorithm; currently supports secondly and avg
}

Response message

FindDailyServerBandwidthStatsBetweenDaysResponse
Response message · Field definitions
message FindDailyServerBandwidthStatsBetweenDaysResponse {
	repeated Stat stats = 1;
	Stat nthStat = 2;


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