farmbot_os/farmbot_telemetry/lib/farmbot_telemetry/event_classes/amqp_event_class.ex

29 lines
549 B
Elixir

defmodule FarmbotTelemetry.AMQPEventClass do
@moduledoc """
Classification of events pertaining to amqp channels including:
* channel connections
* channel disconnects
* channel errors
"""
@behaviour FarmbotTelemetry.EventClass
@impl FarmbotTelemetry.EventClass
def matrix() do
channel_list = [
:auto_sync,
:celery_script,
:bot_state,
:logs,
:nerves_hub
]
[
channel_connect: channel_list,
channel_disconnect: channel_list,
channel_error: channel_list
]
end
end