From 5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 21 Jan 2026 22:40:55 +0100 Subject: Add Redis source code for testing --- .../redis-unstable/src/commands/hotkeys-start.json | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 examples/redis-unstable/src/commands/hotkeys-start.json (limited to 'examples/redis-unstable/src/commands/hotkeys-start.json') diff --git a/examples/redis-unstable/src/commands/hotkeys-start.json b/examples/redis-unstable/src/commands/hotkeys-start.json new file mode 100644 index 0000000..92fb0c7 --- /dev/null +++ b/examples/redis-unstable/src/commands/hotkeys-start.json @@ -0,0 +1,80 @@ +{ + "START": { + "summary": "Starts hotkeys tracking.", + "complexity": "O(1)", + "group": "server", + "since": "8.6.0", + "arity": -2, + "container": "HOTKEYS", + "function": "hotkeysCommand", + "command_flags": [ + "ADMIN", + "NOSCRIPT" + ], + "reply_schema": { + "const": "OK" + }, + "arguments": [ + { + "token": "METRICS", + "name": "metrics", + "type": "block", + "optional": false, + "arguments": [ + { + "name": "count", + "type": "integer" + }, + { + "token": "CPU", + "name": "cpu", + "type": "pure-token", + "optional": true + }, + { + "token": "NET", + "name": "net", + "type": "pure-token", + "optional": true + } + ] + }, + { + "token": "COUNT", + "name": "k", + "type": "integer", + "optional": true + }, + { + "token": "DURATION", + "name": "seconds", + "type": "integer", + "optional": true + }, + { + "token": "SAMPLE", + "name": "ratio", + "type": "integer", + "optional": true + }, + { + "token": "SLOTS", + "name": "slots", + "type": "block", + "optional": true, + "arguments": [ + { + "name": "count", + "type": "integer" + }, + { + "name": "slot", + "type": "integer", + "multiple": true + } + ] + } + ] + } +} + -- cgit v1.2.3