<?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: Metrics API v2 - unit State in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206980#M2348</link>
    <description>&lt;P&gt;In the &lt;A href="https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-get-descriptor#response-body-objects" target="_blank" rel="noopener"&gt;Metric API&lt;/A&gt; it looks like the unit is a string not an array, i have done something for VPN states but (personally) i prefer to use numbers because i can apply more aggregations later. But if your metric Unit is States, then Ok, Trouble and Bad" will be values.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 17:44:26 GMT</pubDate>
    <dc:creator>DanielS</dc:creator>
    <dc:date>2023-03-14T17:44:26Z</dc:date>
    <item>
      <title>Metrics API v2 - unit State</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206966#M2345</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I will enrich the metrics of various hosts using &lt;A href="https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-post-datapoints" target="_self"&gt;Metrics API v2&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the metrics is a state metric: Up, down, surveillance,...&lt;/P&gt;
&lt;P&gt;I can use another API but the Metrics v2 are the only that I found able to send metrics to Hosts and not custom devices.&lt;BR /&gt;&lt;BR /&gt;I know that I can change the unit using&amp;nbsp;dt.meta.unit="State" but now Im facing a wall on how to proceed.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 07:53:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206966#M2345</guid>
      <dc:creator>rdinis</dc:creator>
      <dc:date>2023-03-15T07:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Metrics API v2 - unit State</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206970#M2346</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/58355"&gt;@rdinis&lt;/a&gt; also you can ingest Host metrics through the&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/shortlink/local-api" target="_blank" rel="noopener"&gt;OneAgent Metric API &lt;/A&gt;also have in mind that you have a DDU credit for every HU buyed.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 17:07:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206970#M2346</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2023-03-14T17:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Metrics API v2 - unit State</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206975#M2347</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35788"&gt;@DanielS&lt;/a&gt;&amp;nbsp;thank you for ur answer, they use the same&amp;nbsp;ingestion protocol&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Let me clarify what I'm trying to do. So, I will be using the Metric API and i want to change the metric unit to State.&lt;BR /&gt;&lt;BR /&gt;For extension 1.0 I can see that I need to give the different states:&lt;BR /&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/statemetrics-active-extension#define-states" target="_self"&gt;statemetrics-active-extension&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"states": ["OK", "Troubles", "Bad"],&lt;/LI-CODE&gt;&lt;P&gt;I would like to know if its possible to create a custom metric with a state similar to this example.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 17:20:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206975#M2347</guid>
      <dc:creator>rdinis</dc:creator>
      <dc:date>2023-03-14T17:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Metrics API v2 - unit State</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206980#M2348</link>
      <description>&lt;P&gt;In the &lt;A href="https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-get-descriptor#response-body-objects" target="_blank" rel="noopener"&gt;Metric API&lt;/A&gt; it looks like the unit is a string not an array, i have done something for VPN states but (personally) i prefer to use numbers because i can apply more aggregations later. But if your metric Unit is States, then Ok, Trouble and Bad" will be values.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 17:44:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206980#M2348</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2023-03-14T17:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Metrics API v2 - unit State</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206997#M2349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/58355"&gt;@rdinis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The unit only will change axis label but the metric still will hold a number&amp;nbsp;&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="Yosi_Neuman_3-1678825485961.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/10465iBF7F5C22D1CCEAD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_3-1678825485961.png" alt="Yosi_Neuman_3-1678825485961.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Don't think there is a way to send string to a metric&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 20:28:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-API-v2-unit-State/m-p/206997#M2349</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2023-03-14T20:28:14Z</dc:date>
    </item>
  </channel>
</rss>

