07 Nov 2018 12:09 AM
We are integrating jenkins and Dynatrace before deployment we want check health of the particular host for last 2hrs or 30 mins etc. How can we use Dynatrace API to achieve this?
Solved! Go to Solution.
07 Nov 2018 08:08 AM
You can fetch all host related metrics including availability timeseries through our Dynatrace timeseries API. See help page here:
https://www.dynatrace.com/support/help/dynatrace-api/environment/timeseries-api/read-data-points-of-metrics-via-api/
07 Nov 2018 09:13 PM
we are getting timeseries of all the host for past 30mins or 2hrs. I want to confined to specific host only.
12 Nov 2018 05:57 AM
Yes. you can get the same.
/api/v1/entity/infrastructure/hosts?Api-Token=token
/api/v1/timeseries?api-token=token timeseriesId=com.dynatrace.builtin:host.availability.percent&relativeTime=month&queryMode=total&entity=<entityID>