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] [Created] (AMBARI-8998) Alert-instance grouped summary should include summary text
Date Tue, 06 Jan 2015 04:03:35 GMT
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)

Mime
View raw message