ShtukbaseStandard
package page→ /alarms.md

pages/alarms.md

63 lines, 2.7 KB. As a page.

  1. ---
  2. type: Collection
  3. title: "Alarms"
  4. icon: "🚨"
  5. 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."
  6. itemType: Alarm
  7. items: {mode: path, path: /alarms, recursive: false}
  8. writeTo: /alarms
  9. properties:
  10. status: {kind: phase, contour: /alarms/contours/alarms, label: "State"}
  11. watch: {kind: text, label: "Watcher (what fired: disk-low, agents-silent ...)"}
  12. severity:
  13. kind: select
  14. label: "Severity"
  15. options:
  16. - {name: stops, label: "Work is stopped", color: red}
  17. - {name: slows, label: "Work is slowed", color: orange}
  18. - {name: notice, label: "For notice", color: gray}
  19. foundBy: {kind: relation, collection: /automations, label: "Found by (automation)"}
  20. foundAt: {kind: text, label: "Found at (ISO)"}
  21. closedBy: {kind: text, label: "Closed by (who or what)"}
  22. closedAt: {kind: text, label: "Closed at (ISO)"}
  23. drill: {kind: checkbox, label: "Drill"}
  24. views:
  25. - id: alarms--board
  26. name: By state
  27. layout: board
  28. fields: {}
  29. board:
  30. preview: page-content
  31. cardSize: small
  32. wrap: true
  33. grouping:
  34. by: status
  35. colorBy: status
  36. properties:
  37. - {name: title, visible: true}
  38. - {name: watch, visible: true}
  39. - {name: foundAt, visible: true}
  40. - id: alarms--table
  41. name: All alarms
  42. layout: table
  43. fields: {}
  44. sorting:
  45. - {propertyId: foundAt, direction: descending}
  46. properties:
  47. - {name: title, visible: true, width: 360}
  48. - {name: status, visible: true}
  49. - {name: watch, visible: true}
  50. - {name: severity, visible: true}
  51. - {name: foundAt, visible: true}
  52. - {name: closedBy, visible: true}
  53. ---
  54. 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`.
  55. 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).
  56. 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 "..."`.
  57. A drill alarm (`drill: true`) checks that the watcher and the notification work; it is closed the same way.
  58. 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.