https://github.com/quickblox/quickblox-status-checker-2.0
Rewritten original status checker and added some new checks for chat 2.0
https://github.com/quickblox/quickblox-status-checker-2.0
Last synced: about 1 year ago
JSON representation
Rewritten original status checker and added some new checks for chat 2.0
- Host: GitHub
- URL: https://github.com/quickblox/quickblox-status-checker-2.0
- Owner: QuickBlox
- License: mit
- Created: 2014-08-30T15:31:47.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-12-18T14:56:25.000Z (over 11 years ago)
- Last Synced: 2024-03-26T15:03:52.986Z (about 2 years ago)
- Language: JavaScript
- Size: 328 KB
- Stars: 6
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Quickblox Status Checker 2.1
============================
3rd iteration of the [status checker](http://status.quickblox.com) we use to monitor the API.
### Getting dependencies
npm install
### Map
- `server.js` - Runs a server and serves /templates/status.html (and files in ./files). Handles requests, initiated the ‘live test’ and the cron job for routine checking is also inside this file.
- `check.js` - Runs the actual checks. Create a check with `new Check(instance, callback)` where `instance` is an {object} from config.instances, and callback returns the data on completion, passes an object containing `latency`, `errors` and `total`.
- `alerts.js` - Sends an email when some stats failed using AWS SES.
- `config.js` - Should be called `42.js`. Contains all the answers to life. And some Quickblox configuration. (Same thing really)
### Running a check
Add an instance to config.testInstance or to config.instances. For the former, start the script with
node check.js --go-with-test
For the latter, start with
node check.js --go