API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · alarms

Alarm Schema

Schema ID
alarm
Collection
alarms
Permissions
  • Readalarm_view
  • Createalarm_manage
  • Editalarm_manage
  • Deletealarm_manage
Relationships

Fields

Alarm Schema

alarms4 permissions

ADR 0326 — stateful monitoring alarm (one doc per open dedupKey period), classified by the alarm rule stack.

statusstringrequired

Lifecycle: OPEN → ACKNOWLEDGED (in Bearbeitung) → RESOLVED (source sent CLEAR) | CLOSED (manual or auto_close action).

OPENACKNOWLEDGEDRESOLVEDCLOSED
read-only
isOpenbooleanrequired

Computed: true while status is OPEN or ACKNOWLEDGED. Exists solely for the unique partial index (one open alarm per dedupKey) — always derive from status, never set independently.

read-only
severitystringrequired

Display severity from the FIRST matching rule; fallback: severityHint mapping (critical→error) when no rule matched.

infowarningerror
read-only
canonicalSeveritystringoptional

Provider-mapped 4-level severity of the first RAISE (RmmSeverity). Kept alongside the 3-level display severity because ticket-priority policies are 4-level — the seeded default rule maps priorities from THIS field (fixed-policy parity).

infowarningerrorcriticalnull
Default: nullread-onlynullable
dedupKeystringrequired

Provider-scoped identity (ADR 0244) — passed through, never recomputed.

1–500 charactersread-only
providerstringrequired

RMM provider id (octoja|riverbird|…).

max 40 charactersread-only
connectionIdstringoptional

integration_config the events came from.

PatternDefault: nullread-onlynullable
errorTypestringoptional

Check name/category ("Fehlerart") — snapshot from the first RAISE.

max 500 charactersDefault: nullread-onlynullable
checkTypestringoptional

Normalized check type (RMM_CHECK_TYPES catalog value), null when unknown.

max 40 charactersDefault: nullread-onlynullable
messagestringoptional

Human-readable check output — updated on UPDATE events.

max 20000 charactersDefault: nullread-onlynullable
deviceNamestringoptional
max 500 charactersDefault: nullread-onlynullable
deviceCategorystringoptional

Normalized device category (RMM_DEVICE_CATEGORIES value).

max 40 charactersDefault: nullread-onlynullable
siteNamestringoptional
max 500 charactersDefault: nullread-onlynullable
customerNamestringoptional
max 500 charactersDefault: nullread-onlynullable
partyIdstringoptional
PatternDefault: nullread-onlynullable
rmmDeviceIdstringoptional
PatternDefault: nullread-onlynullable
assetIdstringoptional

CMDB asset of the device — snapshot of rmm_device.assetId at alarm creation; null = no match ("ohne Asset" marker in the UI).

PatternDefault: nullread-onlynullable
ticketIdstringoptional

Ticket created/attached by a create_ticket action.

PatternDefault: nullread-onlynullable
matchedRuleIdsuuid[]optional

All rules that matched (evaluation transparency in the UI).

Default: []read-only
suppressedByExceptionbooleanoptional

A rule matched but its exception suppressed all actions.

Default: falseread-only
pinnedbooleanoptional

OR over the matching rules — a pinned alarm cannot be hidden.

Default: falseread-only
hiddenByuuid[]optional

Users who hid this alarm from their board (only when not pinned).

Default: []read-only
acknowledgedBystringoptional
PatternDefault: nullread-onlynullable
acknowledgedAtdatetimeoptional
Default: nullread-onlynullable
firstOccurredAtdatetimeoptional
Default: nullread-onlynullable
lastEventAtdatetimeoptional
Default: nullread-onlynullable
resolvedAtdatetimeoptional
Default: nullread-onlynullable
closedBystringoptional

The user who closed the alarm by hand („Problem erledigt", POST /alarms/:id/close). Set only by that route — never by the rule action auto_close. The NinjaOne outbound sweep resets the condition in NinjaOne only for alarms carrying it. Absent = closed by a rule/system, or before the field existed.

Patternread-onlynullable
closedAtdatetimeoptional

When the alarm was closed by hand (with closedBy).

read-onlynullable
eventCountintegeroptional
≥ 0Default: 1read-only
scheduledActionJobIdsstring[]optional

Pending BullMQ action jobIds — best-effort cancel bookkeeping on CLEAR/ack.

Default: []read-only
executedActionKeysstring[]optional

Idempotency keys of actions that already fired. The authoritative dedup — BullMQ jobId dedup ends at removeOnComplete.

Default: []read-only
evaluationModestringoptional

ADR 1115 — who decides about tickets: the alarm rule stack (rules) or the fixed ticket policy of the connection (record — the alarm only records the disturbance and links that ticket, no rule ever runs). Kept for the whole open period. Absent = rules (every alarm before ADR 1115).

rulesrecord
read-only
discardedbooleanoptional

ADR 1115 — no rule matched and the unmatched policy is discard: the alarm is kept (dedup slot, event history) but hidden from the board by default and never acted on. Absent = false.

read-only
maintenancebooleanoptional

The alarm arose while its asset was in maintenance (`assets.maintenance`). A marker only: rule actions wait until the maintenance is over (and then run if the alarm is still open), the fixed ticket policy parks its ticket in `deferredTicket`. Absent = false.

read-only
deferredTicketobjectoptional

Record mode during an asset maintenance: the ticket the fixed policy would have created, rendered by the RMM adapter. Created by the alarm-consumer once the maintenance is over and the alarm is still open, then removed. Absent/null = nothing waiting.

read-onlynullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/alarms — List, paginated + filterable
  • GET /api/v1/alarms/<id> — Single entity
  • POST /api/v1/alarms — Create
  • PATCH /api/v1/alarms/<id> — Partial update
  • DELETE /api/v1/alarms/<id> — Soft delete
  • GET /api/v1/alarms/<id>/timeline — Audit + activities

Search