<?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: Retrieve license consumption for a longer period of time in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197554#M2110</link>
    <description>&lt;P&gt;If you are on managed - the most precise method is to use the data in the zip file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For individual environment or saas I use this&amp;nbsp;&lt;A href="https://github.com/Alanata-a-s/Dynatrace-License-Reporting-Scripts" target="_self"&gt;script&lt;/A&gt;&amp;nbsp;to push license metric bound to individual hosts. It uses the &lt;SPAN&gt;/api/v1/oneagents API to pull consumption and then push the metric value back to the environment. Then you have the license metric in your environment and you can report consumption simply using Data Explorer by filtering on hosts or management zones as you prefer.&lt;BR /&gt;&lt;BR /&gt;Also, the recent version notifies you if some of your hosts are disabled due to overconsumption.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 20:58:29 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2022-11-01T20:58:29Z</dc:date>
    <item>
      <title>Retrieve license consumption for a longer period of time</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197547#M2107</link>
      <description>&lt;P&gt;I've read the&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/cluster-api/cluster-api-v2/license/get-retrieve-license-consumption" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&amp;nbsp;for retrieving license consumption via API but the endpoint "/api/cluster/v2/license/consumption/hour" only retrieves the latest hour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to edit the URL to retrieve data for the last say week/month/year?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example provided in the documentation, you can specify a starting timestamp. Are there other parameters you can filter for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I can export the data but that's in a zip file and I prefer to have updated data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: I'm a beginner at this stuff any help is appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 09:55:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197547#M2107</guid>
      <dc:creator>paulito</dc:creator>
      <dc:date>2022-11-02T09:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve license consumption for a longer period of time</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197550#M2108</link>
      <description>&lt;P&gt;What is your scope? are you looking for overall consumption? Hosts/entities individually?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:58:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197550#M2108</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2022-11-01T19:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve license consumption for a longer period of time</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197551#M2109</link>
      <description>&lt;P&gt;Individual entity consumption&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 20:00:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197551#M2109</guid>
      <dc:creator>paulito</dc:creator>
      <dc:date>2022-11-01T20:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve license consumption for a longer period of time</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197554#M2110</link>
      <description>&lt;P&gt;If you are on managed - the most precise method is to use the data in the zip file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For individual environment or saas I use this&amp;nbsp;&lt;A href="https://github.com/Alanata-a-s/Dynatrace-License-Reporting-Scripts" target="_self"&gt;script&lt;/A&gt;&amp;nbsp;to push license metric bound to individual hosts. It uses the &lt;SPAN&gt;/api/v1/oneagents API to pull consumption and then push the metric value back to the environment. Then you have the license metric in your environment and you can report consumption simply using Data Explorer by filtering on hosts or management zones as you prefer.&lt;BR /&gt;&lt;BR /&gt;Also, the recent version notifies you if some of your hosts are disabled due to overconsumption.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 20:58:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197554#M2110</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-11-01T20:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve license consumption for a longer period of time</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197660#M2115</link>
      <description>&lt;P&gt;The consumption data in the zip file is actually not correct. It often outputs wrong hostunit / consumption values, or at least it used to. That's one of the reasons we couldn't use it. In a support case I was told I am not to rely on that data - so I would not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same with the consumedHostUnits value in the API, this often does not reflect the real value. That was an issue since we have to get the costs of individual hosts for our actual accounting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That may be fixed by now, it was a year ago, but that was an issue for us internally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We ended up writing a script taking the paasMemoryLimit / zosTotalPhysicalMemory and applying the calculations ourselves depending on the mode the hosts (infrastructure, fullstack).&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 01:30:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197660#M2115</guid>
      <dc:creator>STiAT</dc:creator>
      <dc:date>2022-11-03T01:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve license consumption for a longer period of time</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197669#M2118</link>
      <description>&lt;P&gt;We never had issues with either the zip file or the API (OneAgent API). Both are reporting correct host units. I'd stay away from calculating that on your own unless you know the details such as memory tolerance. (Yes there is some tolerance).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 08:42:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/197669#M2118</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-12-16T08:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve license consumption for a longer period of time</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/201094#M2225</link>
      <description>&lt;P&gt;I am looking for Hosts/entities individually in the SAAS environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 09:46:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/201094#M2225</guid>
      <dc:creator>Ishwar_Jadhav</dc:creator>
      <dc:date>2022-12-27T09:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve license consumption for a longer period of time</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/203602#M2272</link>
      <description>&lt;P&gt;We didn't, and I even have a support call which confirms that, even with a statement made we are not to rely on that data. I'd have to re-check that though if that situation changed. We actually implemented the calculation ourselves because of that.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 00:41:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Retrieve-license-consumption-for-a-longer-period-of-time/m-p/203602#M2272</guid>
      <dc:creator>STiAT</dc:creator>
      <dc:date>2023-01-28T00:41:16Z</dc:date>
    </item>
  </channel>
</rss>

