Analytics
Get realtime metrics for a specific priority
Returns one reading of the last 30 seconds before the request. Gauge fields (currentVisitors, waitingVisitors, maxConcurrentVisitors) and state take the values of the newest metrics document in the window, and timestamp is the time of that document. Rate fields (*RatePerMinute) are the average over the window, rounded to an integer. data is null when no reading is available: no metrics document in the last 30 seconds, the newest document has no readable timestamp, or the metrics store could not be read.
get/priorities/{id}/metrics/realtime
Request
- Base URLhttps://priorityprotect-api.datadome.co/v1
- URLhttps://priorityprotect-api.datadome.co/v1/priorities/{id}/metrics/realtime
- AuthAPI key in header x-api-key
Path parameters
idstring uuid required
Unique identifier of the priority.
Response
Successful response with the realtime reading.
Example response
{
"meta": {
"interval": "30s"
},
"data": {
"timestamp": "2026-08-31T14:33:40Z",
"metrics": {
"currentVisitors": 8421,
"waitingVisitors": 1930,
"maxConcurrentVisitors": 9000,
"admissionRatePerMinute": 600,
"newVisitorsRatePerMinute": 742,
"waitingRatePerMinute": 142,
"admittedRatePerMinute": 600
},
"state": {
"status": "inProgress",
"mode": "alwaysOn"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.