| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.query.DataCenterQuery; |
| | | import com.ycl.platform.service.DataCenterService; |
| | | import com.ycl.platform.service.ITMonitorService; |
| | | import com.ycl.platform.service.PlatformOnlineService; |
| | | import com.ycl.system.Result; |
| | | import enumeration.BusinessType; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | query.setTime(); |
| | | return monitorService.assetManagement(query); |
| | | } |
| | | |
| | | /** |
| | | * 资产管理统计 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @GetMapping("/assetManagement/count") |
| | | @ApiOperation(value = "资产管理统计", notes = "资产管理统计") |
| | | @PreAuthorize("@ss.hasPermi('assetManagement:page')") |
| | | public Result assetManagementCount(DataCenterQuery query) { |
| | | query.setTime(); |
| | | return monitorService.assetManagementCount(query); |
| | | } |
| | | @DeleteMapping("/assetManagement/clear") |
| | | @ApiOperation(value = "清理一机一档", notes = "清理一机一档") |
| | | @PreAuthorize("@ss.hasPermi('point:remove')") |
| | | @Log(title = "清理一机一档", businessType = BusinessType.DELETE) |
| | | public Result clear() { |
| | | return monitorService.clearMonitor(); |
| | | } |
| | | /** |
| | | * 平台在线率 |
| | | * |