ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley" <jhur...@hortonworks.com>
Subject Review Request 28181: AlertGroup REST Endpoint Should Return Alert Definition Source Type
Date Tue, 18 Nov 2014 19:01:38 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/28181/
-----------------------------------------------------------

Review request for Ambari, Oleg Nechiporenko and Srimanth Gunturi.


Bugs: AMBARI-8375
    https://issues.apache.org/jira/browse/AMBARI-8375


Repository: ambari


Description
-------

Information about alert definitions should contain it's {{type}}.

{code:title="source_type" : "PORT" or "WEB" or "SCRIPT" or "METRIC"|borderStyle=solid}
http://localhost:8080/api/v1/clusters/c1/alert_groups?fields=*
     "AlertGroup" : {
        "cluster_name" : "c1",
        "default" : true,
        "definitions" : [
          {
            "name" : "ganglia_monitor_mapreduce_history_server",
            "label" : "Ganglia History Server Process Monitor",
            "enabled" : true,
            "service_name" : "GANGLIA",
            "component_name" : "GANGLIA_SERVER",
            "id" : 1,
            "source_type" : "PORT"
          },
...
{code}


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/controller/AlertDefinitionResponse.java
908fed8 
  ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProviderTest.java
422c6f2 

Diff: https://reviews.apache.org/r/28181/diff/


Testing
-------

mvn clean test


Thanks,

Jonathan Hurley


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message