Simplify error representation.
Add PutMetricData implementation.