streaming_metrics v2.1.7 StreamingMetrics.MetricCollector behaviour View Source

All modules implementing a MetricCollector must define the callbacks specified in this module.

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Link to this callback

count_metric(integer, arg1, list, arg3) View Source
count_metric(integer(), String.t(), [{String.t(), String.t()}], DateTime.t()) ::
  metric()

Link to this callback

init() View Source
init() :: :ok | {:error, term()}

Link to this callback

record_metrics(list, arg1) View Source
record_metrics([metric()], String.t()) :: {:ok, term()} | {:error, term()}