View Source AntikytheraEal.MetricsStorage.Behaviour behaviour (antikythera v0.5.1)
Interface to storage for metrics data.
See AntikytheraEal for common information about pluggable interfaces defined in antikythera.
Metrics data generated during runtime is buffered for a while by AntikytheraCore.MetricsUploader
processes and then transferred to metrics storage using upload/3 callback.
Summary
Callbacks
Uploads the metrics data to the metrics storage.
Callbacks
@callback upload( otp_app_name :: atom(), node_id :: Antikythera.NodeId.t(), results :: AntikytheraCore.Metrics.Results.t() ) :: [AntikytheraEal.MetricsStorage.metrics_per_unit()]
Uploads the metrics data to the metrics storage.
otp_app_name is either a gear name or :antikythera.
node_id is the name of the current node and callback implementation may include node_id
in the body of the upload.