futriix/src/commands/sentinel-slaves.json
Wen Hui b220e6b450
Updating reply_schema for sentinal commands (#12018)
Some sentinel subcommands are missing the reply_schema in the json file,
so add the proper reply_schema part in json file as sentinel replicas commands.

The schema validator was skipping coverage test for sentinel commands, this was initially
done just in order to focus on redis commands and leave sentinel coverage for later,
so this check is now removed.

sentinel commands that were missing reply schema:
* sentinel masters
* sentinel myid
* sentinel sentinels <master-name>
* sentinel slaves (deprecated)  <master-name>
2023-04-19 09:08:11 +03:00

38 lines
997 B
JSON

{
"SLAVES": {
"summary": "Returns a list of the monitored replicas.",
"complexity": "O(N) where N is the number of replicas.",
"group": "sentinel",
"since": "2.8.0",
"arity": 3,
"container": "SENTINEL",
"function": "sentinelCommand",
"deprecated_since": "5.0.0",
"replaced_by": "`SENTINEL REPLICAS`",
"doc_flags": [
"DEPRECATED"
],
"command_flags": [
"ADMIN",
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"type": "array",
"description": "List of monitored replicas, and their state.",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"arguments": [
{
"name": "master-name",
"type": "string"
}
]
}
}