feature(web): 增加 Overview 页面

方便总览全局情况,跨页面查看信息多有不便
This commit is contained in:
2023-06-12 18:29:28 +08:00
parent d85c3a4864
commit 4e963fa537
8 changed files with 550 additions and 13 deletions

View File

@@ -10,9 +10,10 @@ import com.lanyuanxiaoyao.service.configuration.entity.PageResponse;
import com.lanyuanxiaoyao.service.configuration.entity.info.JobAndMetas;
import com.lanyuanxiaoyao.service.configuration.entity.info.JobIdAndAlias;
import com.lanyuanxiaoyao.service.configuration.entity.info.VersionUpdated;
import java.util.Map;
import org.eclipse.collections.api.list.ImmutableList;
import java.util.Map;
/**
* Info 接口
*
@@ -21,6 +22,30 @@ import org.eclipse.collections.api.list.ImmutableList;
*/
@BaseRequest(baseURL = "http://service-info-query/info")
public interface InfoService {
@Get("/table_total")
Long tableTotal();
@Get("/hudi_total")
Long hudiTotal();
@Get("/focus_count")
Long focusCount();
@Get("/normal_count")
Long normalCount();
@Get("/un_scheduled_normal_table_count")
Long unScheduledNormalTableCount(@Query("version") String version);
@Get("/un_scheduled_focus_table_count")
Long unScheduledFocusTableCount(@Query("version") String version);
@Get("/un_receive_version_normal_table_count")
Long unReceiveVersionNormalTableCount(@Query("version") String version);
@Get("/un_receive_version_focus_table_count")
Long unReceiveVersionFocusTableCount(@Query("version") String version);
@Get("/job_id_alias")
PageResponse<JobIdAndAlias> jobIdAndAlias(@Query Map<String, Object> queryMap);

View File

@@ -20,4 +20,7 @@ public interface QueueService {
@Get("/all/{name}")
ImmutableList<QueueItem<ScheduleJob>> all(@Var("name") String name);
@Get("/size/{name}")
Integer size(@Var("name") String name);
}