Implementing alerting on custom plugin

Actually, I just found this: (How can I make alerts work with my custom datasource plug-in? What should I make in the backend?) and it has a couple of examples. I’m going to check those out and see what I can find.