API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · alarm_rules

Alarm Rule Schema

ID del esquema
alarm_rule
Colección
alarm_rules
Permisos
  • Leeralarm_view
  • Crearalarm_rule_manage
  • Modificaralarm_rule_manage
  • Eliminaralarm_rule_manage

Campos

Alarm Rule Schema

alarm_rules4 permisos

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

namestringobligatorio
1–200 caracteres
descriptionstringopcional
máx. 2000 caracteresValor por defecto: nulladmite null
severitystringobligatorio

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

infowarningerror
isActivebooleanopcional
Valor por defecto: true
pinnedbooleanopcional

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

Valor por defecto: false
stopProcessingbooleanopcional

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

Valor por defecto: false
isFallbackbooleanopcional

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

Valor por defecto: false
sortOrderintegerobligatorio

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

≥ 0
deviceCategoriesstring[]opcional

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

Valor por defecto: []
sourcesobject[]opcional

Event origins this rule applies to. Empty = all.

Valor por defecto: []
providerstringopcional
máx. 40 caracteresValor por defecto: nulladmite null
connectionIdstringopcional
PatrónValor por defecto: nulladmite null
matchobjectopcional
Valor por defecto: {}
checkTypesstring[]opcional

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

Valor por defecto: []
severitiesstring[]opcional

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.

elementos únicosValor por defecto: []
termsobject[]opcional

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

Valor por defecto: []
valuestringobligatorio
1–500 caracteres
fieldsoneOfopcional

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

modestringopcional
orrequiredrequired_additional
Valor por defecto: "or"
matchTypestringopcional
containsregex
Valor por defecto: "contains"
caseSensitivebooleanopcional
Valor por defecto: false
customerScopeobjectopcional
Valor por defecto: {}
modestringopcional
allwhitelistblacklist
Valor por defecto: "all"
entriesobject[]opcional
Valor por defecto: []
partyIdstringopcional
PatrónValor por defecto: nulladmite null
nameQuerystringopcional

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

máx. 200 caracteresValor por defecto: nulladmite null
exceptionsobject[]opcional

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

Valor por defecto: []
valuestringobligatorio
1–500 caracteres
fieldsoneOfopcional

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

scheduleobjectopcional

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

Valor por defecto: {}
modestringopcional
tenant_hourstenant_plus_windowswindows_onlyalways
Valor por defecto: "tenant_hours"
windowsobject[]opcional
Valor por defecto: []
daysinteger[]obligatorio

ISO weekdays, 1 = Monday … 7 = Sunday.

mín. 1 elementos
fromstringobligatorio
Patrón
tostringobligatorio
Patrón
useCustomerHoursbooleanopcional

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

Valor por defecto: false
outsideWindowBehaviorstringopcional

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
Valor por defecto: "suppress"
actionsobject[]opcional
Valor por defecto: []
typestringobligatorio
notify_emailnotify_pushnotify_callcreate_ticketcreate_taskwebhook_outauto_closereset_ackescalate_priority
delayMinutesintegeropcional

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

0 – 10080Valor por defecto: 0
delayClockModestringopcional

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
Valor por defecto: "calendar"
triggerstringopcional
raiseclearboth
Valor por defecto: "raise"
ignoreAckStatebooleanopcional

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

Valor por defecto: false
configobjectopcional

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.

Valor por defecto: {}
originstringopcional

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

seednull
Valor por defecto: nullsolo lecturaadmite null
seedConnectionIdstringopcional

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

PatrónValor por defecto: nullsolo lecturaadmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/alarm_rules — Lista, paginada y filtrable
  • GET /api/v1/alarm_rules/<id> — Una entidad
  • POST /api/v1/alarm_rules — Crear
  • PATCH /api/v1/alarm_rules/<id> — Actualización parcial
  • DELETE /api/v1/alarm_rules/<id> — Eliminación lógica
  • GET /api/v1/alarm_rules/<id>/timeline — Auditoría y actividades

Búsqueda