make send_metrics class method