From 4a2793864047134c6521dc44562828b6ab071c17 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 04:09:40 +0100 Subject: add lastSyncSecsAgo and description to /peers --- docs/openapi.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/openapi.yaml b/docs/openapi.yaml index b04c98a..b7c632d 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -584,9 +584,10 @@ paths: `{"all": true}` when too many changed or the node lost count. When the node stops, an `offline` event ends the stream (a client reconnects once the node is back). Nothing changed, nothing is sent but keep-alive comments. - Ages (`…SecsAgo`, `secsAgo`, `uptimeSecs`, `dormantForSecs`, `observedSecs`, - `lastFromNeighbourSecs`, `oldestQuarantineSecs`) are as of the event: they - alone changing sends nothing, the client counts them on. Only with the + Ages (`…SecsAgo`, `secsAgo`, `uptimeSecs`, `dormantForSecs`, + `divergedForSecs`, `observedSecs`, `lastFromNeighbourSecs`, + `oldestQuarantineSecs`) are as of the event: they alone changing sends + nothing, the client counts them on. Only with the `dashboard` cargo feature. responses: '200': @@ -1337,6 +1338,12 @@ components: type: [integer, 'null'] dormantForSecs: type: [integer, 'null'] + lastSyncSecsAgo: + type: [integer, 'null'] + description: Since a sync message from it was applied (or the epoch changed). + divergedForSecs: + type: [integer, 'null'] + description: How long its heads have differed from ours with no sync message from it in between; null while they match. hasPendingDelivery: type: boolean epoch: -- cgit v1.3.1