[ https://issues.apache.org/jira/browse/AMBARI-8998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Hurley updated AMBARI-8998: ------------------------------------ Description: 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 } } }, {code} was: 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 not provided. 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 } } }, {code} > 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 > } > } > }, > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)