硬件数据采集

develop
yuemian 2024-09-06 16:58:34 +08:00
parent c8916ddc62
commit 4f38e65339
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,8 @@ public class AlistarController {
List<AlistarInstance> instances = this.getAlistarResourceInstance(); List<AlistarInstance> instances = this.getAlistarResourceInstance();
if ("SERVER".equalsIgnoreCase(category)) { if ("SERVER".equalsIgnoreCase(category)) {
instances = instances.stream().filter(inst -> "服务器".equals(inst.getCategory())).collect(Collectors.toList()); instances = instances.stream().filter(inst -> "服务器".equals(inst.getCategory())).collect(Collectors.toList());
} else if ("HARDWARE".equalsIgnoreCase(category)) {
instances = instances.stream().filter(inst -> "硬件".equals(inst.getCategory())).collect(Collectors.toList());
} else if ("NET".equalsIgnoreCase(category)) { } else if ("NET".equalsIgnoreCase(category)) {
instances = instances.stream() instances = instances.stream()
.filter(inst -> "网络设备".equals(inst.getCategory())) .filter(inst -> "网络设备".equals(inst.getCategory()))