refactor(harness): remove legacy agent architecture
This commit is contained in:
@@ -27,10 +27,6 @@ public class SelfEvaluationMergeService {
|
||||
return merge(existingJson, "verifier_evaluation", verifierEvaluation);
|
||||
}
|
||||
|
||||
public String mergeAiOpsRuleEvaluation(String existingJson, Map<String, Object> aiOpsRuleEvaluation) {
|
||||
return merge(existingJson, "aiops_rule_evaluation", aiOpsRuleEvaluation);
|
||||
}
|
||||
|
||||
private String merge(String existingJson, String key, Map<String, Object> value) {
|
||||
try {
|
||||
Map<String, Object> root = parseRoot(existingJson);
|
||||
@@ -49,8 +45,7 @@ public class SelfEvaluationMergeService {
|
||||
|
||||
Map<String, Object> parsed = objectMapper.readValue(existingJson, MAP_TYPE);
|
||||
if (parsed.containsKey("rule_evaluation")
|
||||
|| parsed.containsKey("verifier_evaluation")
|
||||
|| parsed.containsKey("aiops_rule_evaluation")) {
|
||||
|| parsed.containsKey("verifier_evaluation")) {
|
||||
return new LinkedHashMap<>(parsed);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user