noc.fm.models.uptime

Module Contents

noc.fm.models.uptime.logger
class noc.fm.models.uptime.Uptime

Bases: mongoengine.document.Document

meta
object
start
stop
last
last_value
SEC
FWRAP
WRAP
WPREC = 0.1
__str__(self)
classmethod is_reboot(cls, old_uptime, new_uptime)

Returns true if reboot detected :param old_uptime: :param new_uptime: :return:

classmethod register(cls, managed_object, uptime)

Register uptime :param managed_object: Managed object reference :param uptime: Registered uptime in seconds :returns: False, if object has been rebooted, True otherwise