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
Metric services6 matching interfaces

Create a metric

createMetricItem

POST/MetricItemService/createMetricItem
Original definition
rpc createMetricItem (CreateMetricItemRequest) returns (CreateMetricItemResponse);

Request message

CreateMetricItemRequest

Create a metric

Request message · Field definitions
message CreateMetricItemRequest {
	string code = 1;
	string category = 2;
	string name = 3;
	repeated string keys = 4;
	int32 period = 5;
	string periodUnit = 6;
	int32 expiresPeriod = 9;
	string value = 7;
	bool isPublic = 8;
}

Response message

CreateMetricItemResponse
Response message · Field definitions
message CreateMetricItemResponse {
	int64 metricItemId = 1;
}

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

Setup guide