Query
query IncidentGroups {
incidentGroups {
elements {
comments {
author {
__typename
... on ApiKey {
__typename
}
}
body
createdAt
groupId
id
updatedAt
}
commentsCount
firstSeenAt
id
incidents {
elements {
__typename
}
index {
__typename
}
pageInfo {
__typename
}
}
lastSeenAt
}
index {
namespace {
count
isNull
label
value
}
owner {
count
isNull
label
value
}
priority {
count
isNull
label
value
}
segmentFields {
label
options
value
}
segmentation {
count
isNull
label
value
}
source {
count
isNull
label
value
}
}
pageInfo {
endCursor
filteredCount
hasNextPage
hasPreviousPage
startCursor
totalCount
}
}
}Response
{
"data": {
"incidentGroups": {
"elements": [
{
"comments": [
{
"author": {
"__typename": "ApiKey"
},
"body": "string",
"createdAt": "value",
"groupId": "value",
"id": "value",
"updatedAt": "value"
}
],
"commentsCount": 1,
"firstSeenAt": "value",
"id": "value",
"incidents": {
"elements": [
{
"__typename": "Incident"
}
],
"index": {
"__typename": "IncidentsIndex"
},
"pageInfo": {
"__typename": "PageInfo"
}
},
"lastSeenAt": "value"
}
],
"index": {
"namespace": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"owner": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"priority": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"segmentFields": [
{
"label": "string",
"options": [
"string"
],
"value": "string"
}
],
"segmentation": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"source": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
]
},
"pageInfo": {
"endCursor": "string",
"filteredCount": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"totalCount": 1
}
}
}
}Queries
incidentGroups
Get a paginated response of incident groups. Requires INCIDENTS_READ permissions.
QUERY
incidentGroups(filter: IncidentGroupsFilter, pagination: PaginationInput, sort: IncidentGroupsSort): IncidentGroupsResult!Arguments
filter
pagination
Returns
elements
[IncidentGroup!]!
index
pageInfo
Query
query IncidentGroups {
incidentGroups {
elements {
comments {
author {
__typename
... on ApiKey {
__typename
}
}
body
createdAt
groupId
id
updatedAt
}
commentsCount
firstSeenAt
id
incidents {
elements {
__typename
}
index {
__typename
}
pageInfo {
__typename
}
}
lastSeenAt
}
index {
namespace {
count
isNull
label
value
}
owner {
count
isNull
label
value
}
priority {
count
isNull
label
value
}
segmentFields {
label
options
value
}
segmentation {
count
isNull
label
value
}
source {
count
isNull
label
value
}
}
pageInfo {
endCursor
filteredCount
hasNextPage
hasPreviousPage
startCursor
totalCount
}
}
}Response
{
"data": {
"incidentGroups": {
"elements": [
{
"comments": [
{
"author": {
"__typename": "ApiKey"
},
"body": "string",
"createdAt": "value",
"groupId": "value",
"id": "value",
"updatedAt": "value"
}
],
"commentsCount": 1,
"firstSeenAt": "value",
"id": "value",
"incidents": {
"elements": [
{
"__typename": "Incident"
}
],
"index": {
"__typename": "IncidentsIndex"
},
"pageInfo": {
"__typename": "PageInfo"
}
},
"lastSeenAt": "value"
}
],
"index": {
"namespace": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"owner": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"priority": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"segmentFields": [
{
"label": "string",
"options": [
"string"
],
"value": "string"
}
],
"segmentation": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
],
"source": [
{
"count": 1,
"isNull": true,
"label": "string",
"value": "string"
}
]
},
"pageInfo": {
"endCursor": "string",
"filteredCount": 1,
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"totalCount": 1
}
}
}
}