Skip to content

Instantly share code, notes, and snippets.

View shairyar's full-sized avatar

shairyar shairyar

View GitHub Profile
@shairyar
shairyar / IncidentQuery.gql
Last active October 13, 2021 09:41
Fetching error incident from AppSignal using GraphQL
query IncidentQuery($appId: String!, $incidentNumber: Int!, $sampleId: String, $timestamp: String, $timerange: [DateTime]) {
app(id: $appId) {
id
incident(incidentNumber: $incidentNumber) {
... on ExceptionIncident {
...ExceptionIncident
__typename
}
__typename
}
@shairyar
shairyar / query.gql
Created June 24, 2021 15:24
Uptime monitors
query MetricTimeseriesQuery($appId: String!, $start: DateTime, $end: DateTime, $timeframe: TimeframeEnum, $query: [MetricTimeseries]) {
app(id: $appId) {
id
metrics {
timeseries(start: $start, end: $end, timeframe: $timeframe, query: $query) {
start
end
resolution
keys {
digest
@shairyar
shairyar / query.gql
Created June 24, 2021 15:23
uptime Response times per region
query MetricTimeseriesQuery($appId: String!, $start: DateTime, $end: DateTime, $timeframe: TimeframeEnum, $query: [MetricTimeseries]) {
app(id: $appId) {
id
metrics {
timeseries(start: $start, end: $end, timeframe: $timeframe,query: $query) {
start
end
resolution
keys {
digest