summaryrefslogtreecommitdiffstats
path: root/src/share/api/statistic-get.json
blob: b6c9cca08f7f9837541d87dd87a65ca4ec0974c5 (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
{
    "access": "read",
    "avail": "1.0.0",
    "brief": [
        "This command retrieves a single statistic. It takes a single string parameter called name that specifies the statistic name."
    ],
    "cmd-comment": [
        "The server responds with the details of the requested statistic, with a result of 0 indicating success, and the specified statistic as the value of the \"arguments\" parameter."
    ],
    "cmd-syntax": [
        "{",
        "    \"command\": \"statistic-get\",",
        "    \"arguments\": {",
        "        \"name\": \"pkt4-received\"",
        "    }",
        "}"
    ],
    "resp-syntax": [
        "{",
        "   \"result\": 0,",
        "   \"arguments\": {",
        "       \"pkt4-received\": [ [ \"first_value\", \"2019-07-30 10:11:19.498739\" ], [ \"second_value\", \"2019-07-30 10:11:19.498662\" ] ]",
        "       }",
        "}"
    ],
    "description": "See <xref linkend=\"command-statistic-get\"/>",
    "name": "statistic-get",
    "support": [
        "kea-dhcp4",
        "kea-dhcp6",
        "kea-dhcp-ddns"
    ]
}