How do I fetch the list of monitored processes?

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

Processes endpoint

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

HTTP GET parameters

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

  1. startTimestamp and endTimestamp (optional) Filters the resulting set of processes 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 process-group to other entities.
  • toRelationships: Incoming relations to the process-group.
  • tags: Returns the list of tags that have been defined for the process.
  • metadata: Shows available metadata of the process. Typical metadata that can be included in this section are executablePaths that shows the directory path of the process executable.
  • softwareTechnologies: Shows the software technologies that were detected for that specific process.
  • listenPorts: Shows an array of ports the process is listening on.

The following code block shows an example result:

[
  {
    entityId: "PROCESS_GROUP_INSTANCE-C0E0F5F1558040F9",
    displayName: "Apache Web Server apache*",
    discoveredName: "Apache Web Server apache*",
    tags: [ ],
    fromRelationships: {
      isProcessOf: [
        "HOST-9B3CDCF3A6732BF1"
      ],
      isInstanceOf: [
        "PROCESS_GROUP-5BDC2902F3F36B08"
      ],
      isNetworkClientOf: [
        "PROCESS_GROUP_INSTANCE-4B4F3BFE1E232FB3",
        "PROCESS_GROUP_INSTANCE-C0E0F5F1558040F9",
        "PROCESS_GROUP_INSTANCE-CDEAD0BAB7154383",
        "PROCESS_GROUP_INSTANCE-F90C76E61162220C",
        "PROCESS_GROUP_INSTANCE-7609E0F290227646",
        "PROCESS_GROUP_INSTANCE-E68B69ECCF5674DA",
        "PROCESS_GROUP_INSTANCE-DCF6CA9C35F65BC0",
        "PROCESS_GROUP_INSTANCE-DF97CED44D1EBDF7",
        "PROCESS_GROUP_INSTANCE-627BB9CE85613A06"
      ]
    },
    toRelationships: {
      isNetworkClientOf: [
        "PROCESS_GROUP_INSTANCE-4B4F3BFE1E232FB3",
        "PROCESS_GROUP_INSTANCE-EFB14203F78F301E",
        "PROCESS_GROUP_INSTANCE-DCC292B10C72C5C5",
        "PROCESS_GROUP_INSTANCE-D36BB50909E7E280",
        "PROCESS_GROUP_INSTANCE-C7722821D8E2B957",
        "PROCESS_GROUP_INSTANCE-F90C76E61162220C",
        "PROCESS_GROUP_INSTANCE-C0E0F5F1558040F9",
        "PROCESS_GROUP_INSTANCE-E68B69ECCF5674DA",
        "PROCESS_GROUP_INSTANCE-609BFB08EC62DFFC",
        "PROCESS_GROUP_INSTANCE-DF97CED44D1EBDF7",
        "PROCESS_GROUP_INSTANCE-D3B71D96D7DE30EF",
        "PROCESS_GROUP_INSTANCE-79F5DCBEDB394B9E",
        "PROCESS_GROUP_INSTANCE-66DFFFC22A40FCEB",
        "PROCESS_GROUP_INSTANCE-7609E0F290227646",
        "PROCESS_GROUP_INSTANCE-CDE1DA73388F29E6",
        "PROCESS_GROUP_INSTANCE-627BB9CE85613A06",
        "PROCESS_GROUP_INSTANCE-6F7D95CED2E3960F"
      ]
    },
    softwareTechnologies: [
      {
      type: "PYTHON",
      edition: null,
      version: null
      },
      {
      type: "APACHE_HTTPD",
      edition: null,
      version: "2.4.18"
      }
    ],
    listenPorts: [
      4990,
      433,
      35347,
      70
    ]
  }
]