Aludel.Stats.Overview (aludel v0.5.2)

Copy Markdown View Source

Top-line dashboard metrics and bounded period comparisons.

Summary

Functions

avg_latency()

@spec avg_latency() :: number()

comparison_stats(days \\ 7)

@spec comparison_stats(pos_integer()) :: map()

comparison_stats(days, as_of)

@spec comparison_stats(pos_integer(), DateTime.t()) :: map()

rolling_comparisons(as_of \\ current_as_of())

@spec rolling_comparisons(DateTime.t()) :: %{required(pos_integer()) => map()}

success_rate(passed, failed)

@spec success_rate(integer(), integer()) :: float()

test_totals()

@spec test_totals() :: {integer(), integer()}

total_runs()

@spec total_runs() :: integer()