File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,5 @@ This application can be configured using the following environment variables:
11
11
- ` VERBOSE_MODE ` : The verbose mode, if set to ` "true" ` , will print the result of each check in the logs (default: ` "false" ` )
12
12
- ` SHOW_ERRORS ` : If set to ` "true" ` ; it will display more details to the error in the logs (default: ` "true" ` )
13
13
- ` PING_INTERVAL ` : The interval of time in milliseconds where the ping to the MongoDB instance is done (default: ` "1000" ` )
14
+ - ` SLACK_TOKEN ` : The Slack token used to send messages to Slack (default: ` "secret-token" ` )
15
+ - ` SLACK_CHANNEL ` : The Slack channel where the messages will be sent (default: ` "mongo-alerts" ` )
Original file line number Diff line number Diff line change
1
+ //@ts -check
1
2
import "dotenv/config" ;
2
3
import { MongoClient } from "mongodb" ;
3
4
import { WebClient } from "@slack/web-api" ;
@@ -6,7 +7,7 @@ import Fastify from "fastify";
6
7
/**
7
8
* Check if the value is defined and return the default value if not as boolean.
8
9
*
9
- * @param {string } value
10
+ * @param {string | undefined } value
10
11
* @param {boolean } defaultValue
11
12
* @returns {boolean }
12
13
*/
You can’t perform that action at this time.
0 commit comments