metrics[] = [ 'key' => $key, 'value' => $value, ]; return $this; } /** * Sends metrics to the usage worker. * * @return string|bool */ public function trigger(): string|bool { $client = new Client($this->queue, $this->connection); return $client->enqueue([ 'project' => $this->getProject(), 'metrics' => $this->metrics, ]); } }