-
Notifications
You must be signed in to change notification settings - Fork 2
Test to check vercel CI #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
556eb70
Add monitoring script with cooldown
0xflashboy bdb00e4
re-enable subscription
0xflashboy 728a534
remove subscription message send
0xflashboy 491a45b
don't set msg time on connect
0xflashboy 52b2f8b
tag devops in alert
0xflashboy bf1f49e
connection refresh
0xflashboy ef5979d
reset last msg time on reconnect
0xflashboy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # WebSocket Backend URL (ws:// or wss:// format) | ||
| BACKEND_URL=ws://localhost:3000 | ||
|
|
||
| # Slack Configuration | ||
| SLACK_TOKEN=xoxb-your-bot-token-here | ||
| SLACK_CHANNEL="#eng-alerts" | ||
|
|
||
| # Optional: Override default thresholds | ||
| # SILENCE_THRESHOLD_MS=10000 # Default: 10 seconds | ||
| # COOLDOWN_MS=300000 # Default: 5 minutes | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "root": false, | ||
| "extends": "//" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "name": "monapp-monitoring", | ||
| "version": "1.0.0", | ||
| "main": "dist/main.js", | ||
| "scripts": { | ||
| "build": "tsc", | ||
| "start": "node dist/main.js", | ||
| "dev": "tsx src/main.ts", | ||
| "lint": "biome check src --write" | ||
| }, | ||
| "dependencies": { | ||
| "@slack/web-api": "^7.10.0", | ||
| "dotenv": "^16.3.1", | ||
| "ws": "^8.18.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "2.1.2", | ||
| "@types/node": "^20.10.6", | ||
| "@types/ws": "^8.5.10", | ||
| "tsx": "^4.7.0", | ||
| "typescript": "^5.3.3" | ||
| }, | ||
| "engines": { | ||
| "node": ">=22.0.0" | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COOLDOWN_MSdefault documented incorrectly + missingCONNECTION_MAX_LIFETIME_MINTwo documentation gaps in the env example:
The comment says the default for
COOLDOWN_MSis 5 minutes (300000 ms), but the source code sets it to300_000 * 3 = 900_000 ms(15 minutes). Operators relying on this file to understand defaults will be misled.The
CONNECTION_MAX_LIFETIME_MINvariable (used on line 14 ofmain.ts, defaulting to 5 minutes) is not listed here at all. It should be documented so it can be tuned.Suggested addition: