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

Alerts: Creating WEB Alert Definitions via REST API Drops URI

    XMLWordPrintableJSON

Details

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

    Description

      {
        "AlertDefinition" : {
          "cluster_name" : "c1",
          "component_name" : "NAMENODE",
          "enabled" : true,
          "interval" : 1,
          "label" : "AD Creation Test",
          "name" : "ad_creation_test",
          "scope" : "ANY",
          "service_name" : "HDFS",
          "source" : {
            "uri": {
            "http": "{{hdfs-site/dfs.namenode.http-address}}",
            "https": "{{hdfs-site/dfs.namenode.https-address}}",
            "https_property": "{{hdfs-site/dfs.http.policy}}",
            "https_property_value": "HTTPS_ONLY"
            },
            "reporting" : {
              "ok" : {
                "text" : "TCP OK - {0:.4f} response on port {1}"
              },
              "critical" : {
                "text" : "Connection failed: {0} on host {1}:{2}"
              }
            },
            "type" : "WEB"
          }
        }
      }
      

      Creates the alert successfully, but the URI parameter is missing. This does not affect alerts read from alerts.json

      Attachments

        1. AMBARI-8035.patch
          18 kB
          Jonathan Hurley

        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: