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 5E37D10406 for ; Tue, 18 Nov 2014 06:20:34 +0000 (UTC) Received: (qmail 13531 invoked by uid 500); 18 Nov 2014 06:20:34 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 13501 invoked by uid 500); 18 Nov 2014 06:20:34 -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 13281 invoked by uid 99); 18 Nov 2014 06:20:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2014 06:20:34 +0000 Date: Tue, 18 Nov 2014 06:20:34 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-8352) Alert Groups REST Endpoint Should Support Associated Definitions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-8352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14215765#comment-14215765 ] Hudson commented on AMBARI-8352: -------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit-docker #256 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/256/]) AMBARI-8352 - Alert Groups REST Endpoint Should Support Associated Definitions (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4955e5a19a142f3f3cdb8b339bc32a089c840644) * ambari-server/src/main/java/org/apache/ambari/server/controller/AlertDefinitionResponse.java * ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProviderTest.java * ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProvider.java > Alert Groups REST Endpoint Should Support Associated Definitions > ---------------------------------------------------------------- > > Key: AMBARI-8352 > URL: https://issues.apache.org/jira/browse/AMBARI-8352 > 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 > > Attachments: AMBARI-8352.patch > > > When requesting a collection of alert groups via {{api/v1/clusters/c1/alert_groups}}, the alert definitions that are associated with that group should be a field that is also returned. > {code} > http://localhost:8080/api/v1/clusters/c1/alert_groups?fields=AlertGroup/definitions > { > "href" : "http://localhost:8080/api/v1/clusters/c1/alert_groups?fields=AlertGroup/definitions", > "items" : [ > { > "href" : "http://localhost:8080/api/v1/clusters/c1/alert_groups/1", > "AlertGroup" : { > "cluster_name" : "c1", > "definitions" : [ > { > "name" : "ganglia_monitor_mapreduce_history_server", > "label" : "Ganglia History Server Process Monitor", > "enabled" : true, > "service_name" : "GANGLIA", > "component_name" : "GANGLIA_SERVER", > "id" : 1 > }, > { > "name" : "ganglia_monitor_yarn_resourcemanager", > "label" : "Ganglia ResourceManager Process Monitor", > "enabled" : true, > "service_name" : "GANGLIA", > "component_name" : "GANGLIA_SERVER", > "id" : 2 > }, > { > "name" : "ganglia_monitor_hdfs_namenode", > "label" : "Ganglia NameNode Process Monitor", > "enabled" : true, > "service_name" : "GANGLIA", > "component_name" : "GANGLIA_SERVER", > "id" : 3 > }, > { > "name" : "ganglia_monitor_hbase_master", > "label" : "Ganglia HBase Master Process Monitor", > "enabled" : true, > "service_name" : "GANGLIA", > "component_name" : "GANGLIA_SERVER", > "id" : 4 > }, > { > "name" : "ganglia_server_process", > "label" : "Ganglia Server Process", > "enabled" : true, > "service_name" : "GANGLIA", > "component_name" : "GANGLIA_SERVER", > "id" : 5 > } > ], > "id" : 1, > "name" : "GANGLIA" > } > } > ] > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)