'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
    metric_objects = []
    for (metric_name, metric_value) in self.metrics.items():
        if (type(metric_value) == float):
            metric_type = 'float'
        elif ((type(metric_value) == int) or (type(metric_value) == long)):
            metric_type = 'int32'
        else:
            metric_type = 'string'
            metric_value = str(metric_value)
        metric_objects.append(MetricObject(metric_name, metric_value, type='int'))
    return metric_objects
