Skip to content

[Feature][Alert] Alert module support service for other service invoke #3754

@EricJoy2048

Description

@EricJoy2048

This is a sub issue of #3049
In this feature , Alert server is a message notification service , email and wechat is a plugin of this service . If you want send email message you can create an instance of email plugin in the alert group and then you can select the alert group in SqlTask . SqlTask can call the alert server api with this alert group arrguement to send the message.

So we need alert api to support other service invoke.

Now the alert service sends alarms abnormally by periodically scanning the records in table t_ds_alert. It is asynchronous.

In the SqlTask task case, the task need send message synchronous and the final running status of this task depends on whether the message is sent successfully. So the alert api need send messages synchronously.

the params of alert api :

  • alert group id : requied, One or more alert plugin instances are associated with an alert group, and these alert plugin instances will be called in turn when sending a message.
  • title : requied, the title of this alert message.
  • content: requied, the content of this alert message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions