28 Mar 2025
09:37 AM
- last edited on
28 Mar 2025
01:10 PM
by
MaciejNeumann
So, in the service we can get the downtime and even the time when it went down and recovery time as well, so this downtime is it available through API, we have availability % and availability state APIs.
builtin:pgi.availability
builtin:pgi.availability.state
Do we have any particular API or can we derive like this below, give suggestions
api/v2/metrics/query?metricSelector=builtin:pgi.availability:splitBy("dt.entity.process_group_instan...
10 Apr 2025 08:43 AM
@bs43 You can use the metrics API
https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-get-datapoints
10 Apr 2025 08:14 PM
@p_devulapalli is right on point. this is how we pull the availability. All depends on how you want to see the data. Min by Min, Hour by hour etc...