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] [Created] (AMBARI-7778) Alerts: Expose Alert Notices via REST APIs
Date Tue, 14 Oct 2014 23:05:33 GMT
Jonathan Hurley created AMBARI-7778:
---------------------------------------

             Summary: Alerts: Expose Alert Notices via REST APIs
                 Key: AMBARI-7778
                 URL: https://issues.apache.org/jira/browse/AMBARI-7778
             Project: Ambari
          Issue Type: Task
          Components: ambari-server
    Affects Versions: 2.0.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
             Fix For: 2.0.0


For every outbound notification, Ambari currently keeps track of the dispatch state (PENDING,
DELIVERED, FAILURE). This data needs to be exposed via the REST APIs so that it can be queried.

{code}
http://localhost:8080/api/v1/clusters/c1/alert_notices?fields=*

{
  "href" : "http://localhost:8080/api/v1/clusters/c1/alert_notices?fields=*",
  "items" : [
    {
      "href" : "http://localhost:8080/api/v1/clusters/c1/alert_notices/1",
      "AlertNotice" : {
        "cluster_name" : "c1",
        "history_id" : 1,
        "id" : 1,
        "notification_state" : "DELIVERED",
        "service_name" : "HDFS",
        "target_id" : 1,
        "target_name" : "Administrators",
        "uuid" : "106ecdb4-0970-4c50-22d3-706d53571321"
      }
    },
    {
      "href" : "http://localhost:8080/api/v1/clusters/c1/alert_notices/2",
      "AlertNotice" : {
        "cluster_name" : "c1",
        "history_id" : 2,
        "id" : 2,
        "notification_state" : "DELIVERED",
        "service_name" : "HDFS",
        "target_id" : 1,
        "target_name" : "Administrators",
        "uuid" : "fffecdb4-0970-4dd0-22d3-706d53571321"
      }
    }
  ]
}
{code}



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

Mime
View raw message