mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
(improvement)(Headless) Metric Market only displays published metrics (#867)
* (improvement)(Headless) Remove Query controller * (improvement)(Headless) Filter metrics and dimensions based on whether they were created as tags * (improvement)(Headless) Metric Market only displays published metrics --------- Co-authored-by: jolunoluo
This commit is contained in:
@@ -3,7 +3,7 @@ package com.tencent.supersonic.headless.api.pojo.request;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DownloadStructReq extends QueryStructReq {
|
||||
public class DownloadMetricReq extends QueryMetricReq {
|
||||
|
||||
private boolean isTransform;
|
||||
|
||||
@@ -11,4 +11,6 @@ public class PageMetricReq extends PageSchemaItemReq {
|
||||
|
||||
private Integer isTag;
|
||||
|
||||
private Integer isPublish;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,23 +1,28 @@
|
||||
package com.tencent.supersonic.headless.api.pojo.request;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.tencent.supersonic.common.pojo.DateConf;
|
||||
import java.util.List;
|
||||
import com.tencent.supersonic.common.pojo.Filter;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class QueryMetricReq {
|
||||
|
||||
private Long domainId;
|
||||
|
||||
private List<Long> metricIds;
|
||||
private List<Long> metricIds = Lists.newArrayList();
|
||||
|
||||
private List<String> metricNames;
|
||||
private List<String> metricNames = Lists.newArrayList();
|
||||
|
||||
private List<Long> dimensionIds;
|
||||
private List<Long> dimensionIds = Lists.newArrayList();
|
||||
|
||||
private List<String> dimensionNames;
|
||||
private List<String> dimensionNames = Lists.newArrayList();
|
||||
|
||||
private List<Filter> filters = Lists.newArrayList();
|
||||
|
||||
private DateConf dateInfo = new DateConf();
|
||||
|
||||
|
||||
@@ -63,6 +63,8 @@ public class MetricResp extends SchemaItem {
|
||||
|
||||
private int isTag;
|
||||
|
||||
private Integer isPublish;
|
||||
|
||||
public void setClassifications(String tag) {
|
||||
if (StringUtils.isBlank(tag)) {
|
||||
classifications = Lists.newArrayList();
|
||||
|
||||
Reference in New Issue
Block a user