> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Events

Lists events within the specified timeframe.

## Basic Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
  | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | From      | The start of the requested timeframe. <br /><br />You can use one of the following formats: <br />\* Timestamp in UTC milliseconds. <br />\* 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. <br />\* 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. <br />You can also specify relative timeframe without an alignment: `now-NU`. <br />Supported time units for the relative timeframe are: <br />   \* `m`: minutes <br />   \* `h`: hours <br />   \* `d`: days <br />   \* `w`: weeks <br />   \* `M`: months <br />   \* `y`: years <br /><br />If not set, the relative timeframe of two hours is used (`now-2h`). |
  | To        | The end of the requested timeframe. <br /><br />You can use one of the following formats: <br />\* Timestamp in UTC milliseconds. <br />\* 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. <br />\* 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. <br />You can also specify relative timeframe without an alignment: `now-NU`. <br />Supported time units for the relative timeframe are: <br />   \* `m`: minutes <br />   \* `h`: hours <br />   \* `d`: days <br />   \* `w`: weeks <br />   \* `M`: months <br />   \* `y`: years <br /><br />If not set, the current timestamp is used.                            |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
  | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Entity Selector | The entity scope of the query. You must set one of these criteria: <br /><br />\* Entity type: `type("TYPE")` <br />\* Dynatrace entity ID: `entityId("id")`. You can specify several IDs, separated by a comma (`entityId("id-1","id-2")`). All requested entities must be of the same type. <br /><br />You can add one or more of the following criteria. Values are case-sensitive and the `EQUALS` operator is used unless otherwise specified. <br /><br />\* Tag: `tag("value")`. Tags in `[context]key:value`, `key:value`, and `value` formats are detected and parsed automatically. Any colons (`:`) that are part of the key or value must be escaped with a backslash(`\`). Otherwise, it will be interpreted as the separator between the key and the value. All tag values are case-sensitive. <br />\* Management zone ID: `mzId(123)` <br />\* Management zone name: `mzName("value")`<br />\* Entity name: <br />	\* `entityName.equals`: performs a non-casesensitive `EQUALS` query. <br />	\* `entityName.startsWith`: changes the operator to `BEGINS WITH`. <br />	\* `entityName.in`: enables you to provide multiple values. The `EQUALS` operator applies. <br />	\* `caseSensitive(entityName.equals("value"))`: takes any entity name criterion as an argument and makes the value case-sensitive.<br />\* Health state (HEALTHY,UNHEALTHY): `healthState("HEALTHY")`<br />\* First seen timestamp: `firstSeenTms.&lt;operator&gt;(now-3h)`. Use any timestamp format from the **from**/**to** parameters. <br />	The following operators are available:<br />	\* `lte`: earlier than or at the specified time<br />	\* `lt`: earlier than the specified time<br />	\* `gte`: later than or at the specified time<br />	\* `gt`: later than the specified time<br />\* Entity attribute: `("value1","value2")` and `.exists()`. To fetch the list of available attributes, execute the [GET entity type](https://dt-url.net/2ka3ivt) request and check the **properties** field of the response. <br />\* Relationships: `fromRelationships.&lt;relationshipName&gt;()` and `toRelationships.&lt;relationshipName&gt;()`. This criterion takes an entity selector as an attribute. To fetch the list of available relationships, execute the [GET entity type](https://dt-url.net/2ka3ivt) request and check the **fromRelationships** and **toRelationships** fields.<br />\* Negation: `not(&lt;criterion&gt;)`. Inverts any criterion except for **type**. <br /><br />For more information, see [Entity selector](https://dt-url.net/apientityselector) in Dynatrace Documentation. <br /><br />To set several criteria, separate them with a comma (`,`). For example, `type("HOST"),healthState("HEALTHY")`. Only results matching **all** criteria are included in the response. <br /><br />The maximum string length is 2,000 characters. <br /><br />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.<br /><br />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.<br />\* Event ID: `eventId("id-1", "id-2")`.<br />\* ID of related entity: `entityId("id-1", "id-2")`.<br />\* Event status: `status("OPEN")` or `status("CLOSED")`. You can specify only one status.<br />\* Management zone ID: `managementZoneId("123", "321")`.<br />\* Event type: `eventType("event-type")`. You can specify only one event type. You can fetch the list of possible event types with the [GET event types](https://dt-url.net/qc03u6w) call. <br />\* Correlation ID: `correlationId("id-1", "id-2")`.<br />\* Happened during maintenance (true, false): `underMaintenance(true)`. <br />\* Notifications are suppressed (true, false): `suppressAlert(true)`. <br />\* Problem creation is suppressed (true, false): `suppressProblem(true)`. <br />\* Frequent event (true, false): `frequentEvent(true)`. <br />\* Event property: `property.&lt;key&gt;("value-1", "value-2")`.<br /><br />To set several criteria, separate them with commas (`,`). 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. <br /><br />The first page is always returned if you don't specify the **nextPageKey** query parameter. <br /><br />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. <br /><br />The maximal allowed page size is 1000. <br /><br />If not set, 100 is used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
</div>

## Example Output

```json theme={"dark"}
{
	"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](https://library.blinkops.com/workflows/list-events-with-dynatrace-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-events-with-dynatrace-and-send-results-via-email/canvas" />
</div>
