> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# exportQueryMetrics

<div className="kinetica-doxygen">
  <div id="a6df9ad317c7d2a3d64d8ac8458714ee8" />

  <h2 className="memtitle"><span className="permalink"><a href="#a6df9ad317c7d2a3d64d8ac8458714ee8">◆ </a></span>exportQueryMetrics() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">ExportQueryMetricsResponse</a> gpudb::GPUdb::exportQueryMetrics </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsRequest">ExportQueryMetricsRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Export query metrics to a given destination. </p>
      <p>Returns query metrics.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a43c34114c40250de0da0d9d648a17c2b" />

  <h2 className="memtitle"><span className="permalink"><a href="#a43c34114c40250de0da0d9d648a17c2b">◆ </a></span>exportQueryMetrics() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">ExportQueryMetricsResponse</a> & gpudb::GPUdb::exportQueryMetrics </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsRequest">ExportQueryMetricsRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">ExportQueryMetricsResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Export query metrics to a given destination. </p>
      <p>Returns query metrics.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a1fa54ce032273e8e7d62caa01d88af62" />

  <h2 className="memtitle"><span className="permalink"><a href="#a1fa54ce032273e8e7d62caa01d88af62">◆ </a></span>exportQueryMetrics() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">ExportQueryMetricsResponse</a> gpudb::GPUdb::exportQueryMetrics </td>
          <td>(</td>
          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Export query metrics to a given destination. </p>
      <p>Returns query metrics.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#aade85b5b230b4d8c4301356d7a962aa7">export\_query\_metrics\_expression</a>: Filter for multi query export. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a9b8dd02a4def79053665f2b16a617070">export\_query\_metrics\_filepath</a>: Path to export target specified as a filename or existing directory. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a2805c8a7d3df4107088cb3c859abb9c1">export\_query\_metrics\_format</a>: Specifies which format to export the metrics. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#abd80d36cace6010a3c6511854ee39b9d">export\_query\_metrics\_json</a>: Generic JSON output. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5a1d553c5ed97b126c390efa90ee20a5">export\_query\_metrics\_json\_trace\_event</a>: Chromium/Perfetto trace event format. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#abd80d36cace6010a3c6511854ee39b9d">export\_query\_metrics\_json</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#adb56aa483088e107cf88ed2a3fb7f27d">export\_query\_metrics\_job\_id</a>: Export query metrics for the currently running job. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a7467a31b2588b2e852140d0a6d902713">export\_query\_metrics\_limit</a>: Record limit per file for multi query export. </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a292947b6dc2f76450057d3cfdf279d3e" />

  <h2 className="memtitle"><span className="permalink"><a href="#a292947b6dc2f76450057d3cfdf279d3e">◆ </a></span>exportQueryMetrics() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">ExportQueryMetricsResponse</a> & gpudb::GPUdb::exportQueryMetrics </td>
          <td>(</td>
          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">ExportQueryMetricsResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Export query metrics to a given destination. </p>
      <p>Returns query metrics.</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#aade85b5b230b4d8c4301356d7a962aa7">export\_query\_metrics\_expression</a>: Filter for multi query export. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a9b8dd02a4def79053665f2b16a617070">export\_query\_metrics\_filepath</a>: Path to export target specified as a filename or existing directory. </li>

                  <li>
                    <a className="el" href="/content/api/cpp/namespacegpudb#a2805c8a7d3df4107088cb3c859abb9c1">export\_query\_metrics\_format</a>: Specifies which format to export the metrics. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#abd80d36cace6010a3c6511854ee39b9d">export\_query\_metrics\_json</a>: Generic JSON output. </li>
                      <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5a1d553c5ed97b126c390efa90ee20a5">export\_query\_metrics\_json\_trace\_event</a>: Chromium/Perfetto trace event format. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cpp/namespacegpudb#abd80d36cace6010a3c6511854ee39b9d">export\_query\_metrics\_json</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#adb56aa483088e107cf88ed2a3fb7f27d">export\_query\_metrics\_job\_id</a>: Export query metrics for the currently running job. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a7467a31b2588b2e852140d0a6d902713">export\_query\_metrics\_limit</a>: Record limit per file for multi query export. </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1ExportQueryMetricsResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
