List All CronJobs and their code
curl -X GET https://cronitor.io/v2/monitors -u <API Token>: | jq
curl -X GET https://cronitor.io/v2/monitors -u <API Token>: | jq . | jq '.monitors' | jq -c --raw-output '.[]|[.code,.name]|@tsv'
List all activities (Pings and Alerts) for a specific job code
curl -X GET https://cronitor.io/v2/monitors/<Cron Job Key>/activity -u <API Token>: | jq
List all Pings for a specific job code
curl -X GET https://cronitor.io/v2/monitors/<Cron Job Key>/pings -u <API Token>: | jq
curl -X GET https://cronitor.io/v2/monitors/<Cron Job Key>/pings -u <API Token>: | jq . | jq '.<Cron Job Key>' | jq -c --raw-output '.[]|[.monitor_name,.monitor_code,.description,.stamp,.created,.from,.host,.message,.status,.duration,.event,.count,.error_count]|@tsv'
curl -X GET https://cronitor.io/v2/monitors/<Cron Job Key>/pings -u <API Token>: | jq '.<Cron Job Key>[] += {"eventType": "Cronitor_Test1"}' | jq .<Cron Job Key>
List all Alerts for a specific job code
curl -X GET https://cronitor.io/v2/monitors/<Cron Job Key>/alerts -u <API Token>: | jq
curl -X GET https://cronitor.io/v2/monitors/<Cron Job Key>/alerts -u <API Token>: | jq . | jq '.<Cron Job Key>' | jq -c --raw-output '.[]|[.monitor_name,.monitor_code,.description,.stamp,.created,.from,.message,.event]|@tsv'