From 019ca69bcc8684a87960037fbdf218a16abcb938 Mon Sep 17 00:00:00 2001 From: sysfaray Date: Wed, 19 May 2021 14:56:47 +0300 Subject: [PATCH] Fix Threshold to json --- pm/models/thresholdprofile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pm/models/thresholdprofile.py b/pm/models/thresholdprofile.py index 93eb5fb4c3..8a99804bdd 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"], -- GitLab