Events API v2 - GET all event types

Lists all types of events that might be raised in your environment.

The request produces an application/json payload.

GETSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/eventTypes
Environment ActiveGateCluster ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/eventTypes

Authentication

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

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

Parameters

ParameterTypeDescriptionInRequired
nextPageKeystring

The cursor for the next page of results. You can find it in the nextPageKey field of the previous response.

The first page is always returned if you don't specify the nextPageKey query parameter.

When the nextPageKey is set to obtain subsequent pages, you must omit all other query parameters.

queryoptional
pageSizeinteger

The amount of event types in a single response payload.

The maximal allowed page size is 500.

If not set, 100 is used.

queryoptional

Response

Response codes

CodeTypeDescription
200EventTypeList

Success

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The EventTypeList object

A list of event types.

ElementTypeDescription
eventTypeInfosEventType[]

A list of event types.

nextPageKeystring

The cursor for the next page of results. Has the value of null on the last page.

Use it in the nextPageKey query parameter to obtain subsequent pages of the result.

pageSizeinteger

The number of entries per page.

totalCountinteger

The total number of entries in the result.

The EventType object

Configuration of an event type.

ElementTypeDescription
descriptionstring

A short description of the event type.

displayNamestring

The display name of the event type.

severityLevelstring

The severity level associated with the event type.

  • AVAILABILITY
  • CUSTOM_ALERT
  • ERROR
  • INFO
  • MONITORING_UNAVAILABLE
  • PERFORMANCE
  • RESOURCE_CONTENTION
typestring

The event type.

Response body JSON model

{
"eventTypeInfos": [
{
"description": "string",
"displayName": "High CPU",
"severityLevel": "PERFORMANCE",
"type": "OSI_HIGH_CPU"
}
],
"nextPageKey": "AQAAABQBAAAABQ==",
"pageSize": 1,
"totalCount": 1
}

Example

In this example, the request lists all event types that can be created in the mySampleEnv environment. The result is truncated to three entries

The API token is passed in the Authorization header.

Curl

curl --request GET \
--url 'https://mySampleEnv.live.dynatrace.com/api/v2/eventTypes?pageSize=3' \
--header 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/v2/eventTypes?pageSize=3

Response body

{
"totalCount": 144,
"pageSize": 3,
"nextPageKey": "AQAAAGQBAAAAZA==",
"eventTypeInfos": [
{
"type": "APPLICATION_UNEXPECTED_LOW_LOAD",
"displayName": "Application low traffic",
"severityLevel": "AVAILABILITY",
"description": "Unexpected low traffic"
},
{
"type": "MOBILE_APP_CRASH_RATE_INCREASED",
"displayName": "Mobile app crash rate increase",
"severityLevel": "ERROR"
},
{
"type": "APPLICATION_SLOWDOWN",
"displayName": "Application slowdown",
"severityLevel": "PERFORMANCE",
"description": "User action duration degradation"
}
]
}

Response code

200