getLastStats #
Returns the most recent statistics snapshot.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_getLastStats
Method: GET
Other protocols #
{
"controller": "server",
"action": "getLastStats"
}
Response #
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
}
}
Edit this page on Github(opens new window)