Skip to content
Français

ResourceOperationResult

import type { ResourceOperationResult } from "@elie-laloum/outpost";
  • idRequired
    string
    Random UUID of this operation.
  • finishedAtRequired
    string
    ISO time the operation settled.
  • outcomeRequired
    "failed" | "completed"
    completed when the action resolved, failed when it threw.
  • countRequired
    number
    Number of operations of this kind running concurrently. Always 1 in lastOperation and lastFailure.
  • kindRequired
    "command" | "dispatch" | "attach" | "diagnose" | "invoke" | "upload" | "download" | "manifest" | "download-batch" | "upload-batch"
    Operation category, such as dispatch, command, upload or download.
  • startedAtRequired
    string
    ISO start time. In a result, when this operation started; in operations, when the first operation of this kind started since the kind was last idle.
export interface ResourceOperationResult extends ResourceOperation {
  readonly id: string;
  readonly finishedAt: string;
  readonly outcome: "completed" | "failed";
}