SquidSonar.Runs (squid_sonar v0.1.1)

Copy Markdown View Source

Read boundary for Squid Mesh workflow runs.

LiveViews should call this module instead of calling SquidMesh directly. That keeps runtime access, error handling, and view shaping in one place.

Summary

Functions

Fetches one run with history and diagnostic explanation.

Lists recent runs as UI-friendly summaries.

Types

option()

@type option() :: {:client, module()} | {:squid_mesh, keyword()}

Functions

get_run(run_id, opts \\ [])

@spec get_run(term(), [option()]) ::
  {:ok, SquidSonar.Runs.RunDetail.t()} | {:error, term()}

Fetches one run with history and diagnostic explanation.

list_runs(filters \\ [], opts \\ [])

@spec list_runs(
  keyword(),
  [option()]
) :: {:ok, [SquidSonar.Runs.RunSummary.t()]} | {:error, term()}

Lists recent runs as UI-friendly summaries.