28 Dec 2023 11:50 PM
hi,
I am looking for an api which will returns total number of minutes or hours applications are down.
Solved! Go to Solution.
29 Dec 2023 07:55 AM
Hi,
I would say that API does not exist but wait for others answers.
You can always raise a product idea about it.
Best regards
29 Dec 2023 06:11 PM
Hello @Balamurugesh as @AntonPineiro says there's no especific API for that, but what you can define is an SLO for an application and use the API to get the error budget. Is the difference between the calculated and target values. A positive number means all is good; a negative number means trouble. Or you can get the percentage.
29 Dec 2023 07:36 PM
You can have this but its only derived via Synthetics. So if your App EasyTravel had a synthetic running, Dynatrace would provide an application availability metric from the synthetic(s) and you could then query the data via API.
29 Dec 2023 07:49 PM
Also you can use the metric API to then gain the availability rate for the applicable underlying infrastructure of the app when applicable. Granted it will be an availability percentage and not down time hours/mins. There use to be synthetic reports that had all that data but thats deprecated
30 Dec 2023 11:15 PM
hi Chad, we are already consuming metric API to get availability % details. I am looking for an alternate API which will provide downtime details directly.
30 Dec 2023 11:45 AM
If you don't have synthetics, as @ChadTurner as suggested, I would say from my experience that Apdex is a good proxy metric for what you are trying to achieve. You would have to control the amount of requests though, and using an SLO might be interesting in this case.
30 Dec 2023 11:06 PM
could you please provide more details about Apdex related metrics?
31 Dec 2023 10:55 AM
There are several documentation pages about Apdex, namely
Apdex values are available through metrics, so you should use the metrics API.
Don't forget what I said above. This is a proxy metric, and you should combine it with others. SLOs are good for that, as also referenced by @DanielS