Add to_json for thresholdprofile See merge request !4380 (cherry picked from commit 0154978c) 2750b6d0 Add to_json for thresholdprofile efaa08e3 fix MyPy 60899c1c add migration f37a4c3d Clean print.