PgFlow.OverviewMetrics (PgFlow v0.3.2)

Copy Markdown View Source

Typed real-time metrics for PgFlow's operational overview.

Summary

Functions

Builds overview metrics from a complete query projection.

Types

t()

@type t() :: %PgFlow.OverviewMetrics{
  active_workers: non_neg_integer(),
  avg_duration_ms: Decimal.t(),
  completed_runs_24h: non_neg_integer(),
  failed_runs_24h: non_neg_integer(),
  healthy_workers: non_neg_integer(),
  queue_depth: non_neg_integer(),
  running_runs: non_neg_integer(),
  stale_workers: non_neg_integer(),
  total_runs_24h: non_neg_integer()
}

Functions

new(attributes)

@spec new(map()) :: t()

Builds overview metrics from a complete query projection.