PgFlow.DefinitionSummary (PgFlow v0.3.2)

Copy Markdown View Source

Typed operational statistics for a stored PgFlow definition.

Summary

Functions

Builds definition statistics from a complete query projection.

Types

t()

@type t() :: %PgFlow.DefinitionSummary{
  avg_duration_ms: Decimal.t(),
  completed_runs_24h: non_neg_integer(),
  failed_runs_24h: non_neg_integer(),
  flow_slug: String.t(),
  flow_type: String.t(),
  opt_base_delay: non_neg_integer(),
  opt_max_attempts: non_neg_integer(),
  opt_timeout: pos_integer(),
  p95_duration_ms: float(),
  step_count: non_neg_integer(),
  success_rate_24h: Decimal.t(),
  total_runs_24h: non_neg_integer()
}

Functions

new(attributes)

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

Builds definition statistics from a complete query projection.