Skip to content
Français

OperationEvent

import type { OperationEvent } from "@elie-laloum/outpost";
  • kindRequired
    "operation"
    Discriminant for an Outpost lifecycle operation.
  • idRequired
    string
    Unique identifier shared by the start and terminal event of this operation.
  • nameRequired
    string
    Stable operation name, without command arguments, credentials or repository contents.
  • statusRequired
    "started" | "finished" | "failed"
    Started, finished successfully or failed; terminal events carry elapsed duration.
  • durationMsOptional
    number | undefined
    Elapsed monotonic duration in milliseconds on finished or failed events.
export interface OperationEvent {
  readonly kind: "operation";
  readonly id: string;
  readonly name: string;
  readonly status: "started" | "finished" | "failed";
  readonly durationMs?: number;
}