Exometer.Report behaviour (exometer_zabbix v1.0.1) View Source

Behaviour module for exometer_report in Elixir

Link to this section 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

Link to this section Types

Specs

callback_result() :: {:ok, state()} | :ignore

Specs

state() :: term()

Link to this section Callbacks

Link to this callback

exometer_call( msg, pid, state )

View Source

Specs

exometer_call(
  msg :: term(),
  pid(),
  state()
) :: callback_result()
Link to this callback

exometer_cast( msg, state )

View Source

Specs

exometer_cast(
  msg :: term(),
  state()
) :: callback_result()
Link to this callback

exometer_info( msg, state )

View Source

Specs

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

Specs

exometer_init(opts :: term()) :: callback_result()

Invoked when exometer reporter is started

Link to this callback

exometer_newentry(arg1, state)

View Source

Specs

exometer_newentry(
  :exometer.entry(),
  state()
) :: callback_result()
Link to this callback

exometer_report( arg1, arg2, arg3, value, state )

View Source

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

Link to this callback

exometer_setopts(arg1, opts)

View Source

Specs

exometer_setopts(
  :exometer_report.metric(),
  opts :: term()
) :: callback_result()
Link to this callback

exometer_subscribe(arg1, arg2, arg3, arg4, state)

View Source

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

Link to this callback

exometer_terminate( opts, state )

View Source

Specs

exometer_terminate(
  opts :: term(),
  state()
) :: callback_result()
Link to this callback

exometer_unsubscribe(arg1, arg2, arg3, state)

View Source

Specs

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

Invoked when reporter is being unsubscribed from a metric