Lifecycle record. Snapshots detach mutable configuration, retaining opaque payloads.

interface Alert {
    condition: AlertCondition;
    cooldownSeconds: number;
    expiresAt?: number;
    id: string;
    lastClosedTime?: number;
    lastTouchedTime?: number;
    lastTriggeredAt?: number;
    lastTriggeredTime?: number;
    message?: string;
    payload?: unknown;
    policy: AlertPolicy;
    repeat: AlertRepeat;
    scope: AlertScope;
    source: AlertSource;
    state: AlertState;
    title: string;
}

Hierarchy

  • Omit<
        AlertInput,
        | "id"
        | "condition"
        | "policy"
        | "repeat"
        | "state"
        | "title"
        | "cooldownSeconds",
    >
    • Alert

Properties

condition: AlertCondition
cooldownSeconds: number
expiresAt?: number

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

id: string
lastClosedTime?: number

Newest confirmed bar already judged, including a nonmatch.

lastTouchedTime?: number

Newest intrabar match consumed, including one suppressed by cooldown.

lastTriggeredAt?: number
lastTriggeredTime?: number
message?: string
payload?: unknown

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

policy: AlertPolicy
repeat: AlertRepeat
scope: AlertScope
source: AlertSource
state: AlertState
title: string