How do I fetch the list of monitored applications?

A call to the /applications endpoint returns a list of currently monitored applications along with their attributes and relationships.

Applications endpoint

https://{id}.live.dynatrace.com/api/v1/entity/applications

HTTP GET parameters

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

  1. tag (optional) Filters the resulting set of applications by the given tag. Use multiple tag parameters to combine multiple tag filters using the logical operator AND. In case of key-value tags, such as imported AWS or CloudFoundry tags use following format: [context]key:value. An example for a complex tag could be: [AWS]Category:Demo.
  2. startTimestamp and endTimestamp (optional) Filters the resulting set of applications by the last seen timestamp. The timestamp values must be in UTC milliseconds and the query is restricted to a maximum period of 3 days.

Result

  • fromRelationships: Outgoing connections from the application to other entities (e.g., calls to a service).
  • toRelationships: Incoming connections to the application.
  • applicationType: The application type (e.g., a RUM or synthetic application).
  • tags: The tags that have been defined for the application. This list contains all user-defined labels as well as all tags imported from third-party systems, such as AWS.

The following code block shows an example result:

[
  {
    entityId: "APPLICATION-EA7C4B59F27D43EB",
    displayName: "RUM Default Application",
    customizedName: "RUM Default Application",
    tags: [
      {
        context: "USER",
        key: "mytest"
      },
      {
        context: "USER",
        key: "test"
      },
      {
        context: "USER",
        key: "anothertag"
      }
    ],
    fromRelationships: {
      calls: [
        "SERVICE-A6573F56394A4D90",
        "SERVICE-CF188BBF8568DE91",
        "SERVICE-E5AA28EFED7D593E"
      ]
    },
    toRelationships: { },
    applicationType: "DEFAULT"
  }
]