exometer_zabbix v0.0.2 Exometer.Report behaviour

Behaviour module for exometer_report in Elixir

Summary

Callbacks

Invoked when exometer reporter is started

Invoked when a metric is being reported as part of a subscription

Invoked when reporter is being subscribed to a metric

Invoked when reporter is being unsubscribed from a metric

Types

callback_result :: {:ok, state} | :ignore
state :: term

Callbacks

exometer_call(msg, pid, state)

Specs

exometer_call(msg :: term, pid, state) :: callback_result
exometer_cast(msg, state)

Specs

exometer_cast(msg :: term, state) :: callback_result
exometer_info(msg, state)

Specs

exometer_info(msg :: term, state) :: callback_result
exometer_init(opts)

Specs

exometer_init(opts :: term) :: callback_result

Invoked when exometer reporter is started

exometer_newentry(arg0, state)

Specs

exometer_newentry(:exometer.entry, state) :: callback_result
exometer_report(arg0, arg1, arg2, value, state)

Specs

exometer_report(:exometer_report.metric, :exometer_report.datapoint, :exometer_report.extra, value :: term, state) :: callback_result

Invoked when a metric is being reported as part of a subscription

exometer_setopts(arg0, opts)

Specs

exometer_setopts(:exometer_report.metric, opts :: term) :: callback_result
exometer_subscribe(arg0, arg1, arg2, arg3, state)

Specs

exometer_subscribe(:exometer_report.metric, :exometer_report.datapoint, :exometer_report.interval, :exometer_report.extra, state) :: callback_result

Invoked when reporter is being subscribed to a metric

exometer_terminate(opts, state)

Specs

exometer_terminate(opts :: term, state) :: callback_result
exometer_unsubscribe(arg0, arg1, arg2, state)

Specs

exometer_unsubscribe(:exometer_report.metric, :exometer_report.datapoint, :exometer_report.extra, state) :: callback_result

Invoked when reporter is being unsubscribed from a metric