The Alerts methods send_message has a missing self argument. This method is not used anywhere in the code nor any examples, I guess it was never tested/used. Common Python mistake, can be easily spotted by running a static analysis. This type of analysis is recommended in Python as it is an interpreted language, it has no compile time before execution. So I recommend using pylance or flake8 to do so.
The Alerts methods send_message has a missing self argument. This method is not used anywhere in the code nor any examples, I guess it was never tested/used. Common Python mistake, can be easily spotted by running a static analysis. This type of analysis is recommended in Python as it is an interpreted language, it has no compile time before execution. So I recommend using pylance or flake8 to do so.