Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A714F17BB8 for ; Wed, 29 Oct 2014 15:09:35 +0000 (UTC) Received: (qmail 25201 invoked by uid 500); 29 Oct 2014 15:09:35 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 25169 invoked by uid 500); 29 Oct 2014 15:09:35 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 25145 invoked by uid 99); 29 Oct 2014 15:09:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2014 15:09:35 +0000 Date: Wed, 29 Oct 2014 15:09:34 +0000 (UTC) From: "Jonathan Hurley (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-8018) Show all properties for source subresource in alert_definitions API response MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jonathan Hurley created AMBARI-8018: --------------------------------------- Summary: Show all properties for source subresource in alert_definitions API response Key: AMBARI-8018 URL: https://issues.apache.org/jira/browse/AMBARI-8018 Project: Ambari Issue Type: Task Components: alerts, ambari-server Affects Versions: 2.0.0 Reporter: Jonathan Hurley Assignee: Jonathan Hurley Fix For: 2.0.0 Currently response for http://c6401.ambari.apache.org:8080/api/v1/clusters/c/alert_definitions?fields=* is: {code} { "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c/alert_definitions?fields=*", "items" : [ { "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c/alert_definitions/1", "AlertDefinition" : { "cluster_name" : "c", "component_name" : "HISTORYSERVER", "enabled" : true, "id" : 1, "interval" : 1, "label" : "History Server Web UI", "name" : "mapreduce_history_server_webui", "scope" : "ANY", "service_name" : "MAPREDUCE2", "source" : { "type" : "WEB" } } }... {code} but response for http://c6401.ambari.apache.org:8080/api/v1/clusters/c/alert_definitions/1 is: {code} { "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c/alert_definitions/1", "AlertDefinition" : { "cluster_name" : "c", "component_name" : "HISTORYSERVER", "enabled" : true, "id" : 1, "interval" : 1, "label" : "History Server Web UI", "name" : "mapreduce_history_server_webui", "scope" : "ANY", "service_name" : "MAPREDUCE2", "source" : { "reporting" : { "ok" : { "text" : "HTTP {0} response in {3:.4f} seconds" }, "warning" : { "text" : "HTTP {0} response in {3:.4f} seconds" }, "critical" : { "text" : "Connection failed to {1}:{2}" } }, "type" : "WEB", "uri" : { "http" : "{{mapred-site/mapreduce.jobhistory.webapp.address}}", "https" : "{{mapred-site/mapreduce.jobhistory.webapp.https.address}}", "https_property" : "{{mapred-site/mapreduce.jobhistory.http.policy}}", "https_property_value" : "HTTPS_ONLY", "default_port" : 0.0 } } } } {code} And for mapping data on UI we need the full source data. Currently we need to make one request for all alert_definitions with all data except source and one request for each alert_definition just to get all source data. So after this change only one request will be enough to get all alert_definitions data. -- This message was sent by Atlassian JIRA (v6.3.4#6332)