Introduce new Metric class

There is a 1-to-many relationship between a metric and its data. The metric id,
tenant id, and attributes belong to the metric. I have only implemented the
many-to-1 side of the relationship since we are normally dealing with the data.