Bump to v1.4.0: tap-to-dismiss, docker restart detection, cleanup thread fix
Add /clear-all endpoint and wire it to the tap handler so tapping the display dismisses active warnings/critical alerts. Fix docker detector to track restart count deltas instead of relying on the transient "restarting" state. Wrap cleanup thread in try/except so it can't die silently and leave events stuck forever. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
30
openapi.yaml
30
openapi.yaml
@@ -14,7 +14,7 @@ info:
|
||||
## TTL/Heartbeat Pattern
|
||||
Events can have a TTL (time-to-live) that auto-expires them. Detectors typically send
|
||||
heartbeat events that expire if not refreshed, indicating loss of communication.
|
||||
version: 1.3.0
|
||||
version: 1.4.0
|
||||
license:
|
||||
name: MIT
|
||||
|
||||
@@ -65,6 +65,21 @@ paths:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
/clear-all:
|
||||
post:
|
||||
summary: Clear all events
|
||||
description: |
|
||||
Clear all active events at once. Used by the frontend when the display
|
||||
is tapped to dismiss warnings and critical alerts.
|
||||
operationId: clearAllEvents
|
||||
responses:
|
||||
"200":
|
||||
description: All events cleared
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ClearAllResponse"
|
||||
|
||||
/clear:
|
||||
post:
|
||||
summary: Clear an event
|
||||
@@ -233,6 +248,19 @@ components:
|
||||
current_state:
|
||||
$ref: "#/components/schemas/Status"
|
||||
|
||||
ClearAllResponse:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
example: "cleared"
|
||||
count:
|
||||
type: integer
|
||||
description: Number of events that were cleared
|
||||
example: 2
|
||||
current_state:
|
||||
$ref: "#/components/schemas/Status"
|
||||
|
||||
ClearResponse:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user