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

Allow monitors to be cloned #243

@kid4git

Description

@kid4git

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions