Package ZenModel :: Module ZenStatus :: Class YearlyDownTime
[hide private]
[frames] | no frames]

Class YearlyDownTime

source code

Globals.Persistent --+
                     |
                    YearlyDownTime

this would take less space as a dict with but it would take longer to query not sure which is better going with faster and bigger :)

Instance Methods [hide private]
 
__init__(self) source code
 
addDaily(self, dailydown)
add the daily down time for a day
source code
 
getDownTime(self, start=None, end=None)
get the down time in seconds over a date range, dates are DateTime
source code