Problems API - GET count

  • Reference
  • Deprecated

This API is deprecated. Use the Problems API v2 instead.

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

The request produces an application/json payload.

GETSaaShttps://{your-environment-id}.live.dynatrace.com/api/v1/problem/status
GETEnvironment ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/v1/problem/status

Authentication

To execute this request, you need an access token with DataExport scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

The request doesn't provide any configurable parameters.

Response

Response codes

CodeTypeDescription
200ProblemStatusResultWrapper

Success

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The ProblemStatusResultWrapper object

ElementTypeDescription
resultGlobalProblemStatus

The count of open problems in your environment.

The GlobalProblemStatus object

The count of open problems in your environment.

ElementTypeDescription
openProblemCountsobject

Numbers of open problems per impact level.

totalOpenProblemsCountinteger

The total number of open problems in your environment.

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"result": {
"openProblemCounts": {
"APPLICATION": 1,
"ENVIRONMENT": 1,
"INFRASTRUCTURE": 1,
"SERVICE": 1
},
"totalOpenProblemsCount": 1
}
}
{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}

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 dt0c01.abc123.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