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

Alerts: Implement Property Updates for Alert Targets

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • alerts, ambari-server
    • None

    Description

      Alert Targets should have the ability to contain an unstructured set of properties so that customer defined targets (and dispatchers) can still be stored and retrieved by Ambari.

      The initial design had a defined structure for both email and snmp protocols. However, these properties were just turned into a flat set by the data layer.

      For the initial approach, it doesn't make much sense to try to model structured properties when, at the end of the day, they need to be serialized to a map.

      {
        "AlertTarget": {
          "name": "Administrators",
          "description": "The Admins",
          "notification_type": "EMAIL",
          "properties":{
            "mail.smtp.host": "my.host.net",
            "mail.smtp.port" : "587",
            ...
          }
        }
      }
      

      This also lets any property defined be passed to the backend provider in order to properly dispatch to the targets.

      Attachments

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: