This PR adds Zabbix 7.0 compatibility. There are numerous API changes in 7.0, for which a new compat.py module has been added. This module adds functions that take in the current Zabbix API version and return the correct API method parameter / object property name.
The current implementation is a bit messy, and we will have to consider if we want to refactor all the API calls. Constructing large parameter dicts inline leads to some readability issuses, which we should try to mitigate. It's already kind of overloaded with long names and such.
This PR adds Zabbix 7.0 compatibility. There are numerous API changes in 7.0, for which a new
compat.py
module has been added. This module adds functions that take in the current Zabbix API version and return the correct API method parameter / object property name.The current implementation is a bit messy, and we will have to consider if we want to refactor all the API calls. Constructing large parameter dicts inline leads to some readability issuses, which we should try to mitigate. It's already kind of overloaded with long names and such.