Last active
July 4, 2017 13:16
-
-
Save hvisage/66d7bc162a88e3dfe329dbecbfa9affb to your computer and use it in GitHub Desktop.
Take dead man snitches list into csv for reports
This file contains 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
#!/bin/bash | |
TAG=aquacheck | |
API=$1 | |
curl -su ${APIKEY}: https://api.deadmanssnitch.com/v1/snitches \ | |
| jq -r 'sort_by(.status)|.[] | select(.tags[] | contains("${TAG}")) |[.name, .interval, .checked_in_at, .status]|@csv' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment