Commit 294a095a authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🐦

load and display rules

parent 4c4970f7
Pipeline #990 passed with stages
in 27 seconds
......@@ -219,7 +219,7 @@ function buildAgent() {
models.pop();
}
$.post("http://hammer.vps.livebytes.co.uk:8000/rule-evaluator-1.0-SNAPSHOT/", model, function(data, textStatus, jqXHR){
$.post("http://hanabi.fossgalaxy.com/rule-evaluator-1.0-SNAPSHOT/eval", model, function(data, textStatus, jqXHR){
updateData(data);
updateGraph();
updateTable();
......@@ -228,6 +228,33 @@ function buildAgent() {
});
}
function buildAgentFixed() {
if (testPending) {
return;
}
testPending = true;
$("#testBtn .fa-spinner").css("display", "inline");
var ruleList = [];
$("#agent .list-group-item .ruleid").each(function(x, i) {
ruleList.push(i.innerHTML);
});
var model = ruleList.join(",");
models.unshift(model);
if(models.length > 4){
models.pop();
}
$.post("http://hanabi.fossgalaxy.com/rule-evaluator-1.0-SNAPSHOT/bench", model, function(data, textStatus, jqXHR){
updateData(data);
updateGraph();
updateTable();
testPending = false;
$("#testBtn .fa-spinner").css("display", "none");
});
}
var chart = null;
var allData = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment