Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
please use the tagged form of the compact literal

= state.Metric{
Key: metric.Key,
Value: metric.Value,
Time: metric.Time,
}