<?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: Synthetic monitoring Availability  - Metrics API response in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190431#M1408</link>
    <description>&lt;P&gt;Hey Balamurugesh,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you request the data in CSV format you will get get a date/time format as seen in my screenshot below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_1-1657687700301.png" style="width: 588px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6548i8F6BA59EA42647C7/image-dimensions/588x25?v=v2" width="588" height="25" role="button" title="Fin_Ubels_1-1657687700301.png" alt="Fin_Ubels_1-1657687700301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My example query looks like the following.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_2-1657687835770.png" style="width: 529px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6549iC5F8ABB0F5916E60/image-dimensions/529x115?v=v2" width="529" height="115" role="button" title="Fin_Ubels_2-1657687835770.png" alt="Fin_Ubels_2-1657687835770.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The docs for querying metrics can be found below with an example for the CSV format at the bottom.&lt;BR /&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-data-points#tabgroup--examples--aggregated-data-point" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-data-points#tabgroup--examples--aggregated-data-point&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I can't see a way to request the time in a date/time format when getting a response in json.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 04:53:59 GMT</pubDate>
    <dc:creator>Fin_Ubels</dc:creator>
    <dc:date>2022-07-13T04:53:59Z</dc:date>
    <item>
      <title>Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190412#M1407</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get monthwise availaibity metrics of synthetics monitors using Synthetic API, but in response, am getting timestamps in UNIX format. Is there is way to get it in DD-MM-YY format or human understandable format?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 20:06:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190412#M1407</guid>
      <dc:creator>Balamurugesh</dc:creator>
      <dc:date>2022-07-12T20:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190431#M1408</link>
      <description>&lt;P&gt;Hey Balamurugesh,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you request the data in CSV format you will get get a date/time format as seen in my screenshot below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_1-1657687700301.png" style="width: 588px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6548i8F6BA59EA42647C7/image-dimensions/588x25?v=v2" width="588" height="25" role="button" title="Fin_Ubels_1-1657687700301.png" alt="Fin_Ubels_1-1657687700301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My example query looks like the following.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_2-1657687835770.png" style="width: 529px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6549iC5F8ABB0F5916E60/image-dimensions/529x115?v=v2" width="529" height="115" role="button" title="Fin_Ubels_2-1657687835770.png" alt="Fin_Ubels_2-1657687835770.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The docs for querying metrics can be found below with an example for the CSV format at the bottom.&lt;BR /&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-data-points#tabgroup--examples--aggregated-data-point" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-data-points#tabgroup--examples--aggregated-data-point&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I can't see a way to request the time in a date/time format when getting a response in json.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 04:53:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190431#M1408</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2022-07-13T04:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190432#M1409</link>
      <description>&lt;P&gt;No! currently there is no way you can get that response change from api. You can use a post processor script.&lt;/P&gt;&lt;P&gt;Also check &lt;A href="https://community.dynatrace.com/t5/REST-API/API-call-with-exact-timestamps/m-p/183910#M1807" target="_self"&gt;this solution&lt;/A&gt; if helps&lt;/P&gt;&lt;P&gt;RFE in place&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/REST-API/RFE-Dynatrace-API-can-specific-timezone-using-relative-timeframe/m-p/122479" target="_blank"&gt;RFE - Dynatrace API can specific timezone using relative timeframe parameters - Dynatrace Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 05:05:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190432#M1409</guid>
      <dc:creator>techean</dc:creator>
      <dc:date>2022-07-13T05:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190516#M1410</link>
      <description>&lt;P&gt;thanks for the details. When i query metrics API, am getting monitor Id's in response. Is there a way to get monitorName instead of monitorId in response?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:56:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190516#M1410</guid>
      <dc:creator>Balamurugesh</dc:creator>
      <dc:date>2022-07-13T14:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190552#M1411</link>
      <description>&lt;P&gt;If you have a look at the screenshots I posted you can get the name by adding&amp;nbsp;&lt;STRONG&gt;:names&lt;/STRONG&gt;&amp;nbsp;to your metric query. As you can see in the CSV response for my query the name of my http monitor is Recipe API.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 22:38:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/190552#M1411</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2022-07-13T22:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/191187#M1420</link>
      <description>&lt;P&gt;hi Fin, I have tied each synthetic monitor with respective application. Am looking for application name as well in response.&amp;nbsp;Is there a way to get the tied Application name in response?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,Dingu&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 13:19:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/191187#M1420</guid>
      <dc:creator>Balamurugesh</dc:creator>
      <dc:date>2022-07-22T13:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/191228#M1421</link>
      <description>&lt;P&gt;If you tied the application name to the synthetic with tags, as far as I can tell that isn't possible without making another request to get the details on the synthetic in question. Using the returned synthetic ID you can query the synthetic API to get all details including tags.&lt;BR /&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/synthetic/synthetic-monitors/get-a-monitor" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/synthetic/synthetic-monitors/get-a-monitor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_0-1658707438334.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6726i425716C13A100903/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_0-1658707438334.png" alt="Fin_Ubels_0-1658707438334.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_1-1658707481440.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6727i84E88C24AA861B23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_1-1658707481440.png" alt="Fin_Ubels_1-1658707481440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 00:08:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/191228#M1421</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2022-07-25T00:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/191354#M1427</link>
      <description>&lt;P&gt;Is there any possibility to get the application details in metrics API call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 17:01:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/191354#M1427</guid>
      <dc:creator>Balamurugesh</dc:creator>
      <dc:date>2022-07-25T17:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/191379#M1428</link>
      <description>&lt;P&gt;Not that I can find unfortunately unless you used a synthetic naming scheme that used the applications name since the synthetic name is provided in the query response.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 07:13:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/191379#M1428</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2022-07-26T07:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/205992#M1726</link>
      <description>&lt;P&gt;hi Fin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using below curl request to pull synthetic monitors availability metrics for a month.&lt;/P&gt;&lt;P&gt;curl -X GET "&lt;A href="https://abc.dynatrace.com/api/v2/metrics/query?metricSelector=builtin%3Asynthetic.browser.availability.location.total%3A%20splitBy%28%22dt.entity.synthetic_test%22%29%3Anames%3Alast%3A%20default%280%29&amp;amp;resolution=1M&amp;amp;from=now-1M&amp;amp;entitySelector=mzName%28%22mzName1%22%2C%20%22mzName2%22%29%2Ctype%28%22SYNTHETIC_TEST%22" target="_blank" rel="noopener noreferrer"&gt;https://abc.dynatrace.com/api/v2/metrics/query?metricSelector=builtin%3Asynthetic.browser.availabili...&lt;/A&gt;" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token apiKey"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i run this query today, am getting data for march month. what should i update in the query to get previous month (FEb month)availability data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;bala&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 14:58:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/205992#M1726</guid>
      <dc:creator>Balamurugesh</dc:creator>
      <dc:date>2023-03-01T14:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Synthetic monitoring Availability  - Metrics API response</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/206048#M1727</link>
      <description>&lt;P&gt;Hey Bala,&lt;BR /&gt;You need to modify the timeframe selector in your query. There is a cheat sheet for it in DT when you expand the selector input. I would suggest reading into the examples in there as well as looking into the docs as it's very useful for building out complex dashboards and reports relying on the API.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_0-1677711420470.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/10227iFB8FB8D0C4F5F7AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fin_Ubels_0-1677711420470.png" alt="Fin_Ubels_0-1677711420470.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What you're looking for is "&lt;SPAN&gt;&amp;amp;from=now-1M/M&amp;amp;to=now/M" which specifies from now minus 1 month, then rounding to the nearest month. Then it goes to now rounded to the nearest month. So it would round from the beginning of Feb to the beginning of March.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 23:02:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Synthetic-monitoring-Availability-Metrics-API-response/m-p/206048#M1727</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2023-03-01T23:02:15Z</dc:date>
    </item>
  </channel>
</rss>

