This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: KPI add into a new func in controller.
Added a generalized `add_kpi` function in kpi_controller. - Handles validation, adding to dashboards, anomaly params validation and running analytics. - validation and analytics run can be switched off. - Split some unrelated parts into separate functions - `_kpi_query_strip_trailing_semicolon` - `_add_kpi_to_dashboards` - `queue_kpi_analytics` (added to anomaly_tasks.py) Updated both the CLI and the KPI view to use this new function. Tested by adding a simple KPI from the UI and importing a KPI from the CLI.
- Loading branch information
Showing
4 changed files
with
165 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters