(fix)(headless) fix filter for measure (#626)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-01-15 16:10:54 +08:00
committed by GitHub
parent a6818fb6ff
commit 7f65057a0f
2 changed files with 6 additions and 0 deletions

View File

@@ -21,6 +21,10 @@ public class Measure {
private Integer isCreateMetric = 0;
private String constraint;
private String alias;
public Measure(String name, String bizName, String agg, Integer isCreateMetric) {
this.name = name;
this.agg = agg;

View File

@@ -50,6 +50,8 @@ public class MetricYamlManager {
public static MeasureYamlTpl convert(Measure measure) {
MeasureYamlTpl measureYamlTpl = new MeasureYamlTpl();
measureYamlTpl.setName(measure.getBizName());
measureYamlTpl.setConstraint(measure.getConstraint());
measureYamlTpl.setAgg(measure.getAlias());
return measureYamlTpl;
}