Expected API responses and flexible field mapping
Each endpoint should return JSON. You can enter a response data path such as data or data.items; leave it empty for a root-level response. If your backend uses different property names, provide a JSON mapping object, for example {"userId":"user_id","durationMs":"response_time_ms"}. Left keys are dashboard field names; right values are fields in your response. Mappings apply per record; they support nested property paths.
Configured endpoints are fetched directly from the browser. Authentication should be through existing secure same-origin sessions or an authorised proxy. Cross-origin APIs need CORS configured on the server. Avoid tokens in query strings or browser local storage.
Supported JSON examples
GET /monitor/overview
{"dtu":78,"cpu":54,"dataIo":65,"logWrite":27,"requests":4000,"slowRequests":120,"errors":4,"updatedAt":"2026-11-18T13:00:00Z"}
GET /monitor/users
[{"userId":"U123","name":"Admin A","type":"admin","app":"old-admin","requests":42,"durationMs":126000,"slowCalls":5,"errors":0,"activity":"Content import"}]
GET /monitor/apis
[{"app":"new-admin","method":"POST","route":"/api/questions/import","requests":70,"avgMs":800,"p95Ms":2400,"errors":1}]
GET /monitor/sql-trend
[{"time":"2026-11-18T12:00:00Z","dtu":65}]
GET /monitor/db-health
{"mssql":{"dtu":78,"cpu":54,"dataIo":65,"logWrite":27,"workers":15,"sessions":9},"erp":{"cpu":42,"memory":61,"disk":37,"connections":25,"slowQueries":3}}
GET /monitor/queries
[{"database":"mssql","fingerprint":"SELECT ... FROM ...","executions":500,"cpuMs":12800,"avgMs":45,"operation":"Report generation"}]
GET /monitor/incidents
[{"time":"2026-11-18T13:00:00Z","system":"QuestData","severity":"high","title":"Sustained DTU above 90%","metric":"DTU 94%","activity":"Report export (correlated)"}]