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-7734) Alerts: Create REST API Endpoint for Alert History
Date Fri, 10 Oct 2014 17:55:36 GMT
Jonathan Hurley created AMBARI-7734:
---------------------------------------

             Summary: Alerts: Create REST API Endpoint for Alert History
                 Key: AMBARI-7734
                 URL: https://issues.apache.org/jira/browse/AMBARI-7734
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
             Fix For: 2.0.0


Create REST API endpoints for retrieving alert history. This includes the following work:

- Filters for services, hosts, alert names, timestamps, states, components
- Exposure of alert data (defintiion id/name, alert state, component, services, etc)

{code}
http://localhost:8080/api/v1/clusters/c1/alert_history?(AlertHistory/definition_name=percent_datanode)&AlertHistory/state=OK|AlertHistory/state=WARNING&fields=*&from=start&page_size=10
{code}

{code}
{
  "href" : "http://localhost:8080/api/v1/clusters/c1/alert_history?(AlertHistory/definition_name=percent_datanode)&AlertHistory/state=OK|AlertHistory/state=WARNING&fields=*&from=start&page_size=10",
  "itemTotal" : "2",
  "items" : [
    {
      "href" : "http://localhost:8080/api/v1/clusters/c1/alert_history/8",
      "AlertHistory" : {
        "cluster_name" : "c1",
        "component_name" : null,
        "definition_id" : 6,
        "definition_name" : "percent_datanode",
        "host_name" : null,
        "id" : 8,
        "instance" : null,
        "label" : "Percent DataNodes Live",
        "service_name" : "HDFS",
        "state" : "OK",
        "text" : "OK: total: 
<1>, affected: 
    <0>",
        "timestamp" : 1412720298046
      }
    },
...
}
{code}



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

Mime
View raw message