Commit b869bdf3 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[#1041] Added age value to the status-get response

parent a7267264
......@@ -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>,",
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment