View Source AntikytheraCore.Metrics.AggregateStrategy (antikythera v0.5.1)

Defines (1) a behaviour to compute metrics results from raw metrics data and (2) some implementations of the behaviour. "Raw metrics data" is values reported from other components (e.g. response time values). "Metrics results" are values that summarize characteristics of "raw metrics data" (e.g. average response time).

Antikythera gear implementations must specify name of one of the strategies when submitting raw metric data. For available name see the type definition in AntikytheraCore.Metrics.AggregateStrategy.Name. For detailed information about each strategy refer to each module's documentation.

Summary

Types

@type data_t() :: any()
@type results_t() :: Keyword.t(number())
@type t() ::
  AntikytheraCore.Metrics.AggregateStrategy.Average
  | AntikytheraCore.Metrics.AggregateStrategy.Gauge
  | AntikytheraCore.Metrics.AggregateStrategy.RequestCount
  | AntikytheraCore.Metrics.AggregateStrategy.Sum
  | AntikytheraCore.Metrics.AggregateStrategy.TimeDistribution

Functions