chaperon v0.2.3 Chaperon.Exporter behaviour View Source

Metrics exporter behaviour. Implemented by all built-in exporter modules (see Chaperon.Export.*)

Link to this section Summary

Link to this section Types

Link to this type metrics_data() View Source
metrics_data() :: any()
Link to this type output_path() View Source
output_path() :: String.t()

Link to this section Callbacks

Link to this callback encode(arg0, arg1) View Source
encode(Chaperon.Session.t(), Keyword.t()) ::
  {:ok, metrics_data()} | {:error, String.t()}
Link to this callback write_output(module, metrics_data, output_path) View Source
write_output(module(), metrics_data(), output_path()) ::
  :ok | {:error, String.t()}