You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Jonathan Hurley (JIRA)" <ji...@apache.org> on 2015/01/06 05:03:35 UTC

[jira] [Created] (AMBARI-8998) Alert-instance grouped summary should include summary text

Jonathan Hurley created AMBARI-8998:
---------------------------------------

             Summary: 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


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}



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