> ## 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 Problems

Lists problems observed 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 maximum number of entities that may be selected is limited to 10000. |
  | Fields           | A list of additional problem properties you can add to the response. <br /><br />The following properties are available (all other properties are always included and you can't remove them from the response): <br /><br />\* `evidenceDetails`: The details of the root cause.<br />\* `impactAnalysis`: The impact analysis of the problem on other entities/users.<br />\* `recentComments`: A list of the most recent comments to the problem.<br /><br />To add properties, specify them as a comma-separated list (for example, `evidenceDetails,impactAnalysis`).<br /><br /> The field is valid only for the current page of results. You must set it for each page you're requesting.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | 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 except the optional **fields** parameter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | Page Size        | The amount of problems in a single response payload. <br /><br />The maximal allowed page size is 500. <br /><br />If not set, 50 is used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | Problem Selector | Defines the scope of the query. Only problems matching the specified criteria are included into 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. All values must be quoted. <br />\* Status: `status("open")` or `status("closed")`. You can specify only one status. <br />\* Severity level: `severityLevel("level-1","level-2")`. Find the possible values in the description of the **severityLevel** field of the response.<br />\* Impact level: `impactLevel("level-11","level-2")` Find the possible values in the description of the **impactLevel** field of the response.<br />\* Root cause entity: `rootCauseEntity("id-1", "id-2")`. <br />\* Management zone ID: `managementZoneIds("mZId-1", "mzId-2")`. <br />\* Management zone name: `managementZones("value-1","value-2")`. <br />\* Impacted entities: `impactedEntities("id-1", "id-2")`. <br />\* Affected entities: `affectedEntities("id-1", "id-2")`. <br />\* Type of affected entities: `affectedEntityTypes("value-1","value-2")`. <br />\* Problem ID: `problemId("id-1", "id-2")`. <br />\* Alerting profile ID: `problemFilterIds("id-1", "id-2")`. <br />\* Alerting profile name (contains, case-insensitive): `problemFilterNames("value-1","value-2")`. <br />\* Alerting profile name (exact match, case-insensitive): `problemFilterNames.equals("value-1","value-2")`. <br />\* Entity tags: `entityTags("[context]key:value","key:value")`. Tags in `[context]key:value`, `key:value`, and `value` formats are detected and parsed automatically. If a value-only tag has a colon (`:`) in it, you must escape the colon with a backslash(`\`). Otherwise, the tag will be parsed as a `key:value tag`. All tag values are case-sensitive.<br />\* Display ID of the problem: `displayId("id-1", "id-2")`. <br />\* Under maintenance: `underMaintenance(true\|false)`. Shows (true) or hides (false) all problems created during maintenance mode.<br />\* Text search: `text("value")`. Text search on the following fields: problem title, event titles, displayId and the id of affected and impacted entities. The text search is case insensitive, partial matching and based on a relevance score. Therefore the `relevance` sort option should be used to get the most relevant problems first. The special characters `~` and `"` need to be escaped using a `~` (e.g. double quote search `text("~"")`). The search value is limited to 30 characters.<br /><br />To set several criteria, separate them with a comma (`,`). Only results matching **all** criteria are included in the response.                                                                                                                                                                           |
  | Sort             | Specifies a set of comma-separated (`,`) fields for sorting in the problem list.<br /><br />You can sort by the following properties with a sign prefix for the sorting order. <br /><br /> \* `status`: problem status (`+` open problems first or `-` closed problems first)<br /> \* `startTime`: problem start time (`+` old problems first or `-` new problems first) <br /> \* `relevance`: problem relevance (`+` least relevant problems first or `-` most relevant problems first) - can be used only in combination with text search <br /><br />If no prefix is set, `+` is used. <br /><br />You can specify several levels of sorting. For example, `+status,-startTime` sorts problems by status, open problems first. Within the status, problems are sorted by start time, oldest first.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
</div>

## Example Output

```json theme={"dark"}
{
	"nextPageKey": "AQAAABQBAAAABQ==",
	"pageSize": 0,
	"problems": [
		{
			"affectedEntities": [
				{
					"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."
				}
			],
			"displayId": "The display ID of the problem.",
			"endTime": 0,
			"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."
				}
			],
			"evidenceDetails": {
				"details": [
					{
						"displayName": "The display name of the evidence.",
						"entity": {
							"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."
						},
						"evidenceType": "Defines the actual set of fields depending on the value. See one of the following objects: \n\n* `EVENT` -\u003e EventEvidence \n* `METRIC` -\u003e MetricEvidence \n* `TRANSACTIONAL` -\u003e TransactionalEvidence \n* `MAINTENANCE_WINDOW` -\u003e MaintenanceWindowEvidence \n* `AVAILABILITY_EVIDENCE` -\u003e AvailabilityEvidence \n",
						"groupingEntity": {
							"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."
						},
						"rootCauseRelevant": false,
						"startTime": 0
					}
				],
				"totalCount": 0
			},
			"impactAnalysis": {
				"impacts": [
					{
						"estimatedAffectedUsers": 0,
						"impactType": "Defines the actual set of fields depending on the value. See one of the following objects: \n\n* `SERVICE` -\u003e ServiceImpact \n* `APPLICATION` -\u003e ApplicationImpact \n* `MOBILE` -\u003e MobileImpact \n* `CUSTOM_APPLICATION` -\u003e CustomApplicationImpact \n",
						"impactedEntity": {
							"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."
						}
					}
				]
			},
			"impactLevel": "The impact level of the problem. It shows what is affected by the problem.",
			"impactedEntities": [
				{
					"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."
				}
			],
			"linkedProblemInfo": {
				"displayId": "The display ID of the problem.",
				"problemId": "The ID of the problem."
			},
			"managementZones": [
				{
					"id": "The ID of the management zone.",
					"name": "The name of the management zone."
				}
			],
			"problemFilters": [
				{
					"id": "The ID of the alerting profile.",
					"name": "The name of the alerting profile."
				}
			],
			"problemId": "The ID of the problem.",
			"recentComments": {
				"comments": [
					{
						"authorName": "The user who wrote the comment.",
						"content": "The text of the comment.",
						"context": "The context of the comment.",
						"createdAtTimestamp": 0,
						"id": "The ID of the comment."
					}
				],
				"nextPageKey": "AQAAABQBAAAABQ==",
				"pageSize": 0,
				"totalCount": 0
			},
			"rootCauseEntity": {
				"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."
			},
			"severityLevel": "The severity of the problem.",
			"startTime": 0,
			"status": "The status of the problem.",
			"title": "The name of the problem, displayed in the UI."
		}
	],
	"totalCount": 0,
	"warnings": [
		"string"
	]
}
```

## Workflow Library Example

[List Problems with Dynatrace and Send Results Via Email](https://library.blinkops.com/workflows/list-problems-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-problems-with-dynatrace-and-send-results-via-email/canvas" />
</div>
