[
https://issues.apache.org/jira/browse/AMBARI-8352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14215762#comment-14215762
]
Hudson commented on AMBARI-8352:
--------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #966 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/966/])
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/internal/AlertGroupResourceProvider.java
*
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
> 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)