Signed-off-by: Eric Zhao <sczyh16@gmail.com>master
@@ -89,14 +89,14 @@ app.controller('MetricCtl', ['$scope', '$stateParams', 'MetricService', '$interv | |||||
min: 0, | min: 0, | ||||
max: maxQps, | max: maxQps, | ||||
fine: true, | fine: true, | ||||
alias: 'p_qps' | |||||
alias: '通过 QPS' | |||||
// max: 10 | // max: 10 | ||||
}); | }); | ||||
chart.scale('blockQps', { | chart.scale('blockQps', { | ||||
min: 0, | min: 0, | ||||
max: maxQps, | max: maxQps, | ||||
fine: true, | fine: true, | ||||
alias: 'b_qps', | |||||
alias: '拒绝 QPS', | |||||
}); | }); | ||||
chart.scale('rt', { | chart.scale('rt', { | ||||
min: 0, | min: 0, | ||||
@@ -131,10 +131,10 @@ app.controller('MetricCtl', ['$scope', '$stateParams', 'MetricService', '$interv | |||||
allowAllCanceled: true, | allowAllCanceled: true, | ||||
itemFormatter: function (val) { | itemFormatter: function (val) { | ||||
if ('passQps' === val) { | if ('passQps' === val) { | ||||
return 'p_qps(通过 QPS)'; | |||||
return '通过 QPS'; | |||||
} | } | ||||
if ('blockQps' === val) { | if ('blockQps' === val) { | ||||
return 'b_qps(拒绝 QPS)'; | |||||
return '拒绝 QPS'; | |||||
} | } | ||||
return val; | return val; | ||||
}, | }, | ||||
@@ -181,7 +181,7 @@ app.controller('MetricCtl', ['$scope', '$stateParams', 'MetricService', '$interv | |||||
MetricService.queryAppSortedIdentities(params).success(function (data) { | MetricService.queryAppSortedIdentities(params).success(function (data) { | ||||
$scope.metrics = []; | $scope.metrics = []; | ||||
$scope.emptyObjs = []; | $scope.emptyObjs = []; | ||||
if (data.code == 0 && data.data) { | |||||
if (data.code === 0 && data.data) { | |||||
var metricsObj = data.data.metric; | var metricsObj = data.data.metric; | ||||
var identityNames = Object.keys(metricsObj); | var identityNames = Object.keys(metricsObj); | ||||
if (identityNames.length < 1) { | if (identityNames.length < 1) { | ||||
@@ -73,8 +73,8 @@ | |||||
<div class="col-sm-8"> | <div class="col-sm-8"> | ||||
<label class="checkbox-inline"> | <label class="checkbox-inline"> | ||||
<input type="checkbox" name="clusterMode" ng-model="currentRule.clusterConfig.fallbackToLocalWhenFail"> | <input type="checkbox" name="clusterMode" ng-model="currentRule.clusterConfig.fallbackToLocalWhenFail"> | ||||
<i class="glyphicon glyphicon-info-sign"></i>如果集群限流失败是否退化到单机限流 | |||||
</label> | </label> | ||||
<i class="glyphicon glyphicon-info-sign"></i> 如果 Token Server 不可用是否退化到单机限流 | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -51,9 +51,9 @@ | |||||
<thead> | <thead> | ||||
<tr style="font-size: 13px;text-align:center;font-weight: bold;"> | <tr style="font-size: 13px;text-align:center;font-weight: bold;"> | ||||
<td style="word-wrap:break-word;word-break:break-all;">时间</td> | <td style="word-wrap:break-word;word-break:break-all;">时间</td> | ||||
<td style="word-wrap:break-word;word-break:break-all;" title="passQps: 通过的qps">通过QPS</td> | |||||
<td style="word-wrap:break-word;word-break:break-all;" title="blockQps: 拦截的qps">拒绝QPS</td> | |||||
<td style="word-wrap:break-word;word-break:break-all;" title="responseTime: 响应时间(毫秒)">响应时间(ms)</td> | |||||
<td style="word-wrap:break-word;word-break:break-all;" title="通过 QPS (pass qps)">通过 QPS</td> | |||||
<td style="word-wrap:break-word;word-break:break-all;" title="拒绝 QPS (blocked qps)">拒绝QPS</td> | |||||
<td style="word-wrap:break-word;word-break:break-all;" title="RT: 平均响应时间(毫秒)">响应时间(ms)</td> | |||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||
<!-- thead --> | <!-- thead --> | ||||