noc.maintenance.models.maintenance

Module Contents

noc.maintenance.models.maintenance.id_lock
class noc.maintenance.models.maintenance.MaintenanceObject

Bases: mongoengine.document.EmbeddedDocument

object
class noc.maintenance.models.maintenance.MaintenanceSegment

Bases: mongoengine.document.EmbeddedDocument

segment
class noc.maintenance.models.maintenance.Maintenance

Bases: mongoengine.document.Document

meta
type
subject
description
start
stop
is_completed
contacts
suppress_alarms
escalate_managed_object
time_pattern
direct_objects
direct_segments
affected_objects
escalation_tt
_id_cache
classmethod get_by_id(cls, id)
save(self, *args, **kwargs)
on_save(self)
update_affected_objects(self)

Calculate and fill affected objects

classmethod currently_affected(cls)

Returns a list of currently affected object ids

classmethod get_object_maintenance(cls, mo)

Returns a list of active maintenance for object :param mo: Managed Object instance :return: List of Maintenance instances or empty list