Extensions 2.0 API - GET list of events

Lists events linked to the specified environment configuration.

The request produces an application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v2/extensions/{extensionName}/environmentConfiguration/events
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v2/extensions/{extensionName}/environmentConfiguration/events
  • Environment ActiveGate https://{your-activegate-domain}/e/{your-environment-id}/api/v2/extensions/{extensionName}/environmentConfiguration/events

Authentication

To execute this request, you need the Read extension environment configurations (extensionEnvironment.read) permission assigned to your API token. To learn how to obtain and use it, see Tokens and authentication.

 

Parameters

Parameter Type Description In Required
extensionName string

The name of the requested extension 2.0.

path required
from string

The start of the requested timeframe.

You can use one of the following formats:

  • Timestamp in UTC milliseconds.
  • Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional.
  • Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are:
    • m: minutes
    • h: hours
    • d: days
    • w: weeks
    • M: months
    • y: years

If not set, the relative timeframe of two hours is used (now-2h).

query optional
to string

The end of the requested timeframe.

You can use one of the following formats:

  • Timestamp in UTC milliseconds.
  • Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional.
  • Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are:
    • m: minutes
    • h: hours
    • d: days
    • w: weeks
    • M: months
    • y: years

If not set, the current timestamp is used.

query optional

Response

Response codes

Code Description
200

List of the latest extension environment configuration events

404

Failed. The requested resource doesn't exist.

Response body

The ExtensionEventsList object

Element Type Description
extensionEvents ExtensionEventDto[]

A list of extension events.

The ExtensionEventDto object

A list of extension events.

Element Type Description
timestamp string

Timestamp of the event

severity string

Severity of the event

content string

Content of the event

dt.entity.host string

Host that uses this monitoring configuration.

Example: HOST-ABCDEF0123456789

dt.active_gate.id string

Hexadecimal ID of Active Gate that uses this monitoring configuration.

Example: 0x1a2b3c4d

dt.extension.ds string

Data source that uses this monitoring configuration.

Example: snmp