You can write an extension from scrach using your favourate language following Design Details.
The utils we offer are optional. They are writen in Python, and they can accelerate your development. Without them, you need to handle the protocal between WALA and extensions by yourself.
HandlerUtils.py handles the protocal between WALA and extensions, status and heartbeat reporting, and the logging.
- Get your settings
get_public_settings()method returns the public settingsget_protected_settings()method returns the protected settings which have been decrypted.
- Status reporting
do_status_reportmethod reports the status, but not exists.do_exitmethod reports the status and exists.
- Logging
- HandlerUtils.py will put the logs into the log file
extension.logwhich is located inlogFolderofhandlerEnvironment.json. - The method
loganderrorcan be used.
- HandlerUtils.py will put the logs into the log file
WAAgentUtil.py helps to load the source of WALA. You can use the function in WALA, for e.g. GetFileContents.