Query
query Incidents {
incidents {
elements {
backfillMode
createdAt
deviation
endTime
group {
comments {
__typename
}
commentsCount
firstSeenAt
id
incidents {
__typename
}
lastSeenAt
}
id
}
index {
severity {
count
isNull
label
value
}
status {
count
isNull
label
value
}
}
pageInfo {
endCursor
filteredCount
hasNextPage
hasPreviousPage
startCursor
totalCount
}
}
}Response
{
"data": {
"incidents": {
"elements": [
{
"backfillMode": true,
"createdAt": "value",
"deviation": 1.5,
"endTime": "value",
"group": {
"comments": [
{
"__typename": "IncidentGroupComment"
}
],
"commentsCount": 1,
"firstSeenAt": "value",
"id": "value",
"incidents": {
"__typename": "IncidentsResult"
},
"lastSeenAt": "value"
},
"id": "value"
}
],
"index": {
"severity": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"status": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
]
},
"pageInfo": {
"endCursor": "string",
"filteredCount": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"totalCount": 1
}
}
}
}Queries
incidents
Get a paginated response of incidents. Requires INCIDENTS_READ permissions.
QUERY
incidents(filter: IncidentsFilter, pagination: PaginationInput, sort: IncidentsSort): IncidentsResult!Arguments
filter
pagination
sort
Returns
elements
[Incident!]!
index
pageInfo
Query
query Incidents {
incidents {
elements {
backfillMode
createdAt
deviation
endTime
group {
comments {
__typename
}
commentsCount
firstSeenAt
id
incidents {
__typename
}
lastSeenAt
}
id
}
index {
severity {
count
isNull
label
value
}
status {
count
isNull
label
value
}
}
pageInfo {
endCursor
filteredCount
hasNextPage
hasPreviousPage
startCursor
totalCount
}
}
}Response
{
"data": {
"incidents": {
"elements": [
{
"backfillMode": true,
"createdAt": "value",
"deviation": 1.5,
"endTime": "value",
"group": {
"comments": [
{
"__typename": "IncidentGroupComment"
}
],
"commentsCount": 1,
"firstSeenAt": "value",
"id": "value",
"incidents": {
"__typename": "IncidentsResult"
},
"lastSeenAt": "value"
},
"id": "value"
}
],
"index": {
"severity": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"status": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
]
},
"pageInfo": {
"endCursor": "string",
"filteredCount": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"totalCount": 1
}
}
}
}