Werk #17884 · May 13, 25
Ruleset API: Fix NotificationParameter discovery
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
This change is relevant for plugin developers using cmk.rulesets.v1.rule_specs.NotificationParameters
The discovery of the NotificationParameters using the
rule_spec_<var_name> = NotificationParameters(...
syntax was previously broken and is with this werk now working as intended.
Note that in order to use the parameters the name has to match the name of the notifications script.
This discovery approach replaced the legacy approach
from cmk.gui.watolib.notification_parameter import notification_parameter_registry
notification_parameter_registry.register(NotificationParameterExample)
and
@notification_parameter_registry.register
class NotificationParameterExample(NotificationParameter):
which is no longer supported as of this Checkmk version.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 2.5.0b1All Editions
- 2.4.0p4All Editions
- 2.3.0p34CommunityProUltimateUltimate + MT