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] [Updated] (AMBARI-8289) Alerts: Provide Grouped Summary Structure On Alerts Endpoint
Date Tue, 11 Nov 2014 21:55:33 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-8289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Hurley updated AMBARI-8289:
------------------------------------
    Attachment: AMBARI-8289.patch

> Alerts: Provide Grouped Summary Structure On Alerts Endpoint
> ------------------------------------------------------------
>
>                 Key: AMBARI-8289
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8289
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-8289.patch
>
>
> Add ability to get summary info about alerts grouped by {{alert_definition_name}}.
> {code}
> http://localhost:8080/api/v1/clusters/c1/alerts?format=groupedSummary
> {
>   "alerts_summary_grouped" : [
>     {
>       "definition_id" : 1,
>       "definition_name" : "datanode_process",
>       "summary" : {
>         "CRITICAL": {
>           "count": 1,
>           "original_timestamp": 1415372992337
>         },
>         "OK": {
>           "count": 1,
>           "original_timestamp": 1415372992337
>         },
>         "UNKNOWN": {
>           "count": 0,
>           "original_timestamp": 0
>         },
>        "WARN": {
>          "count": 0,
>          "original_timestamp": 0
>         }
>       }
>     },
>     {
>       "definition_id" : 2,
>       "definition_name" : "namenode_process",
>       "summary" : {
>         "CRITICAL": {
>           "count": 1,
>           "original_timestamp": 1415372992337
>         },
>         "OK": {
>           "count": 1,
>           "original_timestamp": 1415372992337
>         },
>         "UNKNOWN": {
>           "count": 0,
>           "original_timestamp": 0
>         },
>        "WARN": {
>          "count": 0,
>          "original_timestamp": 0
>         }
>       }
>     }    
>   ]
> }
> {code}



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

Mime
View raw message