Skip to content

Instantly share code, notes, and snippets.

@shairyar
Last active May 24, 2022 06:53
Show Gist options
  • Save shairyar/23452f22eeec1c1026637aebe72e05a2 to your computer and use it in GitHub Desktop.
Save shairyar/23452f22eeec1c1026637aebe72e05a2 to your computer and use it in GitHub Desktop.
query IncidentQuery($appId: String!, $incidentNumber: Int!, $sampleId: String, $timestamp: String, $timerange: [DateTime]) {
app(id: $appId) {
id
incident(incidentNumber: $incidentNumber) {
... on ExceptionIncident {
...ExceptionIncident
logbook {
...Logbook
__typename
}
__typename
}
... on PerformanceIncident {
...PerformanceIncident
logbook {
...Logbook
__typename
}
__typename
}
__typename
}
__typename
}
}
fragment ExceptionIncident on ExceptionIncident {
id
number
lastOccurredAt
actionNames
digests
exceptionName
notificationFrequency
state
namespace
firstBacktraceLine
errorGroupingStrategy
description
severity
assignees {
...AssigneeFragment
__typename
}
sample(id: $sampleId, timestamp: $timestamp, timerange: $timerange) {
...ExceptionSample
__typename
}
__typename
}
fragment ExceptionSample on ExceptionSample {
id
appId
time
revision
action
namespace
queueDuration
originallyRequested
overview {
key
value
__typename
}
params
sessionData
customData
environment {
key
value
__typename
}
exception {
name
message
backtrace {
original
line
column
path
method
url
type
code {
line
source
__typename
}
error {
class
message
__typename
}
__typename
}
__typename
}
firstMarker {
id
createdAt
shortRevision
revision
gitCompareUrl
user
__typename
}
breadcrumbs {
time
category
action
message
metadata {
key
value
__typename
}
__typename
}
__typename
}
fragment AssigneeFragment on User {
id
name
initials
__typename
}
fragment PerformanceIncident on PerformanceIncident {
id
number
lastOccurredAt
actionNames
state
notificationFrequency
notificationThreshold
namespace
description
severity
assignees {
...AssigneeFragment
__typename
}
sample(id: $sampleId, timestamp: $timestamp, timerange: $timerange) {
...PerformanceSample
__typename
}
__typename
}
fragment PerformanceSample on PerformanceSample {
id
appId
time
revision
action
namespace
originallyRequested
hasNPlusOne
timelineTruncatedEvents
overview {
key
value
__typename
}
params
sessionData
customData
environment {
key
value
__typename
}
duration
queueDuration
timeline {
...TimelineEvent
__typename
}
version
__typename
}
fragment TimelineEvent on TimelineEvent {
action
duration
childDuration
group
name
payload {
name
body
__typename
}
time
end
digest
count
level
allocationCount
childAllocationCount
__typename
}
fragment Logbook on Logbook {
id
items {
... on Note {
id
content
createdAt
updatedAt
viewerCanDelete
author {
id
name
__typename
}
__typename
}
... on StateChange {
id
createdAt
updatedAt
previousState
currentState
author {
id
name
__typename
}
__typename
}
... on SeverityChange {
id
createdAt
updatedAt
previousSeverity
currentSeverity
author {
id
name
__typename
}
__typename
}
... on NotificationFrequencyChange {
id
createdAt
updatedAt
previousFrequency
currentFrequency
author {
id
name
__typename
}
__typename
}
... on NotificationThresholdChange {
id
createdAt
updatedAt
previousThreshold
currentThreshold
author {
id
name
__typename
}
__typename
}
... on AssigneeChange {
id
createdAt
updatedAt
addedAssignees {
id
name
__typename
}
removedAssignees {
id
name
__typename
}
author {
id
name
__typename
}
__typename
}
... on NotifierResult {
id
createdAt
updatedAt
results {
successCount
successLast
errorCount
errorLast
notifier {
id
name
icon
__typename
}
__typename
}
__typename
}
... on IntegrationCreate {
id
createdAt
updatedAt
name
url
author {
id
name
__typename
}
__typename
}
__typename
}
__typename
}
@shairyar
Copy link
Author

{
"appId": "app-id",
"incidentNumber": 1
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment