How do I fetch the complete list of problems?

A call to /problem/feed returns the list of problems observed by Dynatrace during a relative period of time. Complete problem details may be large because the feed contains a subset of each problems’ meta information to give the caller the option of selecting all detail from specific problems. The /problem/feed endpoint offers additional query and filter parameters to enable you to specify which types of problems the API consumer is interested in.

Feed endpoint

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

HTTP GET parameters

The feed endpoint allows the following parameters to be sent as HTTP GET requests:

  1. status (optional) Possible values: OPEN or CLOSED; Filters the resulting set of problems according to their status (OPEN or CLOSED) Without status filtering the call returns all problems for the given time period.
  2. impactLevel (optional) Possible values: APPLICATION, SERVICE or INFRASTRUCTURE; Filters the resulting set of problems based on impact level: applications (APPLICATION), services (SERVICE), or infrastructure component (INFRASTRUCTURE). Without impactLevel filtering, the call returns all problems for the given time period.
  3. relativeTime (optional) Possible values: hour, 2hours, 6hours, day, week, month; Specifies the relative time period for receiving the problem feed. Without specifying this parameter, the call returns all problems observed by Dynatrace within the last hour.

A call to problem/feed delivers a list of problem summaries along with the overall count of monitored applications, services, and infrastructure components in your monitored environment.

The following example shows the result of a successful call to the problems feed:

{
  result: {
    problems: [
      {
        id: "1328992236593193841",
        startTime: 1453166820000,
        endTime: -1,
        displayName: "851",
        impactLevel: "INFRASTRUCTURE",
        status: "OPEN",
        rankedImpacts: [
          {
              entityId: "HYPERVISOR-CC7586844F686D21",
              entityName: "emea-gdn-vh026.emea.cpwr.corp",
              impactLevel: "INFRASTRUCTURE",
              eventType: "CPU_SATURATED"
          }
        ],
        affectedCounts: {
          APPLICATION: 0,
          INFRASTRUCTURE: 1,
          SERVICE: 0
        },
        recoveredCounts: {
          APPLICATION: 0,
          INFRASTRUCTURE: 0,
          SERVICE: 0
        }
      },
      ...
    ],
    monitored: {
      INFRASTRUCTURE: 1599,
      SERVICE: 56,
      APPLICATION: 10
    }
  }
}