Skip to content

Commit

Permalink
[#10776] Add a setting to allow the metric to represent data as a stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo-jung committed Sep 4, 2024
1 parent 115ea53 commit 253029d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ public class AppMetricDefinition {
private final String chartType;
private final String aggregationFunction;
private final Layout layout;
private final boolean stack;


public AppMetricDefinition(String applicationName, String id, String title, String metricGroupName, String metricName, List<String> fieldNameList, String tags, String unit, String chartType, Layout layout) {
public AppMetricDefinition(String applicationName, String id, String title, String metricGroupName, String metricName, List<String> fieldNameList, String tags, String unit, String chartType, Layout layout, boolean stack) {
this.applicationName = StringPrecondition.requireHasLength(applicationName, "applicationName");
this.id = id;
this.title = StringPrecondition.requireHasLength(title, "title");
Expand All @@ -56,6 +57,7 @@ public AppMetricDefinition(String applicationName, String id, String title, Stri
this.chartType = StringPrecondition.requireHasLength(chartType, "chartType");
this.aggregationFunction = StringPrecondition.requireHasLength(chartType, "aggregationFunction");
this.layout = Objects.requireNonNull(layout, "layout");
this.stack = stack;
}

public String getApplicationName() {
Expand Down Expand Up @@ -111,4 +113,8 @@ public Layout getLayout() {
return layout;
}

public boolean getStack() {
return stack;
}

}

0 comments on commit 253029d

Please sign in to comment.