futriix/src/commands/sentinel-is-master-down-by-addr.json
Wen Hui 5d2348cee2
Update json file and sentinelCommand function for Valkey Sentinel (#675)
In this PR, we update master keyword to primary keyword several in
sentinel command json file and sentinelCommand function.
And there is no update for configurable parameters in sentinel.conf file

Signed-off-by: hwware <wen.hui.ware@gmail.com>
2024-06-19 17:16:49 -04:00

62 lines
1.6 KiB
JSON

{
"IS-MASTER-DOWN-BY-ADDR": {
"summary": "Determines whether a primary instance is down.",
"complexity": "O(1)",
"group": "sentinel",
"since": "2.8.4",
"arity": 6,
"container": "SENTINEL",
"function": "sentinelCommand",
"command_flags": [
"ADMIN",
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"oneOf": [
{
"const": 0,
"description": "Primary is up."
},
{
"const": 1,
"description": "Primary is down."
}
]
},
{
"type": "string",
"description": "Sentinel address."
},
{
"type": "integer",
"description": "Port."
}
]
},
"arguments": [
{
"name": "ip",
"type": "string"
},
{
"name": "port",
"type": "integer"
},
{
"name": "current-epoch",
"type": "integer"
},
{
"name": "runid",
"type": "string"
}
]
}
}