forked from valkey-io/valkey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: zhaozhao.zz <[email protected]>
- Loading branch information
Showing
8 changed files
with
371 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"GET": { | ||
"summary": "Returns the specified command log's entries.", | ||
"complexity": "O(N) where N is the number of entries returned", | ||
"group": "server", | ||
"since": "8.2.0", | ||
"arity": 4, | ||
"container": "COMMANDLOG", | ||
"function": "commandlogCommand", | ||
"command_flags": [ | ||
"ADMIN", | ||
"LOADING", | ||
"STALE" | ||
], | ||
"command_tips": [ | ||
"REQUEST_POLICY:ALL_NODES", | ||
"NONDETERMINISTIC_OUTPUT" | ||
], | ||
"reply_schema": { | ||
"type": "array", | ||
"description": "Entries from the command log in chronological order.", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "array", | ||
"minItems": 6, | ||
"maxItems": 6, | ||
"items": [ | ||
{ | ||
"type": "integer", | ||
"description": "Command log entry ID." | ||
}, | ||
{ | ||
"type": "integer", | ||
"description": "The unix timestamp at which the logged command was processed.", | ||
"minimum": 0 | ||
}, | ||
{ | ||
"type": "integer", | ||
"description": "Determined by the type parameter.", | ||
"minimum": 0 | ||
}, | ||
{ | ||
"type": "array", | ||
"description": "The arguments of the command.", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"type": "string", | ||
"description": "Client IP address and port." | ||
}, | ||
{ | ||
"type": "string", | ||
"description": "Client name if set via the CLIENT SETNAME command." | ||
} | ||
] | ||
} | ||
}, | ||
"arguments": [ | ||
{ | ||
"name": "count", | ||
"type": "integer" | ||
}, | ||
{ | ||
"name": "type", | ||
"type": "string" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"HELP": { | ||
"summary": "Show helpful text about the different subcommands", | ||
"complexity": "O(1)", | ||
"group": "server", | ||
"since": "8.2.0", | ||
"arity": 2, | ||
"container": "COMMANDLOG", | ||
"function": "commandlogCommand", | ||
"command_flags": [ | ||
"LOADING", | ||
"STALE" | ||
], | ||
"reply_schema": { | ||
"type": "array", | ||
"description": "Helpful text about subcommands.", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"LEN": { | ||
"summary": "Returns the number of entries in the specified type of command log.", | ||
"complexity": "O(1)", | ||
"group": "server", | ||
"since": "8.2.0", | ||
"arity": 3, | ||
"container": "COMMANDLOG", | ||
"function": "commandlogCommand", | ||
"command_flags": [ | ||
"ADMIN", | ||
"LOADING", | ||
"STALE" | ||
], | ||
"command_tips": [ | ||
"REQUEST_POLICY:ALL_NODES", | ||
"RESPONSE_POLICY:AGG_SUM", | ||
"NONDETERMINISTIC_OUTPUT" | ||
], | ||
"reply_schema": { | ||
"type": "integer", | ||
"description": "Number of entries in the command log.", | ||
"minimum": 0 | ||
}, | ||
"arguments": [ | ||
{ | ||
"name": "type", | ||
"type": "string" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.