antikythera v0.4.0 AntikytheraCore.Metrics.Buffer View Source

A bin-like data structure to hold per-minute, per-epool metrics data.

%{
  {time_minute, epool_id} => %{
    {metrics_type, strategy} => data_in_processing,
    {metrics_type, strategy} => data_in_processing,
    ...
  },
  ...
}

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

add(buffer, now, list, epool_id)

View Source

Specs

Specs

new() :: t()
Link to this function

partition_ongoing_and_past(buffer, now)

View Source

Specs

partition_ongoing_and_past(t(), Antikythera.Time.t()) ::
  {t(), [{metrics_unit(), metrics_data_map()}]}