Created
June 24, 2021 15:24
-
-
Save shairyar/dd549cf0caf4997b7f928891fff495b8 to your computer and use it in GitHub Desktop.
Uptime monitors
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 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 | |
name | |
fields | |
tags { | |
key | |
value | |
__typename | |
} | |
__typename | |
} | |
points { | |
timestamp | |
values { | |
key | |
value | |
__typename | |
} | |
__typename | |
} | |
__typename | |
} | |
__typename | |
} | |
__typename | |
} | |
} |
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
{ | |
"appId": "YOUR-APP-ID", | |
"timeframe": "R24H", | |
"timezone": "Asia/Karachi", | |
"query": [ | |
{ | |
"name": "uptime_monitor_error_count", | |
"tags": [ | |
{ | |
"key": "name", | |
"value": "Home" | |
}, | |
{ | |
"key": "region", | |
"value": "*" | |
} | |
], | |
"fields": [ | |
{ | |
"field": "COUNTER" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment