You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2014/10/30 04:25:33 UTC

[jira] [Created] (AMBARI-8035) Alerts: Creating WEB Alert Definitions via REST API Drops URI

Jonathan Hurley created AMBARI-8035:
---------------------------------------

             Summary: Alerts: Creating WEB Alert Definitions via REST API Drops URI
                 Key: AMBARI-8035
                 URL: https://issues.apache.org/jira/browse/AMBARI-8035
             Project: Ambari
          Issue Type: Bug
          Components: alerts, ambari-server
    Affects Versions: 2.0.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
             Fix For: 2.0.0


{code}
{
  "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"
    }
  }
}
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)