noc.pm.models.thresholdprofile

Module Contents

noc.pm.models.thresholdprofile.id_lock
class noc.pm.models.thresholdprofile.ThresholdConfig

Bases: mongoengine.document.EmbeddedDocument

op
value
clear_op
clear_value
alarm_class
open_event_class
close_event_class
open_handler
close_handler
template
name
__str__(self)
is_open_match(self, value)

Check if threshold profile is matched for open condition :param value: :return:

is_clear_match(self, value)

Check if threshold profile is matched for clear condition :param value: :return:

class noc.pm.models.thresholdprofile.ThresholdProfile

Bases: mongoengine.document.Document

meta
name
description
umbrella_filter_handler
window_type
window
window_function
window_config
thresholds
_id_cache
__str__(self)
classmethod get_by_id(cls, id)
get_window_function(self)

Returns window funciton or None if invalid name given :returns: Callable or None

find_threshold(self, name)

Find Threshold Config by name :param name: Threshold name :return: ThresholdConfig or None