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]
        }
      }
      

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/)
          AMBARI-7051 - Alerts: Expose Creation and Updating of Group Targets & Definitions (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=76fc94ec1ab6ee904e0efa254c19521a201c06d4)

          • ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDispatchDAOTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/controller/AlertDefinitionResponse.java
          • ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertTarget.java
          • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProvider.java
          • ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java
          • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProviderTest.java
          • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProviderTest.java
          • ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java
          • ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py
          • ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py
          • ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java
          • ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java
          • ambari-server/src/main/java/org/apache/ambari/server/api/services/AlertGroupService.java
          • ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java
          • ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertGroupEntity.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/ ) AMBARI-7051 - Alerts: Expose Creation and Updating of Group Targets & Definitions (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=76fc94ec1ab6ee904e0efa254c19521a201c06d4 ) ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDispatchDAOTest.java ambari-server/src/main/java/org/apache/ambari/server/controller/AlertDefinitionResponse.java ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertTarget.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProvider.java ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProviderTest.java ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProviderTest.java ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java ambari-server/src/main/java/org/apache/ambari/server/api/services/AlertGroupService.java ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertGroupEntity.java

            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:

                Development