[DSIP-92][Alert] Support DolphinScheduler Configuration Markdown and String Alert Template
Search before asking
- [x] I had searched in the DSIP and found no similar DSIP.
Motivation
I want use dolphinScheduler configuration markdown or string alert template, like is:
markdown
## ${alertSubject}
* project name: ${projectName}
* workflow name: ${workflowName}
* alert time: ${alertTime}
* alert status: ${alertStatus}
or
string
${alertSubject}, project name: ${projectName}, workflow name: ${workflowName}
But this feature was not found.
Design Detail
In the alert instance editor, if you select the any plugin (Need plugin support) and choose Markdown or String as the message type,If it is a string, it will be the same as before, if markdown need a larger text box will appear below. Use this box to enter your Markdown template. You can use JSON strings (System built-in: like ${alertSubject}, ${projectName}, ${alertTime} etc.) to dynamically replace values within the template. like is:
Compatibility, Deprecation, and Migration Plan
This feature is fully backward-compatible and introduces Markdown, string template substitution. Data returned to any plugin will be automatically parsed for formatting.
Test Plan
Functional testing
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
+1.
We can provide the built-in workflow instance properties, and assemble this into the template, both in text/markdown. And all plugins can use the template syntax.
+1.
We can provide the built-in workflow instance properties, and assemble this into the template, both in text/markdown. And all plugins can use the template syntax.
Given the inconsistent template support among plugins, this feature is becoming complex. Let's proceed with developing an MVP version for now.
Given the inconsistent template support among plugins, this feature is becoming complex. Let's proceed with developing an MVP version for now.
As @ruanwenjun said, we should provide a unified way for all plugins to use. We don't need an MVP version since this is an open source project, not a commercial product.
Given the inconsistent template support among plugins, this feature is becoming complex. Let's proceed with developing an MVP version for now.
As @ruanwenjun said, we should provide a unified way for all plugins to use. We don't need an MVP version since this is an open source project, not a commercial product.
ok, need modify this issue?
ok, need modify this issue?
Yes. You also need to supplement the design details, you can refer to #16423.
ok, need modify this issue?
Yes. You also need to supplement the design details, you can refer to #16423.
done