PgFlow.Metrics (PgFlow v0.3.3)

Copy Markdown View Source

Typed operational overview metrics for PgFlow.

Run totals and duration use an explicit 24-hour window. Running runs and queued tasks reflect current all-time state, matching their operational use.

Summary

Functions

Returns the current overview metrics.

Functions

overview(repo, opts \\ [])

@spec overview(
  module(),
  keyword()
) :: {:ok, PgFlow.OverviewMetrics.t()}

Returns the current overview metrics.

The optional :now value provides a common clock boundary for every metric.