added method examples, refactored Metric::post_metric