예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def lastTime(self):
     return isoDateTimeFromMilli(self._event_summary['last_seen_time'])
예제 #4
0
 def stateChange(self):
     return isoDateTimeFromMilli(self._event_summary['status_change_time'])
예제 #5
0
 def firstTime(self):
     return isoDateTimeFromMilli(self._event_summary['first_seen_time'])
예제 #6
0
 def stateChange(self):
     return isoDateTimeFromMilli(self._event_summary['status_change_time'])