Skip to content

Commit

Permalink
健康检查去掉成功阈值配置
Browse files Browse the repository at this point in the history
  • Loading branch information
cgw committed Sep 11, 2023
1 parent 7b7b87d commit 251a7ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion static/page/env/health.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@
<input type="text" name="startup.timeout" placeholder="单位:秒" autocomplete="off" class="layui-input">
</div>
</div>
<!--
<div class="layui-form-item">
<label class="layui-form-label">成功次数阈值</label>
<div class="layui-input-block">
<input type="text" name="startup.successThreshold" placeholder="如:1" autocomplete="off" class="layui-input">
</div>
</div>
-->
<div class="layui-form-item">
<label class="layui-form-label">失败次数阈值</label>
<div class="layui-input-block">
Expand Down Expand Up @@ -96,16 +98,18 @@
<input type="text" name="readiness.timeout" placeholder="单位:秒" autocomplete="off" class="layui-input">
</div>
</div>
<!--
<div class="layui-form-item">
<label class="layui-form-label">成功次数阈值</label>
<div class="layui-input-block">
<input type="text" name="readiness.successThreshold" placeholder="如:1" autocomplete="off" class="layui-input">
</div>
</div>
-->
<div class="layui-form-item">
<label class="layui-form-label">失败次数阈值</label>
<div class="layui-input-block">
<input type="text" name="readiness.failureThreshold" placeholder="如:3" autocomplete="off" class="layui-input">
<input type="text" name="readiness.failureThreshold" placeholder="如:300" autocomplete="off" class="layui-input">
</div>
</div>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 5%">
Expand Down Expand Up @@ -150,12 +154,14 @@
<input type="text" name="liveness.timeout" placeholder="单位:秒" autocomplete="off" class="layui-input">
</div>
</div>
<!--
<div class="layui-form-item">
<label class="layui-form-label">成功次数阈值</label>
<div class="layui-input-block">
<input type="text" name="liveness.successThreshold" placeholder="如:1" autocomplete="off" class="layui-input">
</div>
</div>
-->
<div class="layui-form-item">
<label class="layui-form-label">失败次数阈值</label>
<div class="layui-input-block">
Expand Down
4 changes: 2 additions & 2 deletions static/page/env/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
var elem = $(this.elem)
,envId = elem.data('env-id')
,envName = elem.data('env-name');
data2 = JSON.stringify({'envId': envId});
data2 = JSON.stringify({'envId': envId, 'envName': envName});
if(data.id == 'delete'){
doDelete($, appId, envId, envName);
}else if(data.id == 'update'){
Expand Down Expand Up @@ -221,7 +221,7 @@
});

table.on('tool(currentTableFilter)', function (obj) {
data2 = JSON.stringify({'envId': obj.data.id});
data2 = JSON.stringify({'envId': obj.data.id, 'envName': obj.data.envName});
if (obj.event === 'deploy') {
var index = layer.open({
title: '部署',
Expand Down

0 comments on commit 251a7ae

Please sign in to comment.