Google\Cloud\Logging\LoggingClient::metric PHP Method

metric() public method

Example: $metric = $logging->metric('my-metric'); echo $metric->name();
public metric ( string $name ) : Metric
$name string The name of the metric.
return Metric
    public function metric($name)
    {
        return new Metric($this->connection, $name, $this->projectId);
    }