Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Allow monitors to be cloned #243

Open
kid4git opened this issue Feb 11, 2021 · 0 comments
Open

Allow monitors to be cloned #243

kid4git opened this issue Feb 11, 2021 · 0 comments

Comments

@kid4git
Copy link

kid4git commented Feb 11, 2021

It would be very helpful to be able to clone/duplicate monitors including triggers and actions. Some monitors really just differ in a query condition and some action subject, but it's tedious and takes minutes to create them with basically the same configuration as an existing one.

I tried cloning via API by getting the existing one with GET _opendistro/_alerting/monitors/<monitor_id>, stripping IDs and then posting as a new one with POST _opendistro/_alerting/monitors, but this creates unusable monitors as

  • in the monitor definition, the original visual graph is turned into an extraction query, changing this to a visual graph leaves me with an empty time field select box and thus an empty query
  • the same is true for the trigger definition which now shows the fields "Extraction query response", "Trigger condition" and "Trigger condition response" instead of the "Trigger condition" select box and the query graphic .
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant