[ https://issues.apache.org/jira/browse/AMBARI-8998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266307#comment-14266307 ]
Hudson commented on AMBARI-8998: -------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit-docker #671 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/671/]) AMBARI-8998 - Alert-instance grouped summary should include summary text (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=b3e556f787bf5b466a1258d2934fcda3a9375055) * ambari-server/src/main/java/org/apache/ambari/server/api/query/render/AlertStateValues.java * ambari-server/src/main/java/org/apache/ambari/server/api/query/render/AlertSummaryGroupedRenderer.java * ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertResourceProvider.java * ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertResourceProviderTest.java > Alert-instance grouped summary should include summary text > ---------------------------------------------------------- > > Key: AMBARI-8998 > URL: https://issues.apache.org/jira/browse/AMBARI-8998 > Project: Ambari > Issue Type: Task > Components: alerts, ambari-server > Affects Versions: 2.0.0 > Reporter: Jonathan Hurley > Assignee: Jonathan Hurley > Priority: Critical > Fix For: 2.0.0 > > Attachments: AMBARI-8998.patch > > > On the service summary page we show alert-definitions. For alert-definitions > with 1 instance, we want to show the instance text. To support this, the > alert-instance grouped summary call should provide an extra field called > {{latest_text}} which provides the single instance text value. If there are 2 > or more instances, then this field is ignored. > For instance a call to > {code}http://server:8080/api/v1/clusters/c1/alerts?format=groupedSummary{code} > should generate the extra field > {code} > { > "href" : > "http://sri-1:8080/api/v1/clusters/c1/alerts?format=groupedSummary&_=1420506715812", > "alerts_summary_grouped" : [ > { > "definition_id" : 13, > "definition_name" : "yarn_resourcemanager_webui", > "summary" : { > "OK" : { > "count" : 1, > "original_timestamp" : 1420487730165, > "maintenance_count" : 0, > "latest_text": "Everything OK" > }, > "WARNING" : { > "count" : 0, > "original_timestamp" : 0, > "maintenance_count" : 0 > }, > "CRITICAL" : { > "count" : 1, > "original_timestamp" : 0, > "maintenance_count" : 0, > "latest_text": "Unable to reach RM" > }, > "UNKNOWN" : { > "count" : 4, > "original_timestamp" : 0, > "maintenance_count" : 0, > "latest_text": "Everything OK" > } > } > }, > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)