package page→ /alarms.md
pages/alarms.md
63 lines, 2.7 KB. As a page.
- ---
- type: Collection
- title: "Alarms"
- icon: "🚨"
- description: "When a factory watcher sees trouble: low disk space, silent agents, failing runs. One alarm is one case: what fired, when, who closed it and why."
- itemType: Alarm
- items: {mode: path, path: /alarms, recursive: false}
- writeTo: /alarms
- properties:
- status: {kind: phase, contour: /alarms/contours/alarms, label: "State"}
- watch: {kind: text, label: "Watcher (what fired: disk-low, agents-silent ...)"}
- severity:
- kind: select
- label: "Severity"
- options:
- - {name: stops, label: "Work is stopped", color: red}
- - {name: slows, label: "Work is slowed", color: orange}
- - {name: notice, label: "For notice", color: gray}
- foundBy: {kind: relation, collection: /automations, label: "Found by (automation)"}
- foundAt: {kind: text, label: "Found at (ISO)"}
- closedBy: {kind: text, label: "Closed by (who or what)"}
- closedAt: {kind: text, label: "Closed at (ISO)"}
- drill: {kind: checkbox, label: "Drill"}
- views:
- - id: alarms--board
- name: By state
- layout: board
- fields: {}
- board:
- preview: page-content
- cardSize: small
- wrap: true
- grouping:
- by: status
- colorBy: status
- properties:
- - {name: title, visible: true}
- - {name: watch, visible: true}
- - {name: foundAt, visible: true}
- - id: alarms--table
- name: All alarms
- layout: table
- fields: {}
- sorting:
- - {propertyId: foundAt, direction: descending}
- properties:
- - {name: title, visible: true, width: 360}
- - {name: status, visible: true}
- - {name: watch, visible: true}
- - {name: severity, visible: true}
- - {name: foundAt, visible: true}
- - {name: closedBy, visible: true}
- ---
- An alarm is a case where a factory watcher saw trouble: free space below the threshold, silent agents, runs failing one after another. A watcher is an automation or a script that looks at the factory; its short name is written in `watch`.
- One alarm is one case. While it is open, the same watcher does not raise a new one: a repeat of the same trouble is the same alarm. When the trouble is over, the alarm is closed, and who or what closed it and when is written down. A false alarm is dismissed with a reason. The states are in the [alarm contour](/alarms/contours/alarms.md).
- Open an alarm: `shtuk run alarms raise --watch disk-low --title "..."` (if this watcher already has an open one, no new one is made). Close it: `shtuk run alarms close --watch disk-low --by "..."`.
- A drill alarm (`drill: true`) checks that the watcher and the notification work; it is closed the same way.
- Norms: [ALR-R01](/norms/rules/alarms/ALR-R01.md) says an alarm states what fired and how it ended; [ALR-R02](/norms/rules/alarms/ALR-R02.md) says one open alarm per watcher.