Skip to content
Français

Observation

import type { Observation } from "@elie-laloum/outpost";
  • seqRequired
    number
    Strictly increasing sequence shared by a root hub and all its scoped children; gaps may indicate dropped deliveries.
  • atRequired
    string
    ISO timestamp assigned when Outpost emits the event, not an upstream server timestamp.
  • sourceRequired
    ObservationSource
    Outpost subsystem producing the event.
  • scopeRequired
    ObservationScope
    Workflow, task, attempt, dispatch, pass and candidate fields known at emission.
  • eventRequired
    ObservationEvent
    Typed payload; narrow its kind before accessing variant-specific fields.
export interface Observation {
  readonly seq: number;
  readonly at: string;
  readonly source: ObservationSource;
  readonly scope: ObservationScope;
  readonly event: ObservationEvent;
}