Alarm Rule Schema
Felder
Alarm Rule Schema
ADR 0326 — ordered alarm classification rule (woasi parity): filters, severity, alerting windows and an actions list with per-action delay.
name
description
severity
Display severity the rule assigns to matching alarms (woasi Schweregrad).
infowarningerrorisActive
pinned
Matching alarms cannot be hidden from the board (woasi "fixiert").
stopProcessing
Stop evaluating lower rules after a match (woasi first-match stop).
isFallback
Auffangregel: skipped in the normal pass, applied only when NO ordinary rule matched and the connection uses alarmUnmatchedPolicy=fallback_rule.
sortOrder
Position in the ordered stack (drag-reorder in the editor).
deviceCategories
Empty = all device categories (deviation from woasi, documented in the editor).
sources
Event origins this rule applies to. Empty = all.
provider
connectionId
match
checkTypes
Normalized check types (type level, woasi "Checkarten"). Empty = all. AND-combined with terms.
severities
Canonical severities the EVENT was reported with (ADR 0730). Empty = all. AND-combined with the other filters. Fail-closed: a rule that names severities never matches an event without one.
terms
Tri-state search terms: mode or (mind. eines) | required (zwingend, hinreichend) | required_additional (zwingend zusätzlich).
value
fields
Fields the term is matched against ('all' or an explicit subset).
mode
orrequiredrequired_additionalmatchType
containsregexcaseSensitive
schedule
Alerting windows. Checked at scheduling AND again at execution time; outside = suppress.
mode
tenant_hourstenant_plus_windowswindows_onlyalwaysuseCustomerHours
Phase 3 — per-customer business hours. Stored but not yet evaluated.
outsideWindowBehavior
What happens to an action whose fire time falls outside the window. 'suppress' (default, legacy) drops it; 'defer' re-schedules it to the next opening. Readers MUST test `=== 'defer'`: this default never reaches the database (AJV mutates a stripped validation copy, not the body).
suppressdeferactions
type
notify_emailnotify_pushcreate_ticketcreate_taskwebhook_outauto_closereset_ackescalate_prioritydelayMinutes
Delay from alarm start (not from evaluation) — woasi staffing pattern.
delayClockMode
Time base for delayMinutes. 'calendar' (default, legacy) is wall-clock: night and weekend tick along. 'business' consumes only minutes inside the alerting hours, starting the clock at the next opening (waiting time is not credited). Which hours count follows schedule.mode. Readers MUST test `=== 'business'`: this default never reaches the database (AJV mutates a stripped validation copy, not the body), so absent has to stay legacy.
calendarbusinesstrigger
raiseclearbothignoreAckState
Fire even when the alarm was acknowledged (woasi parity).
config
Per-type config (recipients, ticket templates/assignment, webhook url+secret, escalate_priority: intervalMinutes/maxPriority/steps/stopWhenAssigned/addTicketNote, …). Validated per type by the action executor, not here.
origin
seed = created by the opt-in endpoint to reproduce the fixed ticket policy (idempotency anchor).
seednullseedConnectionId
For origin=seed: the connection whose policy this rule reproduces.
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/alarm_rules— Liste, paginiert + filterbarGET /api/v1/alarm_rules/<id>— Einzelne EntityPOST /api/v1/alarm_rules— AnlegenPATCH /api/v1/alarm_rules/<id>— Teil-UpdateDELETE /api/v1/alarm_rules/<id>— Soft-DeleteGET /api/v1/alarm_rules/<id>/timeline— Audit + Aktivitäten