Skip to content

Commit 30f7a0a

Browse files
committed
HPCC-35861 Metrics Props show summary in value col
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent ebda4c0 commit 30f7a0a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

esp/src/src-react/components/MetricsPropertiesTables.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,16 @@ export const MetricsPropertiesTables: React.FunctionComponent<MetricsPropertiesT
164164
default:
165165
rowValue = row.Value;
166166
}
167+
if ((rowValue === undefined || rowValue === null || rowValue === "") && (row.Min !== undefined || row.Avg !== undefined || row.Max !== undefined || row.StdDev !== undefined || row.SkewMin !== undefined || row.SkewMax !== undefined)) {
168+
const parts = [];
169+
if (row.Min !== undefined) parts.push(`↓${row.Min}`);
170+
if (row.Avg !== undefined) parts.push(`${row.Avg}`);
171+
if (row.Max !== undefined) parts.push(`↑${row.Max}`);
172+
if (row.StdDev !== undefined) parts.push(`${row.StdDev}(${formatDecimal(row.StdDevs)}σ)`);
173+
if (row.SkewMin !== undefined) parts.push(`⤓${row.SkewMin}`);
174+
if (row.SkewMax !== undefined) parts.push(`⤒${row.SkewMax}`);
175+
rowValue = parts.join(" ");
176+
}
167177
scopeProps.push([row.Key, rowValue, row.Avg, row.Min, row.Max, row.Delta, row.StdDev === undefined ? "" : `${row.StdDev} (${formatDecimal(row.StdDevs)}σ)`, row.SkewMin, row.SkewMax, row.NodeMin, row.NodeMax, row.StdDevs]);
168178
}
169179
scopeProps.sort((l, r) => {

0 commit comments

Comments
 (0)