Google\Cloud\Logging\Connection\Grpc::createMetric PHP Method

createMetric() public method

public createMetric ( array $args = [] ) : array
$args array
return array
    public function createMetric(array $args = [])
    {
        $pbMetric = (new LogMetric())->deserialize($this->pluckArray($this->metricKeys, $args), $this->codec);
        return $this->send([$this->metricsClient, 'createLogMetric'], [$this->pluck('parent', $args), $pbMetric, $args]);
    }