feature(info-query): 增加hudi表类型过滤

This commit is contained in:
2023-07-11 17:43:43 +08:00
parent 2ac1e0be2c
commit 5abfe2d017
7 changed files with 201 additions and 88 deletions

View File

@@ -7,10 +7,7 @@ import com.eshore.odcp.hudi.connector.entity.FlinkJob;
import com.eshore.odcp.hudi.connector.entity.SyncState;
import com.eshore.odcp.hudi.connector.entity.TableMeta;
import com.lanyuanxiaoyao.service.configuration.entity.PageResponse;
import com.lanyuanxiaoyao.service.configuration.entity.info.CompactionMetrics;
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 com.lanyuanxiaoyao.service.configuration.entity.info.*;
import java.util.Map;
import org.eclipse.collections.api.list.ImmutableList;
@@ -20,98 +17,101 @@ import org.eclipse.collections.api.list.ImmutableList;
* @author lanyuanxiaoyao
* @date 2023-04-24
*/
@BaseRequest(baseURL = "http://service-info-query/info")
@BaseRequest(baseURL = "http://service-info-query")
public interface InfoService {
@Get("/table_count")
@Get("/logs")
ImmutableList<SQLLine> sqlLogs();
@Get("/info/table_count")
Long tableCount();
@Get("/table_focus_count")
@Get("/info/table_focus_count")
Long tableFocusCount();
@Get("/hudi_count")
@Get("/info/hudi_count")
Long hudiCount();
@Get("/hudi_focus_count")
@Get("/info/hudi_focus_count")
Long hudiFocusCount();
@Get("/hive_count")
@Get("/info/hive_count")
Long hiveCount();
@Get("/hive_focus_count")
@Get("/info/hive_focus_count")
Long hiveFocusCount();
@Get("/un_receive_version_normal_table")
@Get("/info/un_receive_version_normal_table")
ImmutableList<JobIdAndAlias> unReceiveVersionNormalTable(@Query("version") String version);
@Get("/un_receive_version_normal_table_count")
@Get("/info/un_receive_version_normal_table_count")
Long unReceiveVersionNormalTableCount(@Query("version") String version);
@Get("/un_receive_version_focus_table")
@Get("/info/un_receive_version_focus_table")
ImmutableList<JobIdAndAlias> unReceiveVersionFocusTable(@Query("version") String version);
@Get("/un_receive_version_focus_table_count")
@Get("/info/un_receive_version_focus_table_count")
Long unReceiveVersionFocusTableCount(@Query("version") String version);
@Get("/un_scheduled_normal_table")
@Get("/info/un_scheduled_normal_table")
ImmutableList<JobIdAndAlias> unScheduledNormalTable(@Query("version") String version);
@Get("/un_scheduled_normal_table_count")
@Get("/info/un_scheduled_normal_table_count")
Long unScheduledNormalTableCount(@Query("version") String version);
@Get("/un_scheduled_focus_table")
@Get("/info/un_scheduled_focus_table")
ImmutableList<JobIdAndAlias> unScheduledFocusTable(@Query("version") String version);
@Get("/un_scheduled_focus_table_count")
@Get("/info/un_scheduled_focus_table_count")
Long unScheduledFocusTableCount(@Query("version") String version);
@Get("/job_id_alias")
@Get("/info/job_id_alias")
PageResponse<JobIdAndAlias> jobIdAndAlias(@Query Map<String, Object> queryMap);
@Get("/version_tables")
@Get("/info/version_tables")
PageResponse<VersionUpdated> versionTables(@Query Map<String, Object> queryMap);
@Get("/compaction_metrics")
@Get("/info/compaction_metrics")
PageResponse<CompactionMetrics> compactionMetrics(@Query Map<String, Object> queryMap);
@Get("/job_metas")
@Get("/info/job_metas")
ImmutableList<JobAndMetas> jobAndMetas();
@Get("/flink_job/list")
@Get("/info/flink_job/list")
ImmutableList<FlinkJob> flinkJobList();
@Get("/flink_job/detail")
@Get("/info/flink_job/detail")
FlinkJob flinkJobDetail(@Query("flink_job_id") Long flinkJobId);
@Get("/table_meta/list")
@Get("/info/table_meta/list")
ImmutableList<TableMeta> tableMetaList();
@Get("/table_meta/list")
@Get("/info/table_meta/list")
ImmutableList<TableMeta> tableMetaList(@Query("flink_job_id") Long flinkJobId);
@Get("/table_meta/detail")
@Get("/info/table_meta/detail")
TableMeta tableMetaDetail(@Query("flink_job_id") Long flinkJobId, @Query("alias") String alias);
@Get("/sync_state/detail")
@Get("/info/sync_state/detail")
SyncState syncStateDetail(@Query("flink_job_id") Long flinkJobId, @Query("alias") String alias);
@Get("/non_updated_version_tables")
@Get("/info/non_updated_version_tables")
ImmutableList<String> nonUpdatedVersionTables();
@Get("/updated_version_tables")
@Get("/info/updated_version_tables")
ImmutableList<String> updatedVersionTables();
@Get("/exists_table")
@Get("/info/exists_table")
Boolean existsTable(@Query("flink_job_id") Long flinkJobId, @Query("alias") String alias);
@Get("/non_exists_table")
@Get("/info/non_exists_table")
Boolean nonExistsTable(@Query("flink_job_id") Long flinkJobId, @Query("alias") String alias);
@Get("/all_flink_job_id")
@Get("/info/all_flink_job_id")
ImmutableList<Long> allFlinkJobId();
@Get("/all_alias")
@Get("/info/all_alias")
ImmutableList<String> allAlias();
@Get("/all_hdfs")
@Get("/info/all_hdfs")
ImmutableList<String> allHdfs();
}