]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1041] Added age value to the status-get response
authorMarcin Siodelski <marcin@isc.org>
Fri, 13 Dec 2019 15:30:44 +0000 (16:30 +0100)
committerMarcin Siodelski <marcin@isc.org>
Fri, 13 Dec 2019 16:01:00 +0000 (17:01 +0100)
doc/sphinx/api/status-get.json
doc/sphinx/arm/hooks-ha.rst

index c0dab8e717d72cd7208c6693154d62854e967bfe..66926830d26749b5987752d199a61e88bd33e8f2 100644 (file)
@@ -28,6 +28,7 @@
         "                \"state\": <HA state name of the server receiving the command>,",
         "            },",
         "            \"remote\": {",
+        "                \"age\": <the age of the remote status in seconds>,",
         "                \"in-touch\": <indicates if this server communicated with remote>,",
         "                \"last-scopes\": <list of scopes served by partner>,",
         "                \"last-state\": <HA state name of the partner>,",
index c741f4e860fcb7e36264537b64bb45d3461c74a7..3e638b579395854fc21209332112361762ce3f3d 100644 (file)
@@ -1330,6 +1330,7 @@ the HA status of two load balancing servers:
                    "state": "load-balancing"
                },
                 "remote": {
+                   "age": 10,
                    "in-touch": true,
                    "role": "secondary",
                    "last-scopes": [ "server2" ],
@@ -1358,4 +1359,6 @@ is gathered during the heartbeat command exchange, so it may not be
 accurate if the communication problem occur between the partners and this
 status information is not refreshed. In such case, it may be useful to
 send the ``status-get`` command to the partner server directly to check
-its current state.
+its current state. The ``age`` parameter specifies the number of seconds
+since the information from the partner was gathered (the age of this
+information).