Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-7051

Alerts: Expose Creation and Updating of Group Targets & Definitions

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      The alert group endpoint api/v1/clusters/c1/alert_groups must provide structured responses for both the definitions and targets associated with that group.

      The endpoint must also allow updating of the group name, target associations, and definition associations.

      Creation or update of a group with associated targets and definitions.

      POST api/v1/clusters/c1/alert_groups
      {
        "AlertGroup": {
          "name": "Test",
          "targets": [4,5],
          "definitions": [2]
        }
      }
      
      PUT api/v1/clusters/c1/alert_groups/10
      {
        "AlertGroup": {
          "name": "Test",
          "targets": [4,5],
          "definitions": [2]
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jonathan.hurley Jonathan Hurley
                Reporter:
                jonathan.hurley Jonathan Hurley
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: