<?php

/**
 * Matomo - free/libre analytics platform
 *
 * @link    https://matomo.org
 * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 */

declare(strict_types=1);

namespace Piwik\Plugins\BotTracking\Reports;

use Piwik\Piwik;
use Piwik\Plugin\Report;
use Piwik\Plugins\BotTracking\Columns\DocumentUrl;
use Piwik\Plugins\BotTracking\Columns\Metrics\Requests;
use Piwik\Plugins\BotTracking\Metrics;

class GetDocumentUrlsForAIChatbot extends Report
{
    protected function init(): void
    {
        parent::init();

        $this->name             = Piwik::translate('BotTracking_AIChatbotsReportTitle');
        $this->categoryId       = 'General_AIAssistants';
        $this->metrics          = [new Requests()];
        $this->processedMetrics = [];
        $this->dimension        = new DocumentUrl();
        $this->isSubtableReport = true;
    }

    /**
     * @return array<string, string>
     */
    public function getMetricNamesToProcessReportTotals()
    {
        return [Metrics::COLUMN_REQUESTS => Metrics::COLUMN_REQUESTS];
    }
}
