KloradDocs

@klorad/notify

Rules over a scene's events raise alerts, addressed to Worlds and never wider than their scope.

import { createNotifier, inAppChannel } from "@klorad/notify";
ExportKindDescription
createNotifier(options)functionWatches the scene and raises alerts. Returns a Notifier: alerts(), acknowledge(id, actor), stop().
Rule, Condition, ObjectFilter, SeveritytypeA rule: id, name, condition, objects?, severity (info, warning, critical), worlds.
Alerttypeid, ruleId, objectId, severity, title, at, worlds, and once acknowledged acknowledgedBy, acknowledgedAt.
Channeltype{ id, deliver(alert) }.
inAppChannel(limit?)functionAn in memory channel: list(worlds), subscribe(listener), update(alert). Keeps the last 200 by default.
holds(condition, value), watches(rule, object)functionThe rule predicates, for your own tooling.

Prop

Type

Not in 0.1: web push, email and SMS channels, escalation, quiet hours and persisted alerts.

Something wrong or unclear? Tell your contact at Prieston Technologies.