Google\Cloud\Tests\Logging\MetricTest::getMetric PHP Method

getMetric() public method

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