Skip to content

Instantly share code, notes, and snippets.

@coreylight
Last active July 19, 2016 20:50
Show Gist options
  • Save coreylight/a31ae2657c1a96c804a5a8ec707b6240 to your computer and use it in GitHub Desktop.
Save coreylight/a31ae2657c1a96c804a5a8ec707b6240 to your computer and use it in GitHub Desktop.
Opsee Get All Checks
curl 'https://api.opsee.com/graphql' -H 'Pragma: no-cache' -H 'Origin: https://app.opsee.com' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'authorization: $OPSEE_TOKEN' -H 'content-type: application/json' -H 'Accept: */*' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36' -H 'Cache-Control: no-cache' -H 'Referer: https://app.opsee.com/' -H 'Connection: keep-alive' --data-binary '{"query":"{\n checks {\n \tid\n notifications {\n value\n type\n }\n target {\n address\n name\n type\n id\n }\n name\n min_failing_time\n min_failing_count\n response_count\n state\n spec {\n ... on schemaHttpCheck {\n verb\n protocol\n path\n port\n headers {\n name\n values\n }\n }\n ... on schemaCloudWatchCheck {\n metrics {\n namespace\n name\n }\n }\n }\n assertions {\n value\n relationship\n operand\n key\n }\n }\n }\n"}' --compressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment