chaperon v0.3.1 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

file_paths()

View Source
file_paths() :: [Strint.t()]
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(arg1, arg2)

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

write_output(module, options, metrics_data, output_path)

View Source
write_output(module(), options(), metrics_data(), output_path()) ::
  {:ok, file_paths()} | {:error, String.t()}