diff --git a/pm/models/thresholdprofile.py b/pm/models/thresholdprofile.py index 93eb5fb4c3b2e7ffdfa9217bf270bf647544858b..8a99804bdd03e01dfe55953c9ea5695cac11c797 100644 --- a/pm/models/thresholdprofile.py +++ b/pm/models/thresholdprofile.py @@ -184,12 +184,12 @@ class ThresholdProfile(Document): "$collection": self._meta["json_collection"], "uuid": str(self.uuid), "description": self.description, - "umbrella_filter_handler": str(self.umbrella_filter_handler.id), + "umbrella_filter_handler__handler": self.umbrella_filter_handler.handler, "window_type": self.window_type, "window": self.window, "window_function": self.window_function, "window_config": self.window_config, - "value_handler": str(self.value_handler.id), + "value_handler__handler": self.value_handler.handler, "thresholds": [thrh.to_json() for thrh in self.thresholds], }, order=["name", "uuid", "thresholds"],