Problems API - GET count

Gets the count of problems in your environment and their distribution by impact level.

The request produces an application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/problem/status
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/problem/status

Parameters

The request doesn't provide any configurable parameters.

Response format

The ProblemStatusResultWrapper object

Element Type Description
result GlobalProblemStatus

The GlobalProblemStatus object

The count of open problems in your environment.

Element Type Description
totalOpenProblemsCount integer

The total number of open problems in your environment.

openProblemCounts object

Numbers of open problems per impact level.

Example

In this example, the request gets the number of problems in an environment.

The API token is passed in the Authorization header.

The response shows there are 34 problems detected:

  • 4 affect the infrastructure.
  • 30 affect applications.

Curl

curl -X GET \
  https://mySampleEnv.live.dynatrace.com/api/v1/problem/status \
  -H 'Authorization: Api-token abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/v1/problem/status

Response content

{
  "result": {
    "totalOpenProblemsCount": 34,
    "openProblemCounts": {
      "INFRASTRUCTURE": 4,
      "SERVICE": 0,
      "APPLICATION": 30,
      "ENVIRONMENT": 0
    }
  }
}

Response code

200