use of com.alibaba.csp.sentinel.slots.system.SystemRule in project XHuiCloud by sindaZeng.
the class SystemRuleEntity method toRule.
@Override
public SystemRule toRule() {
SystemRule rule = new SystemRule();
rule.setHighestSystemLoad(highestSystemLoad);
rule.setAvgRt(avgRt);
rule.setMaxThread(maxThread);
rule.setQps(qps);
rule.setHighestCpuUsage(highestCpuUsage);
return rule;
}
use of com.alibaba.csp.sentinel.slots.system.SystemRule in project RuoYi-Cloud-Plus by JavaLionLi.
the class SystemRuleEntity method toRule.
@Override
public SystemRule toRule() {
SystemRule rule = new SystemRule();
rule.setHighestSystemLoad(highestSystemLoad);
rule.setAvgRt(avgRt);
rule.setMaxThread(maxThread);
rule.setQps(qps);
rule.setHighestCpuUsage(highestCpuUsage);
return rule;
}
use of com.alibaba.csp.sentinel.slots.system.SystemRule in project Sermant by huaweicloud.
the class SystemRuleVo method toRule.
@Override
public SystemRule toRule() {
SystemRule rule = new SystemRule();
rule.setHighestSystemLoad(highestSystemLoad);
rule.setAvgRt(avgRt);
rule.setMaxThread(maxThread);
rule.setQps(qps);
rule.setHighestCpuUsage(highestCpuUsage);
return rule;
}
Aggregations