API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · alarm_rules

Alarm Rule Schema

Schema-ID
alarm_rule
Collection
alarm_rules
Permissions
  • Lezenalarm_view
  • Aanmakenalarm_rule_manage
  • Wijzigenalarm_rule_manage
  • Verwijderenalarm_rule_manage

Velden

Alarm Rule Schema

alarm_rules4 permissions

ADR 0326 — ordered alarm classification rule (woasi parity): filters, severity, alerting windows and an actions list with per-action delay.

namestringvereist
1–200 tekens
descriptionstringoptioneel
max. 2000 tekensDefault: nullnullable
severitystringvereist

Display severity the rule assigns to matching alarms (woasi Schweregrad).

infowarningerror
isActivebooleanoptioneel
Default: true
pinnedbooleanoptioneel

Matching alarms cannot be hidden from the board (woasi "fixiert").

Default: false
stopProcessingbooleanoptioneel

Stop evaluating lower rules after a match (woasi first-match stop).

Default: false
isFallbackbooleanoptioneel

Auffangregel: skipped in the normal pass, applied only when NO ordinary rule matched and the connection uses alarmUnmatchedPolicy=fallback_rule.

Default: false
sortOrderintegervereist

Position in the ordered stack (drag-reorder in the editor).

≥ 0
deviceCategoriesstring[]optioneel

Empty = all device categories (deviation from woasi, documented in the editor).

Default: []
sourcesobject[]optioneel

Event origins this rule applies to. Empty = all.

Default: []
providerstringoptioneel
max. 40 tekensDefault: nullnullable
connectionIdstringoptioneel
PatternDefault: nullnullable
matchobjectoptioneel
Default: {}
checkTypesstring[]optioneel

Normalized check types (type level, woasi "Checkarten"). Empty = all. AND-combined with terms.

Default: []
severitiesstring[]optioneel

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.

unieke itemsDefault: []
termsobject[]optioneel

Tri-state search terms: mode or (mind. eines) | required (zwingend, hinreichend) | required_additional (zwingend zusätzlich).

Default: []
valuestringvereist
1–500 tekens
fieldsoneOfoptioneel

Fields the term is matched against ('all' or an explicit subset).

modestringoptioneel
orrequiredrequired_additional
Default: "or"
matchTypestringoptioneel
containsregex
Default: "contains"
caseSensitivebooleanoptioneel
Default: false
customerScopeobjectoptioneel
Default: {}
modestringoptioneel
allwhitelistblacklist
Default: "all"
entriesobject[]optioneel
Default: []
partyIdstringoptioneel
PatternDefault: nullnullable
nameQuerystringoptioneel

Case-insensitive substring on customerName/siteName (woasi Suchstring).

max. 200 tekensDefault: nullnullable
exceptionsobject[]optioneel

Matching terms that SUPPRESS actions (alarm is still created, flagged suppressedByException).

Default: []
valuestringvereist
1–500 tekens
fieldsoneOfoptioneel

Fields the term is matched against ('all' or an explicit subset).

scheduleobjectoptioneel

Alerting windows. Checked at scheduling AND again at execution time; outside = suppress.

Default: {}
modestringoptioneel
tenant_hourstenant_plus_windowswindows_onlyalways
Default: "tenant_hours"
windowsobject[]optioneel
Default: []
daysinteger[]vereist

ISO weekdays, 1 = Monday … 7 = Sunday.

min. 1 items
fromstringvereist
Pattern
tostringvereist
Pattern
useCustomerHoursbooleanoptioneel

Phase 3 — per-customer business hours. Stored but not yet evaluated.

Default: false
outsideWindowBehaviorstringoptioneel

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).

suppressdefer
Default: "suppress"
actionsobject[]optioneel
Default: []
typestringvereist
notify_emailnotify_pushnotify_callcreate_ticketcreate_taskwebhook_outauto_closereset_ackescalate_priority
delayMinutesintegeroptioneel

Delay from alarm start (not from evaluation) — woasi staffing pattern.

0 – 10080Default: 0
delayClockModestringoptioneel

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.

calendarbusiness
Default: "calendar"
triggerstringoptioneel
raiseclearboth
Default: "raise"
ignoreAckStatebooleanoptioneel

Fire even when the alarm was acknowledged (woasi parity).

Default: false
configobjectoptioneel

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.

Default: {}
originstringoptioneel

seed = created by the opt-in endpoint to reproduce the fixed ticket policy (idempotency anchor).

seednull
Default: nullread-onlynullable
seedConnectionIdstringoptioneel

For origin=seed: the connection whose policy this rule reproduces.

PatternDefault: nullread-onlynullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/alarm_rules — Lijst, gepagineerd + filterbaar
  • GET /api/v1/alarm_rules/<id> — Enkele entity
  • POST /api/v1/alarm_rules — Aanmaken
  • PATCH /api/v1/alarm_rules/<id> — Gedeeltelijke update
  • DELETE /api/v1/alarm_rules/<id> — Soft-delete
  • GET /api/v1/alarm_rules/<id>/timeline — Audit + activiteiten

Zoeken