Last active
July 21, 2023 07:51
-
-
Save shairyar/824fd3e82890ca676270885738326c7f to your computer and use it in GitHub Desktop.
GraphQL query to fetch incidents logged in AppSignal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query PaginatedExceptionIncidentsQuery($appId: String!, $namespaces: [String], $markerId: String, $limit: Int, $offset: Int, $state: IncidentStateEnum, $order: IncidentOrderEnum) { | |
app(id: $appId) { | |
id | |
paginatedExceptionIncidents( | |
namespaces: $namespaces | |
marker: $markerId | |
limit: $limit | |
state: $state | |
offset: $offset | |
order: $order | |
) { | |
total | |
rows { | |
...ExceptionIncidentRow | |
__typename | |
} | |
__typename | |
} | |
__typename | |
} | |
} | |
fragment ExceptionIncidentRow on ExceptionIncident { | |
id | |
number | |
count | |
perMarkerCount(marker: $markerId) | |
lastOccurredAt | |
actionNames | |
exceptionName | |
state | |
namespace | |
firstBacktraceLine | |
errorGroupingStrategy | |
severity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
query params
Here is the query to fetch deployments.