<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get Dashboard/Widget value from Cortex XSOAR in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-dashboard-widget-value-from-cortex-xsoar/m-p/515661#M1221</link>
    <description>&lt;P&gt;Thanks. I am able to get the value through API query.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 01:19:50 GMT</pubDate>
    <dc:creator>ce13</dc:creator>
    <dc:date>2022-09-22T01:19:50Z</dc:date>
    <item>
      <title>Get Dashboard/Widget value from Cortex XSOAR</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-dashboard-widget-value-from-cortex-xsoar/m-p/515562#M1215</link>
      <description>&lt;P&gt;I created API key in setting and trying to get the dashboard/widget value (e.g. Playbook runs) from XSOAR but failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ce13_0-1663730334768.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44047iB3FBDDC97716C90A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ce13_0-1663730334768.png" alt="ce13_0-1663730334768.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the API guideline, there is no example of body parameters in "Get Dashboard Statistics" or "Get Widget Statistics", so I have no idea what should I input in order to get the value. Would someone please help for this? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 03:22:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-dashboard-widget-value-from-cortex-xsoar/m-p/515562#M1215</guid>
      <dc:creator>ce13</dc:creator>
      <dc:date>2022-09-21T03:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Dashboard/Widget value from Cortex XSOAR</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-dashboard-widget-value-from-cortex-xsoar/m-p/515599#M1220</link>
      <description>&lt;P&gt;The parameter to the "Get Widget Statistics" API is a JSON object representing the widget. This object can be downloaded from the XSOAR GUI. When you are editing your widget there is a button at the bottom to download the widget as JSON.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tyler_bailey_0-1663763492899.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44060iC528DF539C72B3C6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="tyler_bailey_0-1663763492899.png" alt="tyler_bailey_0-1663763492899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This JSON file can then be used as the data to a POST request to /v2/statistics/widgets/query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example widget JSON object:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "id": "03b886ce-b254-4c70-8630-74231edf1170",
    "version": 1,
    "cacheVersn": 0,
    "modified": "2022-05-31T12:49:27.330990346Z",
    "packID": "",
    "packName": "",
    "itemVersion": "",
    "fromServerVersion": "",
    "toServerVersion": "",
    "propagationLabels": [
        "all"
    ],
    "definitionId": "",
    "vcShouldIgnore": false,
    "vcShouldKeepItemLegacyProdMachine": false,
    "commitMessage": "",
    "shouldCommit": false,
    "Cache": null,
    "name": "Rate Limited API Calls",
    "prevName": "Rate Limited API Calls",
    "dataType": "metrics",
    "widgetType": "number",
    "query": "type:integration and apiResponseType:QuotaError",
    "isPredefined": false,
    "dateRange": {
        "fromDate": "0001-01-01T00:00:00Z",
        "toDate": "0001-01-01T00:00:00Z",
        "period": {
            "by": "",
            "byTo": "",
            "byFrom": "days",
            "toValue": null,
            "fromValue": 7,
            "field": ""
        },
        "fromDateLicense": "0001-01-01T00:00:00Z"
    },
    "params": {
        "keys": [
            "sum|totalAPICalls"
        ],
        "valuesFormat": "abbreviated"
    },
    "category": ""
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using that JSON object to query the API:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ curl -k -X POST https://xsoar.local/v2/statistics/widgets/query --header "Authorization:&amp;lt;APIKEY&amp;gt;" --header "Content-Type:application/json" -d @widget.json
0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 12:36:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-dashboard-widget-value-from-cortex-xsoar/m-p/515599#M1220</guid>
      <dc:creator>tyler_bailey</dc:creator>
      <dc:date>2022-09-21T12:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Dashboard/Widget value from Cortex XSOAR</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-dashboard-widget-value-from-cortex-xsoar/m-p/515661#M1221</link>
      <description>&lt;P&gt;Thanks. I am able to get the value through API query.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 01:19:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/get-dashboard-widget-value-from-cortex-xsoar/m-p/515661#M1221</guid>
      <dc:creator>ce13</dc:creator>
      <dc:date>2022-09-22T01:19:50Z</dc:date>
    </item>
  </channel>
</rss>

