def __init__(self, time, value):
if isinstance(time, types.StringTypes):<EOL><INDENT>time = date_parser.parse(time, fuzzy=True)<EOL><DEDENT>self.time = time<EOL>self.value = value<EOL>
Build a Cube Metric.

        :param time: The timestamp of the metric.
        :type time: str or datetime
        :param data: The computer value for the metric.
        :type data: object