[ https://issues.apache.org/jira/browse/AMBARI-7734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Hurley resolved AMBARI-7734. ------------------------------------- Resolution: Fixed > 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)