noc.fm.models.alarmdiagnosticconfig

Module Contents

noc.fm.models.alarmdiagnosticconfig.ac_lock
noc.fm.models.alarmdiagnosticconfig.logger
noc.fm.models.alarmdiagnosticconfig.PERIODIC_JOB_MAX_RUNS = 5
class noc.fm.models.alarmdiagnosticconfig.AlarmDiagnosticConfig

Bases: mongoengine.document.Document

meta
name
is_active
description
alarm_class
selector
only_root
enable_on_raise
on_raise_header
on_raise_delay
on_raise_script
on_raise_action
on_raise_handler
enable_periodic
periodic_header
periodic_interval
periodic_script
periodic_action
periodic_handler
enable_on_clear
on_clear_header
on_clear_delay
on_clear_script
on_clear_action
on_clear_handler
_ac_cache
__str__(self)
classmethod get_class_diagnostics(cls, alarm_class)
classmethod on_raise(cls, alarm)

Submit raise and periodic jobs :param alarm: :return:

classmethod on_clear(cls, alarm)

Submit clear jobs :param alarm: :return:

static get_diag(alarm, cfg, state)
noc.fm.models.alarmdiagnosticconfig.on_raise(alarm, cfg, *args, **kwargs)
noc.fm.models.alarmdiagnosticconfig.periodic(alarm, cfg, *args, **kwargs)
noc.fm.models.alarmdiagnosticconfig.on_clear(alarm, cfg, *args, **kwargs)