summaryrefslogtreecommitdiffstats
path: root/src/commands/sentinel-is-master-down-by-addr.json
blob: a13e96b79f5510348b9831d1d497eeab5364be29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
    "IS-MASTER-DOWN-BY-ADDR": {
        "summary": "Determines whether a master Redis 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": "Master is up."
                        },
                        {
                            "const": 1,
                            "description": "Master 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"
            }
        ]
    }
}