You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2018/05/17 08:27:35 UTC

[ambari] branch trunk updated: AMBARI-23872. New Alert JSON Is Invalid When Sent To Agents (aonishuk)

This is an automated email from the ASF dual-hosted git repository.

aonishuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new d8e400c  AMBARI-23872. New Alert JSON Is Invalid When Sent To Agents (aonishuk)
d8e400c is described below

commit d8e400c9250b081f19b4f694ab33b61d17a368f7
Author: Andrew Onishuk <ao...@hortonworks.com>
AuthorDate: Thu May 17 10:27:56 2018 +0300

    AMBARI-23872. New Alert JSON Is Invalid When Sent To Agents (aonishuk)
---
 .../main/java/org/apache/ambari/server/state/alert/MetricSource.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/alert/MetricSource.java b/ambari-server/src/main/java/org/apache/ambari/server/state/alert/MetricSource.java
index e6fc6f3..cb6fd3b 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/state/alert/MetricSource.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/state/alert/MetricSource.java
@@ -108,12 +108,14 @@ public class MetricSource extends Source {
   @JsonInclude(JsonInclude.Include.NON_EMPTY)
   @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE)
   public static class JmxInfo {
+    @JsonProperty("property_list")
     @SerializedName("property_list")
     private List<String> propertyList;
 
     @SerializedName("value")
     private String value = "{0}";
 
+    @JsonProperty("url_suffix")
     @SerializedName("url_suffix")
     private String urlSuffix = "/jmx";
 

-- 
To stop receiving notification emails like this one, please contact
aonishuk@apache.org.