add label

This commit is contained in:
Fine 2022-11-09 22:31:56 +08:00
parent f393440a5d
commit 09646c0d69
5 changed files with 6 additions and 3 deletions

View File

@ -184,7 +184,7 @@ export function useSourceProcessor(
const c = (config.metricConfig && config.metricConfig[index]) || {};
if (type === MetricQueryTypes.ReadMetricsValues) {
source[m] =
source[c.label || m] =
(resp.data[keys[index]] &&
calculateExp(resp.data[keys[index]].values.values, c)) ||
[];

View File

@ -266,7 +266,7 @@ const msg = {
entityType: "Entity Type",
maxItemNum: "Max number of Item",
unknownMetrics: "Unknown Metrics",
labels: "Labels",
labels: "Label",
aggregation: "Calculation",
unit: "Unit",
labelsIndex: "Label Subscript",
@ -327,6 +327,7 @@ const msg = {
eventsParameters: "Event Parameters",
eventDetail: "Event Detail",
value: "Value",
key: "Key",
show: "Show",
hide: "Hide",
statistics: "Statistics",

View File

@ -327,6 +327,7 @@ const msg = {
eventsParameters: "Parámetro del Evento",
eventDetail: "Detalle del Evento",
value: "Valor",
key: "Clave",
show: "Mostrar",
hide: "Oculatr",
statistics: "Estadísticas",

View File

@ -325,6 +325,7 @@ const msg = {
eventsParameters: "事件参数",
eventDetail: "事件详情",
value: "数值",
key: "Key",
tableHeader: "表头名称",
tableValues: "表值",
show: "展示",

View File

@ -122,7 +122,7 @@ const hasLabel = computed(() => {
const graph = dashboardStore.selectedGrid.graph || {};
return (
ListChartTypes.includes(graph.type) ||
metricType.value === "readLabeledMetricsValues"
["readLabeledMetricsValues", "readMetricsValues"].includes(metricType.value)
);
});
const isTopn = computed(() =>