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

diff --git a/doc/api/stat-lease6-get.json b/doc/api/stat-lease6-get.json
new file mode 100644 (file)
index 0000000..6967f4b
--- /dev/null
@@ -0,0 +1,29 @@
+{
+    "name": "stat-lease6-get",
+    "brief": "The stat-lease6-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-lease6-get\",
+  \"arguments\": {
+    \"subnet-id\" : 10
+  }
+}",
+    "resp-syntax": "{
+    \"result\": 0,
+    \"text\": \"stat-lease6-get: 2 rows found\",
+    \"arguments\": {
+      \"result-set\": {
+        \"columns\": [ \"subnet-id\", \"total-nas\", \"assigned-nas\", \"declined-nas\", \"total-pds\", \"assigned-pds\" ]
+        \"rows\": [
+          [ 10, 4096, 2400, 3, 0, 0],
+          [ 20, 0, 0, 0, 1048, 233 ]
+          [ 30, 256, 60, 0, 1048, 15 ]
+        ],
+      \"timestamp\": \"2018-05-04 15:03:37.000000\"
+      }
+    }
+  }",
+}
\ No newline at end of file