INNER CODE UNIT · JavaScript

updateChaosReportStartTime

lucky-sideburn/kubeinvaders · html/js/chaos_report.js:458

function updateChaosReportStartTime(projectName) {
  // console.log("[SAVE-CHAOS-REPORT-CONF] Updating Start Time for project: " + projectName);

  var oReq = new XMLHttpRequest();
  var redis_key = projectName + "_check_url_start_time";
  // console.log("[SAVE-CHAOS-REPORT-CONF] Redis key: " + redis_key);

  oReq.onreadystatechange = function () {
    if (this.readyState === XMLHttpRequest.DONE && this.status === 200) {
      $("#chaosReportDateDiv").html(this.responseText);
    }
  };;

  oReq.open("GET", k8s_url + "/chaos/redis/get?key=" + redis_key, true);
  oReq.setRequestHeader("Content-Type", "application/json");
  oReq.send();
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…