feat: add readRecords to metric types (#172)

This commit is contained in:
Fine0830
2022-10-17 21:55:14 +08:00
committed by GitHub
parent 77d189cdfb
commit 5e161f17c2
3 changed files with 26 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ export const MetricChartType: any = {
readLabeledMetricsValues: [{ label: "Line", value: "Line" }],
readHeatMap: [{ label: "Heat Map", value: "HeatMap" }],
readSampledRecords: [{ label: "Top List", value: "TopList" }],
readRecords: [{ label: "Top List", value: "TopList" }],
};
export const DefaultGraphConfig: { [key: string]: any } = {
Bar: {
@@ -134,6 +135,7 @@ export const MetricTypes: {
{ label: "read heatmap values in the duration", value: "readHeatMap" },
],
SAMPLED_RECORD: [
{ label: "get sorted topN values", value: "readRecords" },
{ label: "get sorted topN values", value: "readSampledRecords" },
],
};