Created
June 24, 2021 15:23
-
-
Save shairyar/13a0584c5cb4dd877e8898ccb45433e3 to your computer and use it in GitHub Desktop.
uptime Response times per region
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_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