noc.fm.models.alarmclass

Module Contents

noc.fm.models.alarmclass.id_lock
noc.fm.models.alarmclass.handlers_lock
class noc.fm.models.alarmclass.AlarmClass

Bases: mongoengine.document.Document

Alarm class

meta
name
uuid
description
is_unique
discriminator
user_clearable
default_severity
datasources
vars
subject_template
body_template
symptoms
probable_causes
recommended_actions
flap_condition
flap_window
flap_threshold
root_cause
topology_rca
handlers
clear_handlers
plugins
notification_delay
control_time0
control_time1
control_timeN
recover_time
bi_id
category
_id_cache
_bi_id_cache
_name_cache
_handlers_cache
_clear_handlers_cache
config
__str__(self)
classmethod get_by_id(cls, id)
classmethod get_by_bi_id(cls, id)
classmethod get_by_name(cls, name)
get_handlers(self)
get_clear_handlers(self)
save(self, *args, **kwargs)
get_discriminator(self, vars)

Calculate discriminator hash

Parameters:vars – Dict of vars
Returns:Discriminator hash
to_json(self)
get_json_path(self)
get_notification_delay(self)
get_control_time(self, reopens)