ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-8035) Alerts: Creating WEB Alert Definitions via REST API Drops URI
Date Thu, 30 Oct 2014 03:32:34 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-8035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Hurley updated AMBARI-8035:
------------------------------------
    Attachment: AMBARI-8035.patch

> 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
>
>         Attachments: AMBARI-8035.patch
>
>
> {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)

Mime
View raw message