Skip to content

Instantly share code, notes, and snippets.

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