Tracks the status of scheduled jobs
- docker
- docker-compose
nice -19 docker-compose up -d --no-build
The build is configured to run in Dockerhub when a commit is pushed to the main
branch in github.
/report-status
Accepts a POST request with json encoded object containing the following fields:
system
The lucos system running the scheduled job. (Must be unique - for systems with multiple jobs, append something to distinguish them)frequency
A postive integer specifying how often the job should run, in seconds. (The threshold for alerting is double the expected frequency)status
The outcome of the scheduled job. Accepts either "success" or "error".message
[optional] An error message indicating why the job failed. (ignored if status is "success")
cURL examples:
curl "http://localhost:8024/report-status" -H "Content-Type: application/json" -i --data '{"system":"lucos_test","frequency": 45,"status":"success","message":"Good Thing Happened"}'
curl "http://localhost:8024/report-status" -H "Content-Type: application/json" -i --data '{"system":"lucos_test","frequency": 45,"status":"error","message":"Failure Happened"}'