noc.cm.models.validationrule

Module Contents

noc.cm.models.validationrule.logger
noc.cm.models.validationrule.A_DISABLE =
noc.cm.models.validationrule.A_INCLUDE = I
noc.cm.models.validationrule.A_EXCLUDE = X
noc.cm.models.validationrule.ACTIONS = [None, None, None]
class noc.cm.models.validationrule.SelectorItem

Bases: mongoengine.document.EmbeddedDocument

selector
action
__str__(self)
class noc.cm.models.validationrule.ObjectItem

Bases: mongoengine.document.EmbeddedDocument

object
action
__str__(self)
class noc.cm.models.validationrule.ValidationRule

Bases: mongoengine.document.Document

meta
name
is_active
description
selectors_list
objects_list
handler
config
__str__(self)
is_applicable_for(self, object)

Check rule is applicable for managed object

get_handler(self)
classmethod on_delete(cls, sender, document, **kwargs)