'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 = float(duration)
    return [MetricObject('http_1xx', (self.http_1xx / self.duration), 'Responses    per    sec'), MetricObject('http_2xx', (self.http_2xx / self.duration), 'Responses    per    sec'), MetricObject('http_3xx', (self.http_3xx / self.duration), 'Responses    per    sec'), MetricObject('http_4xx', (self.http_4xx / self.duration), 'Responses    per    sec'), MetricObject('http_5xx', (self.http_5xx / self.duration), 'Responses    per    sec')]
