<?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: How do I get the total number of queries run per day on a databricks SQL warehouse/endpoint? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-the-total-number-of-queries-run-per-day-on-a/m-p/13186#M7900</link>
    <description>&lt;P&gt;Hi there @Sravan Burla​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2022 10:17:53 GMT</pubDate>
    <dc:creator>Vidula</dc:creator>
    <dc:date>2022-09-05T10:17:53Z</dc:date>
    <item>
      <title>How do I get the total number of queries run per day on a databricks SQL warehouse/endpoint?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-the-total-number-of-queries-run-per-day-on-a/m-p/13184#M7898</link>
      <description>&lt;P&gt;I am trying to access the API: &lt;/P&gt;&lt;P&gt;GET &lt;A href="https://&amp;lt;databricks-instance&amp;gt;.cloud.databricks.com/api/2.0/sql/history/queries" target="test_blank"&gt;https://&amp;lt;databricks-instance&amp;gt;.cloud.databricks.com/api/2.0/sql/history/queries&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 12:24:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-get-the-total-number-of-queries-run-per-day-on-a/m-p/13184#M7898</guid>
      <dc:creator>207474</dc:creator>
      <dc:date>2022-07-18T12:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the total number of queries run per day on a databricks SQL warehouse/endpoint?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-the-total-number-of-queries-run-per-day-on-a/m-p/13185#M7899</link>
      <description>&lt;P&gt;Use the above API with HTTP security scheme type. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://&amp;lt;db_worksapce&amp;gt;.cloud.databricks.com/api/2.0/sql/history/queries" target="test_blank"&gt;http://&amp;lt;db_worksapce&amp;gt;.cloud.databricks.com/api/2.0/sql/history/queries&lt;/A&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Create a PAT Token in warehouse and use it for bearer token.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say you want to generate your report for 13th July +0 UTC and 14th July +0 UTC.&lt;/P&gt;&lt;P&gt;Start time: Jul 13 2022 00:00:00 - start_time_ms: 1657720800000&lt;/P&gt;&lt;P&gt;End time: Jul 14 2022 00:00:00 - end_time_ms: 1657756800000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your request will look like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;{
    "filter_by": {
        "query_start_time_range": {
            "end_time_ms": 1657756800000,
            "start_time_ms": 1657720800000
&amp;nbsp;
    },
    "statuses":["FINISHED","FAILED"],
    "warehouse_ids":
        [
            "&amp;lt;warehouse_id&amp;gt;"
        ]
    },
    "include_metrics": true,
    "max_results": 100
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In response from the API, the number of entries inside "res" is equal to number of queries run per day on your provided warehouse_id.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 02:28:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-get-the-total-number-of-queries-run-per-day-on-a/m-p/13185#M7899</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2022-07-19T02:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the total number of queries run per day on a databricks SQL warehouse/endpoint?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-the-total-number-of-queries-run-per-day-on-a/m-p/13186#M7900</link>
      <description>&lt;P&gt;Hi there @Sravan Burla​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 10:17:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-get-the-total-number-of-queries-run-per-day-on-a/m-p/13186#M7900</guid>
      <dc:creator>Vidula</dc:creator>
      <dc:date>2022-09-05T10:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the total number of queries run per day on a databricks SQL warehouse/endpoint?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-get-the-total-number-of-queries-run-per-day-on-a/m-p/37618#M26401</link>
      <description>&lt;P&gt;Thank you, you saved my job.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 09:44:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-get-the-total-number-of-queries-run-per-day-on-a/m-p/37618#M26401</guid>
      <dc:creator>ChristinaSmith</dc:creator>
      <dc:date>2023-08-08T09:44:59Z</dc:date>
    </item>
  </channel>
</rss>

