Skip to content

Instantly share code, notes, and snippets.

@shairyar
Last active September 17, 2021 10:31
Show Gist options
  • Save shairyar/5415e30c0ba275deae7ee837bdecf2a3 to your computer and use it in GitHub Desktop.
Save shairyar/5415e30c0ba275deae7ee837bdecf2a3 to your computer and use it in GitHub Desktop.
Search incidents
query Search(
$organizationSlug: String!
$query: String
$namespace: String
$sampleType: SampleTypeEnum
) {
organization(slug: $organizationSlug) {
search(
query: $query
namespace: $namespace
sampleType: $sampleType
) {
... on ExceptionSample {
id
time
action
namespace
overview {
key
value
}
exception {
name
message
}
incident {
... on ExceptionIncident {
number
}
}
app {
name
environment
id
}
}
... on PerformanceSample {
id
appId
time
action
namespace
duration
overview {
key
value
}
incident {
... on PerformanceIncident {
number
}
}
app {
name
environment
id
}
}
}
}
}
@shairyar
Copy link
Author

query variables

{
  "organizationSlug":"APPLICATION-SLUG" // taken from the URL of the application,
  "sampleType":"EXCEPTION",
  "query": "tag:value" // replace the word value with the values you are searching for against a tag in exceptions  
}

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