Alert in custom panel plugin

I am developing custom visualization in Grafana. I have searched for using alerts in the custom plugins but can’t get an example of how to build it. Any suggestion is welcome.

Could you share a little more on what you’d like to do? Do you have an example maybe?

I want to embed the alert rule/Alert tab (which is similar to the Alert tab in the time series plugin) into my custom panel plugin

I only know you need to add a "alerting": true in the plugin.json file. I think it’s enough to start using the alerts. But I don’t know more about it.