You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
649 B

5 years ago
  1. # canaryBot
  2. Bot to check if services are alive.
  3. Current bots:
  4. - Matrix (Riot)
  5. #### Config
  6. File `config.json`
  7. ```json
  8. {
  9. "matrix": {
  10. "room_id": "!zzzzz:mmmmmm.ooo",
  11. "user": "aaaaa",
  12. "password": "xxxxx",
  13. "server": "https://sssss.ooo"
  14. },
  15. "services": [{
  16. "name": "name01",
  17. "url": "http://127.0.0.1:80",
  18. "statusCode": 200
  19. },
  20. {
  21. "name": "service02",
  22. "url": "http://127.0.0.1:7000/api",
  23. "statusCode": 200
  24. }
  25. ],
  26. "sleepTime": 30,
  27. "retry": 5
  28. }
  29. ```
  30. - sleepTime: time between each request to the services
  31. - retry: after X times failing, restart the counter
  32. ### Run
  33. ```
  34. ./canaryBot
  35. ```