Skip to content

[FEATURE] Need an API to disable/enable monitor #1058

@eirsep

Description

@eirsep

making an update API call to disable or enable a monitor is not the best practice and is also very cumbersome as user would need to be aware of mapping of monitor document.
Since monitors are jobs and require to be enabled or disabled we should provide one of the following:

  1. PUT _plugins/_alerting/monitors/{monitor_id}/enable and PUT _plugins/_alerting/monitors/{monitor_id}/disable
  2. PUT _plugins/_alerting/monitors/{monitor_id}}/status {"enable" = true/false}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions