ExecutionPlane.DiagnosticResult (execution_plane v0.1.0)

Copy Markdown View Source

Structured result emitted by the diagnostic execution lane.

Summary

Types

attestation()

@type attestation() :: :weak_local

status()

@type status() :: :ok | :error | :timeout

t()

@type t() :: %ExecutionPlane.DiagnosticResult{
  attestation: attestation(),
  execution_time_ms: non_neg_integer(),
  operation: String.t(),
  payload: map(),
  status: status(),
  target_class: String.t()
}

Functions

dump(result)

@spec dump(t()) :: map()

new(result)

@spec new(map() | keyword() | t()) :: {:ok, t()} | {:error, Exception.t()}

new!(result)

@spec new!(map() | keyword() | t()) :: t()

replace(result, status, payload)

@spec replace(t(), status(), map()) :: t()

with_elapsed(result, elapsed_ms)

@spec with_elapsed(t(), non_neg_integer()) :: t()