Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yashmeh/is-my-api-down
This is a small configurable bot that checks URL-x for status at every x-minutes and notifies any x-channel on your slack workspace. :innocent:
https://github.com/yashmeh/is-my-api-down
api api-status cron docker slack slack-bot status
Last synced: 18 days ago
JSON representation
This is a small configurable bot that checks URL-x for status at every x-minutes and notifies any x-channel on your slack workspace. :innocent:
- Host: GitHub
- URL: https://github.com/yashmeh/is-my-api-down
- Owner: YashMeh
- Created: 2020-08-15T21:13:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T05:25:41.000Z (over 4 years ago)
- Last Synced: 2024-11-19T06:58:19.487Z (3 months ago)
- Topics: api, api-status, cron, docker, slack, slack-bot, status
- Language: JavaScript
- Homepage:
- Size: 86.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Api-Status Checker Slack BOT
This is a small configurable bot that checks URL-x for status at every x-minutes and notifies any x-channel on your slack workspace.
> You might end up modifying your API to have a separate /api/status GET route (check ./server.js)
### How to setup :construction_worker:
- Create a Slack App
- Create appropriate scope for the app(chats:read,chats:join)
- Get the token xoxb..
- Add the app to your workspace
- /invite the app to your channel### How to run :runner: :whale:
#### Build the image
```
docker image build -t .
```#### Run the container
```
docker run -d -e URL= -e SLACK_TOKEN= -e MINUTE= -e CHANNEL=
```#### How to test
- Once everything is setup,you will get the error posted to your channel.
- In case you want to test, grab the id of your container and go inside it
```
docker exec -it sh
```- run the server (at localhost:3002) and set the URL in the container as localhost:3002
```
npm run dev
```### Screenshot