public function getMetric($connection, array $data = []) { return new Metric($connection->reveal(), $this->metricName, $this->projectId, $data); }