You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2014/10/13 03:07:33 UTC

[jira] [Commented] (AMBARI-7734) Alerts: Create REST API Endpoint for Alert History

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

Hudson commented on AMBARI-7734:
--------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #562 (See [https://builds.apache.org/job/Ambari-trunk-Commit/562/])
AMBARI-7734 - Alerts: Create REST API Endpoint for Alert History (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=03784ecad819a6b6ee422b4ba6158e9d860f3655)
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertHistoryResourceProviderTest.java
* ambari-server/src/main/resources/key_properties.json
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/AlertHistoryResourceDefinition.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/DefaultProviderModule.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java
* ambari-server/src/main/resources/properties.json
* ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertsDAOTest.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/AlertHistoryRequest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
* ambari-server/src/main/java/org/apache/ambari/server/api/services/AlertHistoryService.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractControllerResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertHistoryEntity_.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertHistoryResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity_.java
* ambari-server/src/main/java/org/apache/ambari/server/api/query/JpaPredicateVisitor.java


> 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)