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 --- .../src/commands/latency-latest.json | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 examples/redis-unstable/src/commands/latency-latest.json (limited to 'examples/redis-unstable/src/commands/latency-latest.json') diff --git a/examples/redis-unstable/src/commands/latency-latest.json b/examples/redis-unstable/src/commands/latency-latest.json new file mode 100644 index 0000000..88c9e7a --- /dev/null +++ b/examples/redis-unstable/src/commands/latency-latest.json @@ -0,0 +1,49 @@ +{ + "LATEST": { + "summary": "Returns the latest latency samples for all events.", + "complexity": "O(1)", + "group": "server", + "since": "2.8.13", + "arity": 2, + "container": "LATENCY", + "function": "latencyCommand", + "command_flags": [ + "ADMIN", + "NOSCRIPT", + "LOADING", + "STALE" + ], + "command_tips": [ + "NONDETERMINISTIC_OUTPUT", + "REQUEST_POLICY:ALL_NODES", + "RESPONSE_POLICY:SPECIAL" + ], + "reply_schema": { + "type": "array", + "description": "An array where each element is a four elements array representing the event's name, timestamp, latest and all-time latency measurements.", + "items": { + "type": "array", + "minItems": 4, + "maxItems": 4, + "items": [ + { + "type": "string", + "description": "Event name." + }, + { + "type": "integer", + "description": "Timestamp." + }, + { + "type": "integer", + "description": "Latest latency in milliseconds." + }, + { + "type": "integer", + "description": "Max latency in milliseconds." + } + ] + } + } + } +} -- cgit v1.2.3