]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Add new file
authorSuzanne Goldlust <sgoldlust@isc.org>
Thu, 4 Oct 2018 19:02:41 +0000 (15:02 -0400)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 29 Oct 2019 17:57:13 +0000 (18:57 +0100)
doc/api/stat-lease4-get.json [new file with mode: 0644]

diff --git a/doc/api/stat-lease4-get.json b/doc/api/stat-lease4-get.json
new file mode 100644 (file)
index 0000000..3aac547
--- /dev/null
@@ -0,0 +1,25 @@
+{
+    "name": "stat-lease4-get",
+    "brief": "The stat-lease4-get command fetches lease statistics for a range of known subnets.",
+    "description": "See <xref linkend=\"idp81\"/>",
+    "support": [ "kea-dhcp4", "kea-dhcp6" ],
+    "avail": "1.4.0",
+    "hook": "stat_cmds",
+    "cmd-syntax": "{
+  \"command\": \"stat-lease4-get\"
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"stat-lease4-get: 2 rows found\",
+    \"arguments\": {
+      \"result-set\": {
+        \"columns\": [ \"subnet-id\", \"total-addresses\", \"assigned-addresses\", \"declined-addresses\" ]
+        \"rows\": [
+          [ 10, 256, 111, 0 ],
+          [ 20, 4098, 2034, 4 ]
+        ],
+      \"timestamp\": \"2018-05-04 15:03:37.000000\"
+      }
+    }
+  }",
+}
\ No newline at end of file