How to implement the customized grafana alert

We are making a grafana plug-in for custom data source. Before that, we used typeScript and react to implement datasource and panel. Now I want to add alert function to them. I found that the official document says that first select the backend datasource plugin, then compile the front end with yarn install and yarn build, compile the back end with MAGE - V, and implement the plugin The queryData method in go? I put dataSource The dataSourceWithBackend inherited in TS is modified to dataSourceApi. My question is that the alarm function is all right. What else needs to be done?
env:
grafana 8.2.5


Have you enabled alerting in your plugin.json?

{
  "alerting": true,

  // ...
}