(self)
Yields a dict for each analyzer status.
Yields a dict for each analyzer status.
Yields a dict for each analyzer status .
def _get_status_data(self):
        """Yields a dict for each analyzer status."""
        data = self._fetch_data()
        for entry in data.get('analyzers', []):
            yield {
                'log': entry.get('log', 'No recorded logs.'),
                'name': entry.get('name', 'No Name'),
                'results': entry.get('results', ''),
                'status': entry.get('status', 'Unknown'),
                'date': entry.get(
                    'status_date', datetime.datetime.utcnow().isoformat()),
            }
def _get_status_data ( self ) : data = self . _fetch_data ( ) for entry in data . get ( 'analyzers' , [ ] ) : yield { 'log' : entry . get ( 'log' , 'No recorded logs.' ) , 'name' : entry . get ( 'name' , 'No Name' ) , 'results' : entry . get ( 'results' , '' ) , 'status' : entry . get ( 'status' , 'Unknown' ) , 'date' : entry . get ( 'status_date' , datetime . datetime . utcnow ( ) . isoformat ( ) ) , }