API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · alarm_rules

Alarm Rule Schema

ID du schéma
alarm_rule
Collection
alarm_rules
Autorisations
  • Lirealarm_view
  • Créeralarm_rule_manage
  • Modifieralarm_rule_manage
  • Supprimeralarm_rule_manage

Champs

Alarm Rule Schema

alarm_rules4 autorisations

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

namestringobligatoire
1–200 caractères
descriptionstringfacultatif
max. 2000 caractèresPar défaut : nullnullable
severitystringobligatoire

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

infowarningerror
isActivebooleanfacultatif
Par défaut : true
pinnedbooleanfacultatif

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

Par défaut : false
stopProcessingbooleanfacultatif

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

Par défaut : false
isFallbackbooleanfacultatif

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

Par défaut : false
sortOrderintegerobligatoire

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

≥ 0
deviceCategoriesstring[]facultatif

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

Par défaut : []
sourcesobject[]facultatif

Event origins this rule applies to. Empty = all.

Par défaut : []
providerstringfacultatif
max. 40 caractèresPar défaut : nullnullable
connectionIdstringfacultatif
MotifPar défaut : nullnullable
matchobjectfacultatif
Par défaut : {}
checkTypesstring[]facultatif

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

Par défaut : []
severitiesstring[]facultatif

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.

éléments uniquesPar défaut : []
termsobject[]facultatif

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

Par défaut : []
valuestringobligatoire
1–500 caractères
fieldsoneOffacultatif

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

modestringfacultatif
orrequiredrequired_additional
Par défaut : "or"
matchTypestringfacultatif
containsregex
Par défaut : "contains"
caseSensitivebooleanfacultatif
Par défaut : false
customerScopeobjectfacultatif
Par défaut : {}
modestringfacultatif
allwhitelistblacklist
Par défaut : "all"
entriesobject[]facultatif
Par défaut : []
partyIdstringfacultatif
MotifPar défaut : nullnullable
nameQuerystringfacultatif

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

max. 200 caractèresPar défaut : nullnullable
exceptionsobject[]facultatif

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

Par défaut : []
valuestringobligatoire
1–500 caractères
fieldsoneOffacultatif

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

scheduleobjectfacultatif

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

Par défaut : {}
modestringfacultatif
tenant_hourstenant_plus_windowswindows_onlyalways
Par défaut : "tenant_hours"
windowsobject[]facultatif
Par défaut : []
daysinteger[]obligatoire

ISO weekdays, 1 = Monday … 7 = Sunday.

min. 1 éléments
fromstringobligatoire
Motif
tostringobligatoire
Motif
useCustomerHoursbooleanfacultatif

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

Par défaut : false
outsideWindowBehaviorstringfacultatif

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
Par défaut : "suppress"
actionsobject[]facultatif
Par défaut : []
typestringobligatoire
notify_emailnotify_pushnotify_callcreate_ticketcreate_taskwebhook_outauto_closereset_ackescalate_priority
delayMinutesintegerfacultatif

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

0 – 10080Par défaut : 0
delayClockModestringfacultatif

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
Par défaut : "calendar"
triggerstringfacultatif
raiseclearboth
Par défaut : "raise"
ignoreAckStatebooleanfacultatif

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

Par défaut : false
configobjectfacultatif

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.

Par défaut : {}
originstringfacultatif

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

seednull
Par défaut : nulllecture seulenullable
seedConnectionIdstringfacultatif

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

MotifPar défaut : nulllecture seulenullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/alarm_rules — Liste, paginée et filtrable
  • GET /api/v1/alarm_rules/<id> — Une entité
  • POST /api/v1/alarm_rules — Créer
  • PATCH /api/v1/alarm_rules/<id> — Mise à jour partielle
  • DELETE /api/v1/alarm_rules/<id> — Suppression logique
  • GET /api/v1/alarm_rules/<id>/timeline — Audit et activités

Recherche