noc.fm.models.alarmseverity

Module Contents

noc.fm.models.alarmseverity.id_lock
class noc.fm.models.alarmseverity.AlarmSeverity

Bases: mongoengine.document.Document

Alarm severities

meta
name
uuid
description
severity
style
min_weight
sound
volume
_id_cache
_css_cache
_order_cache
_weight_cache
__str__(self)
classmethod get_by_id(cls, id)
classmethod get_ordered(cls)

Returns list of severities ordered in acvending order :return:

classmethod get_weights(cls)

Returns list of (weight, alpha) :return:

classmethod get_severity(cls, severity)

Returns Alarm Severity instance corresponding to numeric value

classmethod get_severity_css_class_name(cls, severity)
get_json_path(self)
to_json(self)
classmethod severity_for_weight(cls, w)

Calculate absolute severity for given weight w :returns: severity as int