Alarmist.Handler (alarmist v0.2.2)

View Source

Alarm handler

Summary

Functions

Registers a new alarm rule at runtime, registering rules with application config is preferred over this.

Functions

add_synthetic_alarm(alarm_id, compiled_rules)

@spec add_synthetic_alarm(Alarmist.alarm_id(), Alarmist.compiled_rules()) :: :ok

get_state()

@spec get_state() :: Alarmist.Engine.t()

handle_event(arg, state)

Registers a new alarm rule at runtime, registering rules with application config is preferred over this.

remove_synthetic_alarm(alarm_id)

@spec remove_synthetic_alarm(Alarmist.alarm_id()) :: :ok

synthetic_alarm_ids()

@spec synthetic_alarm_ids() :: [Alarmist.alarm_id()]