List Events
Lists events within the specified timeframe.
Basic Parameters
Parameter | Description |
---|---|
From | The start of the requested timeframe.You can use one of the following formats:
now-2h ). |
To | The end of the requested timeframe.You can use one of the following formats:
|
Advanced Parameters
Parameter | Description |
---|---|
Entity Selector | The entity scope of the query. You must set one of these criteria:
EQUALS operator is used unless otherwise specified.
, ). For example, type("HOST"),healthState("HEALTHY") . Only results matching all criteria are included in the response.The maximum string length is 2,000 characters.The number of entities that can be selected is limited to 10000. |
Event Selector | Defines the scope of the query. Only events matching the specified criteria are included in the response.You can add one or several of the criteria listed below. For each criterion you can specify multiple comma-separated values, unless stated otherwise. If several values are specified, the OR logic applies.
, ). Only results matching all criteria are included in the response. |
Next Page Key | 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. |
Page Size | The amount of events in a single response payload.The maximal allowed page size is 1000.If not set, 100 is used. |
Example Output
{
"events": [
{
"correlationId": "933613657e1c8fcf",
"endTime": 1564039524182,
"entityId": {
"entityId": {
"id": "The ID of the entity.",
"type": "The type of the entity."
},
"name": "The name of the entity. \n\n Not included in the response in case no entity with the relevant ID was found."
},
"entityTags": [
{
"context": "The origin of the tag, such as AWS or Cloud Foundry. \n\n Custom tags use the `CONTEXTLESS` value.",
"key": "The key of the tag.",
"stringRepresentation": "The string representation of the tag.",
"value": "The value of the tag."
}
],
"eventId": "4293884258445543163_1564039524182",
"eventType": "LOW_DISK_SPACE",
"frequentEvent": false,
"managementZones": [
{
"id": "The ID of the management zone.",
"name": "The name of the management zone."
}
],
"properties": [
{
"key": "The key of the event property.",
"value": "The value of the event property."
}
],
"startTime": 1564039524182,
"status": "OPEN",
"suppressAlert": false,
"suppressProblem": false,
"title": "High CPU load on host X",
"underMaintenance": false
}
],
"nextPageKey": "AQAAABQBAAAABQ==",
"pageSize": 0,
"totalCount": 0,
"warnings": [
"string"
]
}
Workflow Library Example
List Events with Dynatrace and Send Results Via Email
Preview this Workflow on desktop