[Feature]MM2管理-MM2健康巡检(#894)

This commit is contained in:
zengqiao
2023-02-09 15:35:19 +08:00
committed by EricZeng
parent 861faa5df5
commit 5110b30f62
13 changed files with 414 additions and 22 deletions

View File

@@ -60,6 +60,14 @@ public class KafkaHealthController {
@ResponseBody
public Result<List<HealthScoreResultDetailVO>> getClusterHealthCheckResultDetail(@PathVariable Long clusterPhyId,
@RequestBody List<Integer> dimensionCodeList) {
if (dimensionCodeList.isEmpty()) {
return Result.buildSuc(
HealthScoreVOConverter.convert2HealthScoreResultDetailVOList(
healthStateService.getAllDimensionHealthResult(clusterPhyId)
)
);
}
return Result.buildSuc(HealthScoreVOConverter.convert2HealthScoreResultDetailVOList(
healthStateService.getDimensionHealthResult(clusterPhyId, dimensionCodeList)
));