diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:40:55 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:40:55 +0100 |
| commit | 5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda (patch) | |
| tree | 1acdfa5220cd13b7be43a2a01368e80d306473ca /examples/redis-unstable/src/commands/cluster-slot-stats.json | |
| parent | c7ab12bba64d9c20ccd79b132dac475f7bc3923e (diff) | |
| download | crep-5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda.tar.gz | |
Add Redis source code for testing
Diffstat (limited to 'examples/redis-unstable/src/commands/cluster-slot-stats.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/cluster-slot-stats.json | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/cluster-slot-stats.json b/examples/redis-unstable/src/commands/cluster-slot-stats.json new file mode 100644 index 0000000..1043ecd --- /dev/null +++ b/examples/redis-unstable/src/commands/cluster-slot-stats.json @@ -0,0 +1,114 @@ +{ + "SLOT-STATS": { + "summary": "Return an array of slot usage statistics for slots assigned to the current node.", + "complexity": "O(N) where N is the total number of slots based on arguments. O(N*log(N)) with ORDERBY subcommand.", + "group": "cluster", + "since": "8.2.0", + "arity": -4, + "container": "CLUSTER", + "function": "clusterSlotStatsCommand", + "command_flags": [ + "STALE", + "LOADING" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT", + "REQUEST_POLICY:ALL_SHARDS" + ], + "reply_schema": { + "type": "array", + "description": "Array of nested arrays, where the inner array element represents a slot and its respective usage statistics.", + "items": { + "type": "array", + "description": "Array of size 2, where 0th index represents (int) slot and 1st index represents (map) usage statistics.", + "minItems": 2, + "maxItems": 2, + "items": [ + { + "description": "Slot Number.", + "type": "integer" + }, + { + "type": "object", + "description": "Map of slot usage statistics.", + "additionalProperties": false, + "properties": { + "key-count": { + "type": "integer" + }, + "memory-bytes": { + "type": "integer" + }, + "cpu-usec": { + "type": "integer" + }, + "network-bytes-in": { + "type": "integer" + }, + "network-bytes-out": { + "type": "integer" + } + } + } + ] + } + }, + "arguments": [ + { + "name": "filter", + "type": "oneof", + "arguments": [ + { + "token": "SLOTSRANGE", + "name": "slotsrange", + "type": "block", + "arguments": [ + { + "name": "start-slot", + "type": "integer" + }, + { + "name": "end-slot", + "type": "integer" + } + ] + }, + { + "token": "ORDERBY", + "name": "orderby", + "type": "block", + "arguments": [ + { + "name": "metric", + "type": "string" + }, + { + "token": "LIMIT", + "name": "limit", + "type": "integer", + "optional": true + }, + { + "name": "order", + "type": "oneof", + "optional": true, + "arguments": [ + { + "name": "asc", + "type": "pure-token", + "token": "ASC" + }, + { + "name": "desc", + "type": "pure-token", + "token": "DESC" + } + ] + } + ] + } + ] + } + ] + } +} |
