summaryrefslogtreecommitdiffstats
path: root/rulemgt/src
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-10-16 14:07:36 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-10-16 14:07:36 +0800
commitefee8d062b331ecbf1a0c779c6567b08bcd0fcb2 (patch)
tree8a19b4488285f96dd74cfec5d9f20572d996e1ff /rulemgt/src
parent1dacac49a9a8f22018ce84f8889b1af79fbbf859 (diff)
Fix the CSIT Problem
Change-Id: I31963025037d80d295eff1e71dc1773c723a735e Issue-ID: HOLMES-76 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt/src')
-rw-r--r--rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java2
-rw-r--r--rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java1
2 files changed, 3 insertions, 0 deletions
diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java
index c444b22..e97b94d 100644
--- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java
+++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/bean/response/RuleResult4API.java
@@ -39,4 +39,6 @@ public class RuleResult4API {
private Date updateTime;
private String modifier;
private int enabled;
+ @JsonProperty(value = "loopcontrolname")
+ private String closedControlLoopName;
}
diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java
index 6ab7576..146e034 100644
--- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java
+++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/wrapper/RuleMgtWrapper.java
@@ -235,6 +235,7 @@ public class RuleMgtWrapper {
ruleResult4API.setUpdateTime(correlationRule.getUpdateTime());
ruleResult4API.setModifier(correlationRule.getModifier());
ruleResult4API.setEnabled(correlationRule.getEnabled());
+ ruleResult4API.setClosedControlLoopName(correlationRule.getClosedControlLoopName());
ruleResult4APIs.add(ruleResult4API);
}
return ruleResult4APIs;