This is a simple Spark bot to query the status of a web service. Its use is not limited to CMX Cloud health checking but that is the focus of this project.
- bot/bot.py: top level bot code built from the boilerplate_sparkbot repo.
- bot/helpers/checker.py: function that retrieves the HTTP status of a given host.
The bot can be activated by starting a conversation with cmxcheck@sparkbot.io
- User tells bot - "check host.domain.com"
- Bot initiates one (or maybe a few) round(s) of checks against host.domain.com via the function in checker.py
- Bot returns text to user - "the response code from <host.domain.com> was
- check
- /help: get help
- /echo: mirror the user's input
- Test branch and pipeline buildout.
- Improve error checking.
- Improve status code feedback to user.
- Add more checks.
- RTT
- DNS
- SRV
- CMX API integration for stats