Skip to content

Commit 07f2238

Browse files
Update stats-device-get.rst (#768)
I added the key-value pair "lastConnectionDurationS". The explanation of this value must be more precise (cumulative seconds ?) Is the counter set to zero on connection loss ? Is it seconds ?
1 parent 0baa5f7 commit 07f2238

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rest/stats-device-get.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ GET /rest/stats/device
22
======================
33

44
Returns general statistics about devices. Currently, only contains the
5-
time the device was last seen.
5+
time the device was last seen and the last connection duration.
66

77
.. code-block:: bash
88
99
$ curl -s http://localhost:8384/rest/stats/device | json
1010
{
1111
"P56IOI7-MZJNU2Y-IQGDREY-DM2MGTI-MGL3BXN-PQ6W5BM-TBBZ4TJ-XZWICQ2": {
1212
"lastSeen" : "2015-04-18T11:21:31.3256277+01:00"
13+
"lastConnectionDurationS": 556335.421708141
1314
}
1415
}

0 commit comments

Comments
 (0)