Get a list of incidents
get
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/incidents
Returns a list of incidents based on the filters specified. By default, it returns the first set of all open incidents with the most recently created incidents listed first.
Request
Query Parameters
-
ageInHoursLessThanOrEqualTo: integer(int32)
Get incidents which are newer than the number of days specifiedDefault Value:
744Example:24 -
includeMemberTargets: boolean
Include matching incidents on members of the given targetDefault Value:
true -
limit: integer(int32)
Limits number of items returned in current call. Use the self/previous/next links from the response to fetch additional items.Default Value:
50 -
page: string
Identifies the set of items to be fetched; "href" element from "links" list of the response provides encoded value for this parameter. "href" element value should be used "as is" for fetching respective set of items.Default Value:
Base64 encode value of 0 i.e MA== -
severity: array[]
Filter by specified severities
-
sort: string
Sorts results by supported attributes such as id, displayId, timeCreated, timeUpdated, status, and owner. Each sort expression has the format field:direction, with a colon (:) between the field name and ASC or DESC. For example, timeCreated:DESC lists the newest incidents first. Multiple expressions are separated by commas, for example owner:ASC,timeCreated:DESC. A plus sign (+) or a space between the field name and sort direction is invalid.Example:
displayId:ASC,timeUpdated:DESC -
targetName: string
Filter by specific target name.
-
targetTypeName: string
Filter by specific target type.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation - Fetch incident list
Root Schema : IncidentCollection
List of incident summary
Match All
List of incident summary
List of incident summary
Show Source
-
object
ListRspns
Generic list response wrapper
-
object
IncidentCollection-allOf[1]
Nested Schema : ListRspns
Type:
objectGeneric list response wrapper
Show Source
-
count(required): integer
(int32)
Number of rows returnedExample:
1 -
links: object
links
Read Only:
trueURL links to paginated resource(s).
Nested Schema : IncidentCollection-allOf[1]
Type:
Show Source
object-
items(required): array
items
List of the incident summary
Nested Schema : links
Type:
objectRead Only:
trueURL links to paginated resource(s).
Show Source
-
next: object
Link
A link referencing to another api
-
previous: object
Link
A link referencing to another api
-
self(required): object
Link
A link referencing to another api
Example:
{
"self":{
"href":"/em/api/incidents?page=MQ%3D%3D&limit=50"
},
"next":{
"href":"/em/api/incidents?page=Mg%3D%3D&limit=50"
},
"previous":{
"href":"/em/api/incidents?page=MA%3D%3D&limit=50"
}
}Nested Schema : Link
Type:
objectA link referencing to another api
Show Source
-
href: string
the reference
Nested Schema : items
Type:
arrayList of the incident summary
Show Source
-
Array of:
object IncidentSummary
Summary of an incident
Nested Schema : IncidentSummary
Type:
objectSummary of an incident
Show Source
-
ageInHours: integer
(int64)
Read Only:
trueIncident age in hoursExample:855 -
canBeManuallyClosed: boolean
Default Value:
falseCan the incident be cleared by user?Example:true -
displayId(required): integer
(int64)
Read Only:
trueDisplay ID of the incidentExample:35 -
escalationLevel: object
EscalationLevel
Details of an escalation level
-
id(required): string
(raw)
Read Only:
trueID of the incidentExample:C4E214A1172A2F19E053860E4B645AC7 -
isDiagnosticIncident: boolean
Default Value:
falseIs it a Automatic Diagnostic Repository (ADR) incident?Example:false -
isEscalated: boolean
Is the incident escalated?Example:
true -
isOpen(required): boolean
Is the incident open?Example:
true -
links: object
links
Read Only:
trueURL links inside details of resource. -
message(required): string
Message of the incidentExample:
CPU Utilization is 10.821%, crossed warning (5) or critical (10) threshold. -
nonTargetEntities: array
nonTargetEntities
Minimum Number of Items:
0Unique Items Required:trueEntities (jobs, etc.) other than targets which are affected by this incident -
owner: string
Current owner of the incidentExample:
SYSMAN -
priority: object
Priority
Details of an priority
-
severity(required): string
Read Only:
trueAllowed Values:[ "FATAL", "CRITICAL", "WARNING", "MINOR_WARNING", "CLEAR" ]Supported list of the severitiesExample:CRITICAL -
status(required): string
Current status of the incidentExample:
new -
suppressionStatus: object
SuppressionStatus
Details of an suppression status
-
targets: array
targets
Minimum Number of Items:
0Unique Items Required:trueTargets affected by this incident -
ticket: object
TicketSummary
Read Only:
trueDetails of the ticket -
timeCreated(required): string
(date-time)
Read Only:
trueTime when incident is createdExample:2021-06-16T12:17:56.000Z -
timeUpdated(required): string
(date-time)
Read Only:
trueTime when incident is updatedExample:2021-07-22T06:25:42.000Z
Nested Schema : EscalationLevel
Type:
objectDetails of an escalation level
Show Source
-
displayName: string
Display name of the escalation levelExample:
None -
name(required): string
Read Only:
trueAllowed Values:[ "NONE", "L1", "L2", "L3", "L4", "L5" ]Supported list of the escalataion levelsExample:NONE
Nested Schema : links
Type:
objectRead Only:
trueURL links inside details of resource.
Show Source
-
self(required): object
Link
A link referencing to another api
Example:
{
"self":{
"href":"/em/api/incidents/C4E214A1172A2F19E053860E4B645AC7"
}
}Nested Schema : nonTargetEntities
Type:
arrayMinimum Number of Items:
0Unique Items Required:
trueEntities (jobs, etc.) other than targets which are affected by this incident
Show Source
-
Array of:
object SourceEntity
Details of an source entity
Nested Schema : Priority
Type:
objectDetails of an priority
Show Source
-
displayName: string
Read Only:
trueDisplay label for the priorityExample:None -
name(required): string
Internal name for the priorityExample:
PRIORITY_NONE
Nested Schema : SuppressionStatus
Type:
objectDetails of an suppression status
Show Source
-
isSuppressed(required): boolean
Default Value:
falseIs the supression enabled? -
suppressUntil: string
Allowed Values:
[ "MANUALLY_UNSUPPRESSED", "INCIDENT_CLOSES", "INCIDENT_SEVERITY_CHANGES", "AFTER_A_DAY", "AFTER_A_WEEK", "AFTER_DATE" ]Supression type -
timeToEndSuppression: string
(date-time)
Supression end time
Nested Schema : targets
Type:
arrayMinimum Number of Items:
0Unique Items Required:
trueTargets affected by this incident
Show Source
-
Array of:
object schema
This is the representation of an EM target resource.
Nested Schema : TicketSummary
Type:
objectRead Only:
trueDetails of the ticket
Show Source
-
id: string
Read Only:
trueID of the ticketExample:51d62b6cd1384ba89aeddfa647ea1380 -
status: string
Status of the ticketExample:
Triggered -
type: string
Type of the ticketExample:
TICKET -
url: string
URL of the ticketExample:
https://api.pagerduty.com/incidents?incident_key=F746283FHDKC
Nested Schema : SourceEntity
Type:
objectDetails of an source entity
Show Source
-
id(required): string
(raw)
ID of the entityExample:
317C6AD6C69832D0ADDA279BEB7B7F32 -
name(required): string
Name of the entityExample:
bkupjob-123456 -
subTypeDisplayName: string
Display name for sub type for an entity typeExample:
Database backup job -
subTypeName: string
Sub type for an entity typeExample:
DBBackupJob -
typeDisplayName: string
Display name for the entity typeExample:
Job -
typeName(required): string
Type of the entityExample:
JOB
Nested Schema : schema
Type:
objectThis is the representation of an EM target resource.
Show Source
-
accessPoints: array
accessPoints
the targets access points
-
agentUrl: string
(uri)
the agent monitoring the hostExample:
http://name.of.my.host:12345/emd/main -
brokenMessage: string
a more explanatory description of the broken reasonExample:
Response metric could not get collected -
brokenReason: string
the reason a target is brokenExample:
20 -
displayName: string
the target display nameExample:
My Database Instance -
hostName: string
(hostname)
the host of the targetExample:
name.of.my.host -
id(required): string
the target idExample:
D91786E288D35455C3ADA1B329B49BB5 -
links: object
links
the target related links
-
name(required): string
the target nameExample:
my_database_instance -
owner: string
the owner of the targetExample:
SYSMAN -
properties: array
properties
the target properties
-
status: string
Allowed Values:
[ "DOWN", "UP", "METRIC_ERROR", "AGENT_DOWN", "UNREACHABLE", "BLACKOUT", "PENDING", "REMOTE_HOST_UNREACHABLE" ]This is the representation of a target status.Example:UP -
statusCode: integer
the target status codeExample:
0 -
statusDisplayName: string
the localized statusExample:
Hochgefahren -
subStatus: string
the textual representation of the sub-statusExample:
Pending after blackout end -
subStatusCode: integer
the target sub-statusExample:
99 -
timeCreated: string
(date-time)
the creation time of the targetExample:
2020-10-25T13:45:15Z -
timezoneRegion: string
the targets timezone regionExample:
PST -
typeDisplayName: string
the type display name in the client localeExample:
Datenbankinstanz -
typeName: string
the target type nameExample:
oracle_database
Nested Schema : accessPoints
Type:
arraythe targets access points
Show Source
-
Array of:
object AccessPoint
This is the representation of a target access point.
Example:
[
{
"name":"ap_name",
"type":"ap_type",
"agent":"http://name.of.my.host:12345/emd/main"
}
]Nested Schema : properties
Type:
arraythe target properties
Show Source
-
Array of:
object TargetPropertySummary
A target property describes a property of a target by id, name, display name and the value
Example:
[
{
"id":"orcl_gtp_os",
"name":"Operating System",
"displayName":"Betriebssystem",
"value":"Linux"
},
{
"id":"orcl_gtp_platform",
"name":"Platform",
"displayName":"Plattform",
"value":"x86_64"
}
]Nested Schema : AccessPoint
Type:
objectThis is the representation of a target access point.
Show Source
-
agent(required): string
(uri)
the agent of the access pointExample:
http://name.of.my.host:12345/emd/main -
name(required): string
the name of the access pointExample:
ap_name -
type(required): string
the type of the access pointExample:
ap_type
Nested Schema : TargetPropertySummary
Type:
objectA target property describes a property of a target by id, name, display name and the value
Show Source
-
displayName: string
the property name in the client locale. If the client locale is unknown or not supported this is the same as the name.
-
id: string
the property id. This is the internal name of the property
-
name: string
the English property name.
-
value: string
the property value.
400 Response
Bad Request
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
401 Response
Unauthorized
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
404 Response
Not Found
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
500 Response
Internal Server Error
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
503 Response
Service Unavailable
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported