Gets traffic usage data for selected period
GET /api/admin/metrics/traffic/:period
Gets traffic usage data numbers per API for a period given by the parameter
Request
Path Parameters
- period string required
Responses
- 200
trafficUsageDataSegmentedSchema
- application/json
- Schema
- Example (from schema)
Schema
- period string required
The year-month period for which the data usage is counted
apiData object[]required
Contains the recorded daily data usage for each API path
Array [days object[]required
An array containing each day in the selected period that has data usage recorded
Array [day date-time requiredThe day of the period for which the usage is recorded
trafficTypes object[]required
Contains the recorded data usage for each type of traffic group
Array [group string requiredThe traffic group
count number requiredThe number of requests
]]apiPath string requiredThe path of the API that the recorded data usage is for
]
{
"period": "2023-04",
"apiData": [
{
"days": [
{
"day": "2023-04-19T00:00:00.000Z",
"trafficTypes": [
{
"group": "successful-requests",
"count": 100
}
]
}
],
"apiPath": "/api/client/features"
}
]
}
Loading...