List Problems
Lists problems observed within the specified timeframe.
Basic Parameters
Parameter | Description |
---|---|
From | The start of the requested timeframe.You can use one of the following formats:- Timestamp in UTC milliseconds. |
-
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 theT
. Seconds and fractions of a second are optional. -
Relative timeframe, back from now. The format is
now-NU/A
, whereN
is the amount of time,U
is the unit of time, andA
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.You can also specify relative timeframe without an alignment:now-NU
.Supported time units for the relative timeframe are:m
: minutesh
: hoursd
: daysw
: weeksM
: monthsy
: yearsIf not set, the relative timeframe of two hours is used (now-2h
). | | To | The end of the requested timeframe.You can use one of the following formats:- Timestamp in UTC milliseconds.
-
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 theT
. Seconds and fractions of a second are optional. -
Relative timeframe, back from now. The format is
now-NU/A
, whereN
is the amount of time,U
is the unit of time, andA
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.You can also specify relative timeframe without an alignment:now-NU
.Supported time units for the relative timeframe are:m
: minutesh
: hoursd
: daysw
: weeksM
: monthsy
: yearsIf not set, the current timestamp is used. |
Advanced Parameters
Parameter | Description |
---|---|
Entity Selector | The entity scope of the query. You must set one of these criteria:- Entity type: type("TYPE") |
-
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.You can add one or more of the following criteria. Values are case-sensitive and theEQUALS
operator is used unless otherwise specified.- Tag:tag("value")
. Tags in[context]key:value
,key:value
, andvalue
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. -
Management zone ID:
mzId(123)
-
Management zone name:
mzName("value")
-
Entity name:
entityName.equals
: performs a non-casesensitiveEQUALS
query.entityName.startsWith
: changes the operator toBEGINS WITH
.entityName.in
: enables you to provide multiple values. TheEQUALS
operator applies.caseSensitive(entityName.equals("value"))
: takes any entity name criterion as an argument and makes the value case-sensitive.
-
Health state (HEALTHY,UNHEALTHY):
healthState("HEALTHY")
-
First seen timestamp:
firstSeenTms.<operator>(now-3h)
. Use any timestamp format from the from/to parameters.The following operators are available:lte
: earlier than or at the specified timelt
: earlier than the specified timegte
: later than or at the specified timegt
: later than the specified time
-
Entity attribute:
("value1","value2")
and.exists()
. To fetch the list of available attributes, execute the GET entity type request and check the properties field of the response. -
Relationships:
fromRelationships.<relationshipName>()
andtoRelationships.<relationshipName>()
. This criterion takes an entity selector as an attribute. To fetch the list of available relationships, execute the GET entity type request and check the fromRelationships and toRelationships fields. -
Negation:
not(<criterion>)
. Inverts any criterion except for type.For more information, see Entity selector in Dynatrace Documentation.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.The maximum string length is 2,000 characters.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.The following properties are available (all other properties are always included and you can’t remove them from the response):-evidenceDetails
: The details of the root cause. -
impactAnalysis
: The impact analysis of the problem on other entities/users. -
recentComments
: A list of the most recent comments to the problem.To add properties, specify them as a comma-separated list (for example,evidenceDetails,impactAnalysis
).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.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 except the optional fields parameter. | | Page Size | The amount of problems in a single response payload.The maximal allowed page size is 500.If not set, 50 is used. | | Problem Selector | Defines the scope of the query. Only problems matching the specified criteria are included into 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. All values must be quoted.- Status:status("open")
orstatus("closed")
. You can specify only one status. -
Severity level:
severityLevel("level-1","level-2")
. Find the possible values in the description of the severityLevel field of the response. -
Impact level:
impactLevel("level-11","level-2")
Find the possible values in the description of the impactLevel field of the response. -
Root cause entity:
rootCauseEntity("id-1", "id-2")
. -
Management zone ID:
managementZoneIds("mZId-1", "mzId-2")
. -
Management zone name:
managementZones("value-1","value-2")
. -
Impacted entities:
impactedEntities("id-1", "id-2")
. -
Affected entities:
affectedEntities("id-1", "id-2")
. -
Type of affected entities:
affectedEntityTypes("value-1","value-2")
. -
Problem ID:
problemId("id-1", "id-2")
. -
Alerting profile ID:
problemFilterIds("id-1", "id-2")
. -
Alerting profile name (contains, case-insensitive):
problemFilterNames("value-1","value-2")
. -
Alerting profile name (exact match, case-insensitive):
problemFilterNames.equals("value-1","value-2")
. -
Entity tags:
entityTags("[context]key:value","key:value")
. Tags in[context]key:value
,key:value
, andvalue
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 akey:value tag
. All tag values are case-sensitive. -
Display ID of the problem:
displayId("id-1", "id-2")
. -
Under maintenance:
underMaintenance(true\|false)
. Shows (true) or hides (false) all problems created during maintenance mode. -
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 therelevance
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 searchtext("~"")
). The search value is limited to 30 characters.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.You can sort by the following properties with a sign prefix for the sorting order.-status
: problem status (+
open problems first or-
closed problems first) -
startTime
: problem start time (+
old problems first or-
new problems first) -
relevance
: problem relevance (+
least relevant problems first or-
most relevant problems first) - can be used only in combination with text searchIf no prefix is set,+
is used.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. |
Example Output
Workflow Library Example
List Problems with Dynatrace and Send Results Via Email
Preview this Workflow on desktop
Was this page helpful?