Spec0docs
API Reference

Get mock server analytics

Aggregates request counts, error rate, average dispatch latency (from RESPONSE_LATENCY_MS metrics when present), and per-day buckets for the admin UI — aligned with the cloud platform analytics API shape.

GET
/mock-server/servers/{mockServerId}/analytics

Path Parameters

mockServerId*string
Formatuuid

Query Parameters

from?string
Formatdate
to?string
Formatdate

Response Body

application/json

curl -X GET "http://localhost:8080/mock-server/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/analytics"
{
  "totalRequests": 0,
  "uniqueUsers": 0,
  "averageResponseTime": 0,
  "errorRate": 0,
  "uniqueOperations": 0,
  "requestsByDay": [
    {
      "date": "2019-08-24",
      "count": 0,
      "averageLatencyMs": 0
    }
  ]
}
Empty