Events API v2 - GET an event type
Gets the properties of an event type.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v2/eventTypes/{eventType} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/eventTypes/{eventType} | |
Environment and Cluster ActiveGate (default port 9999) | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/eventTypes/{eventType} |
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
Parameter | Type | Description | In | Required |
---|---|---|---|---|
eventType | string | The event type you're inquiring. | path | required |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | EventType | Success |
Response body objects
The EventType
object
Configuration of an event type.
Element | Type | Description |
---|---|---|
description | string | A short description of the event type. |
displayName | string | The display name of the event type. |
severityLevel | string | The severity level associated with the event type.
|
type | string | The event type. |
Response body JSON model
1{2 "description": "string",3 "displayName": "High CPU",4 "severityLevel": "PERFORMANCE",5 "type": "OSI_HIGH_CPU"6}
Example
In this example, the request queries the properties of the APPLICATION_SLOWDOWN type.
The API token is passed in the Authorization header.
Curl
1curl --request GET \2 --url 'https://mySampleEnv.live.dynatrace.com/api/v2/eventTypes/APPLICATION_SLOWDOWN' \3 --header 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
1https://mySampleEnv.live.dynatrace.com/api/v2/eventTypes/APPLICATION_SLOWDOWN
Response body
1{2 "type": "APPLICATION_SLOWDOWN",3 "displayName": "Application slowdown",4 "severityLevel": "PERFORMANCE",5 "description": "User action duration degradation"6}
Response code
200