Grafana + Custom Datasource + Alert

I have a question, if we develop a custom datasource plugin, how to support alarm function, whether only you and you can develop to support alarm, I can not find support for alert from the source code on github.

I can’t find the API in the source code to verify whether the data source supports alarm.
Please help me,Very Thasks!