interface AlertInput {
    condition?: AlertCondition;
    cooldownSeconds?: number;
    expiresAt?: number;
    id?: string;
    message?: string;
    payload?: unknown;
    policy?: AlertPolicy;
    repeat?: AlertRepeat;
    source: AlertSource;
    state?: "armed" | "disabled";
    title?: string;
}

Properties

condition?: AlertCondition
cooldownSeconds?: number
expiresAt?: number

UTC seconds. At this instant the alert expires before it can trigger.

id?: string
message?: string
payload?: unknown

Opaque host routing data. The controller never interprets or delivers it.

policy?: AlertPolicy

Defaults to onBarClose. An intrabar touch may disappear from final history.

repeat?: AlertRepeat
source: AlertSource
state?: "armed" | "disabled"
title?: string