(improvement)(project) dsl support get topN dimension/metric by useCount and fix semanticService get dimension/metric usrCount error (#105)

This commit is contained in:
lexluo09
2023-09-20 11:21:50 +08:00
committed by GitHub
parent c8ff37e304
commit 98656eb445
12 changed files with 154 additions and 38 deletions

View File

@@ -79,7 +79,7 @@ public class QueryStat {
return this;
}
public QueryStat setClassId(Long modelId) {
public QueryStat setModelId(Long modelId) {
this.modelId = modelId;
return this;
}

View File

@@ -1,5 +1,6 @@
package com.tencent.supersonic.semantic.api.query.request;
import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
@@ -11,6 +12,7 @@ public class ItemUseReq {
private String startTime;
private Long modelId;
private List<Long> modelIds;
private Boolean cacheEnable = true;
private String metric;
@@ -18,4 +20,8 @@ public class ItemUseReq {
this.startTime = startTime;
this.modelId = modelId;
}
public ItemUseReq(String startTime, List<Long> modelIds) {
this.startTime = startTime;
this.modelIds = modelIds;
}
}