Skip to content

[DSIP-92][Alert] Support DolphinScheduler Configuration Markdown and String Alert Template #17390

@HeyAlaia

Description

@HeyAlaia

Search before asking

  • 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:

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions