class PDSMonitoringStatusService {

    @UseCaseAdminFetchesMonitoringStatus(@PDSStep(name="service call",description = "service fetches job state counts and gathers hearbeats of cluster members by serverId",number=4))
    public PDSMonitoring getMonitoringStatus() {
        String serverId = serverConfiguratonService.getServerId();
        
        PDSMonitoring monitoring = new PDSMonitoring();
        addStateCounts(serverId, monitoring);
        addHeartBeatDataAsMember(serverId, monitoring);
        
        return monitoring;
    }

}