ambari-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/AMBARI-8035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190037#comment-14190037
] 

Hudson commented on AMBARI-8035:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit-docker #57 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/57/])
AMBARI-8035 - Alerts: Creating WEB Alert Definitions via REST API Drops URI (jonathanhurley)
(jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=f65a5af6c62c14c8442e7c3c6a88e07ac2a4a76e)
* ambari-agent/src/main/python/ambari_agent/alerts/metric_alert.py
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java
* ambari-agent/src/main/python/ambari_agent/alerts/web_alert.py


> 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