code | type | title |
---|---|---|
true |
page |
getLastStats | API | Core |
Returns the most recent statistics snapshot.
URL: http://kuzzle:7512/_getLastStats
Method: GET
{
"controller": "server",
"action": "getLastStats"
}
Returns the last statistic snapshot, with the following properties:
completedRequests
: completed requests, per network protocolconnections
: number of active connections, per network protocolfailedRequests
: failed requests, per network protocolongoingRequests
: requests underway, per network protocoltimestamp
: snapshot timestamp, in Epoch-millis format
{
"status": 200,
"error": null,
"action": "getLastStats",
"controller": "server",
"requestId": "<unique request identifier>",
"result": {
"completedRequests": {
"websocket": 148,
"http": 24,
"mqtt": 78
},
"failedRequests": {
"websocket": 3
},
"ongoingRequests": {
"mqtt": 8,
"http": 2
}
"connections": {
"websocket": 13
},
"timestamp": 1453110641308
}
}