Files

25 lines
658 B
JavaScript

class UpdateClusterIdInAnomalyLog extends ControllerBase {
// Конструктор
constructor(url) {
super("anomaly_logs/update_cluster_id");
}
// Отправка запроса на сервер
async SendRequest(log_id, cluster_id, cell) {
let parameters = {
'id': Number(log_id),
'cluster_id': Number(cluster_id)
};
await super.Any(parameters, "post");
this.UpdateCell(cluster_id, cell);
}
ProcessResponse(response) {}
UpdateCell(cluster_id, cell) {
cell.innerHTML = window.get_logs_clusters.clusters[cluster_id]["name"];
}
}