How do I fetch the number of open problems?

A call to the /problem/status endpoint returns the number of currently open problems organized by impact level (i.e., affecting applications, services, or infrastructure) so you know immediately when problems affect your customers.

Status endpoint

https://{id}.live.dynatrace.com/api/v1/problem/status

Result

  • totalOpenProblemsCount: Number of open problems in your environment.
  • openProblemCounts: Number of open problems in your environment, organized by impact level (application, services, and/or infrastructure).

The following code block shows an example result:

{
  result: {
    totalOpenProblemsCount: 4,
    openProblemCounts: {
      APPLICATION: 1,
      INFRASTRUCTURE: 3,
      SERVICE: 0
    }
  }
}