Create and update a metric.
Fixed bad method name
Fix function name
Merge pull request #40 from jbrooksuk/metric-api

Create and update a metric.