nodetool toppartitions: Toppartitions query REST API
A HTTP GET operation starts the query (with args: ks/cf name and duration in ms).
It executes synchroneously, results are returned as JSON:
$ curl -s -X GET http://localhost:10000/column_family/toppartitions/ks:cf1?duration=10000 | jq
{
"read": [
{
"count": "15",
"error": "0",
"partition": "4b504d39354f37353131"
},
{
"count": "15",
"error": "0",
"partition": "3738313134394d353530"
}
],
"write": [
{
"count": "15",
"error": "0",
"partition": "4b504d39354f37353131"
},
{
"count": "15",
"error": "0",
"partition": "3738313134394d353530"
}
]
}
Signed-off-by: Rafi Einstein <rafie@scylladb.com>