Search in sources :

Example 1 with Dashboard

use of com.usthe.manager.pojo.dto.Dashboard in project hertzbeat by dromara.

the class SummaryController method appMonitors.

@GetMapping
@ApiOperation(value = "Query all application category monitoring statistics", notes = "查询所有应用类别监控统计信息")
public ResponseEntity<Message<Dashboard>> appMonitors() {
    List<AppCount> appsCount = monitorService.getAllAppMonitorsCount();
    Message<Dashboard> message = new Message<>(new Dashboard(appsCount));
    return ResponseEntity.ok(message);
}
Also used : Message(com.usthe.common.entity.dto.Message) AppCount(com.usthe.manager.pojo.dto.AppCount) Dashboard(com.usthe.manager.pojo.dto.Dashboard) GetMapping(org.springframework.web.bind.annotation.GetMapping) ApiOperation(io.swagger.annotations.ApiOperation)

Aggregations

Message (com.usthe.common.entity.dto.Message)1 AppCount (com.usthe.manager.pojo.dto.AppCount)1 Dashboard (com.usthe.manager.pojo.dto.Dashboard)1 ApiOperation (io.swagger.annotations.ApiOperation)1 GetMapping (org.springframework.web.bind.annotation.GetMapping)1