noc.fm.models.eventclass

Module Contents

noc.fm.models.eventclass.id_lock
noc.fm.models.eventclass.handlers_lock
class noc.fm.models.eventclass.EventClassVar

Bases: mongoengine.document.EmbeddedDocument

meta
name
description
type
required
__str__(self)
__eq__(self, other)
class noc.fm.models.eventclass.EventDispositionRule

Bases: mongoengine.document.EmbeddedDocument

meta
name
condition
managed_object
action
alarm_class
combo_condition
combo_window
combo_count
combo_event_classes
var_mapping
stop_disposition
__str__(self)
__eq__(self, other)
class noc.fm.models.eventclass.EventSuppressionRule

Bases: mongoengine.document.EmbeddedDocument

meta
name
condition
event_class
match_condition
window
suppress
__str__(self)
__eq__(self, other)
class noc.fm.models.eventclass.EventPlugin

Bases: mongoengine.document.EmbeddedDocument

meta
name
config
__str__(self)
class noc.fm.models.eventclass.EventClassCategory

Bases: mongoengine.document.Document

meta
name
parent
__str__(self)
save(self, *args, **kwargs)
class noc.fm.models.eventclass.EventClass

Bases: mongoengine.document.Document

Event class

meta
name
uuid
description
action
vars
subject_template
body_template
symptoms
probable_causes
recommended_actions
disposition
repeat_suppression
deduplication_window
ttl
handlers
plugins
category
_id_cache
_name_cache
_handlers_cache
display_action
__str__(self)
classmethod get_by_id(cls, id)
classmethod get_by_name(cls, name)
get_handlers(self)
save(self, *args, **kwargs)
to_json(self)
get_json_path(self)
noc.fm.models.eventclass.rx_rule_name_quote
noc.fm.models.eventclass.rulename_quote(s)
Convert arbitrary string to pyrule name
>>> rulename_quote("Unknown | Default")
'Unknown_Default'