-
Notifications
You must be signed in to change notification settings - Fork 181
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
feat: alert message template - pt1 #318
Conversation
|
@@ -54,53 +53,6 @@ const validateGroupBy = async ( | |||
next(); | |||
}; | |||
|
|||
const translateExternalAlertToInternalAlert = ( |
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.
Move these two methods to zod.ts
@@ -93,7 +93,7 @@ | |||
"scripts": { | |||
"start": "node ./build/index.js", | |||
"dev": "nodemon --signal SIGTERM -e ts,json --exec 'ts-node' --transpile-only -r tsconfig-paths/register -r '@hyperdx/node-opentelemetry/build/src/tracing' ./src/index.ts", | |||
"dev:task": "ts-node -r tsconfig-paths/register -r '@hyperdx/node-opentelemetry/build/src/tracing' ./src/tasks/index.ts", | |||
"dev:task": "ts-node -r tsconfig-paths/register ./src/tasks/index.ts", |
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.
disable tracing for the scheduled task
blocks: [ | ||
{ | ||
text: { | ||
text: [ | ||
`*<http://localhost:9090/dashboards/${dashboard._id}?from=1700170200000&granularity=5+minute&to=1700174700000 | Alert for "Max Duration" in "My Dashboard">*`, | ||
'Group: "HyperDX"', | ||
'102 exceeds 10', | ||
'', |
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.
nit: should we just trim()
the rendered string so we don't send extra new lines?
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.
good idea. let me do it in the next pr
No description provided.