antikythera v0.2.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 type
metrics_data_map()
View Source
metrics_data_map() :: %{optional(metrics_type()) => metrics_value()}
Link to this type
metrics_type()
View Source
metrics_type() :: {String.t(), AntikytheraCore.Metrics.AggregateStrategy.t()}
Link to this type
metrics_value()
View Source
metrics_value() :: AntikytheraCore.Metrics.AggregateStrategy.data_t()
Link to this section Functions
Link to this function
add(buffer, now, list, epool_id)
View Source
add(t(), Antikythera.Time.t(), [{String.t(), AntikytheraCore.Metrics.AggregateStrategy.t(), number()}], epool_id()) :: t()
Link to this function
partition_ongoing_and_past(buffer, now)
View Source
partition_ongoing_and_past(t(), Antikythera.Time.t()) :: {t(), [{metrics_unit(), metrics_data_map()}]}