'Run any necessary calculations on the data collected from the logs
and return a list of metric objects.'

def get_state(self, duration):

    self.duration = (duration / 10.0)
    return [MetricObject('notice', (self.notice / self.duration), 'Logs    per    10    sec'), MetricObject('warn', (self.warn / self.duration), 'Logs    per    10    sec'), MetricObject('error', (self.error / self.duration), 'Logs    per    10    sec'), MetricObject('crit', (self.crit / self.duration), 'Logs    per    10    sec'), MetricObject('other', (self.other / self.duration), 'Logs    per    10    sec')]
