Skip to content

Commit

Permalink
Merge pull request #399 from ekapassa/master
Browse files Browse the repository at this point in the history
change "container_name" to "container" for CNFs rules
  • Loading branch information
ekapassa authored Jan 8, 2020
2 parents da51351 + b12707e commit c579129
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static JSONObject createMonitoringRules(String sla_uuid, ArrayList<String
String curr_vdu_id_quotes = "\"cdu01-" + curr_vdu_id + "\"";
String trimed_target_value = target_value.substring(0, target_value.length() - 1);

String condition = "delta(status{container_name=" + curr_vdu_id_quotes + "}[" + target_period
String condition = "delta(status{container=" + curr_vdu_id_quotes + "}[" + target_period
+ "]) > " + trimed_target_value;

rule_obj_dt.put("condition", condition);
Expand Down

0 comments on commit c579129

Please sign in to comment.