def log(self): logs = [] if 'notes' in self._event_summary: self._event_summary['notes'].sort(key=lambda a:a['created_time'], reverse=True) for note in self._event_summary['notes']: logs.append((note['user_name'], isoDateTimeFromMilli(note['created_time']), note['message'])) return logs
def lastTime(self): return isoDateTimeFromMilli(self._event_summary['last_seen_time'])
def stateChange(self): return isoDateTimeFromMilli(self._event_summary['status_change_time'])
def firstTime(self): return isoDateTimeFromMilli(self._event_summary['first_seen_time'])