Merge branch 'main' of github.com:apache/skywalking-booster-ui into bugfix/trace

This commit is contained in:
Fine 2022-11-24 19:47:08 +08:00
commit 6c30b95bbe
2 changed files with 8 additions and 6 deletions

View File

@ -213,8 +213,13 @@ export function useSourceProcessor(
source[m] = aggregation(Number(Object.values(resp.data)[0]), c); source[m] = aggregation(Number(Object.values(resp.data)[0]), c);
} }
if ( if (
type === MetricQueryTypes.SortMetrics || (
type === MetricQueryTypes.ReadSampledRecords [
MetricQueryTypes.ReadRecords,
MetricQueryTypes.ReadSampledRecords,
MetricQueryTypes.SortMetrics,
] as string[]
).includes(type)
) { ) {
source[m] = (Object.values(resp.data)[0] || []).map( source[m] = (Object.values(resp.data)[0] || []).map(
(d: { value: unknown; name: string }) => { (d: { value: unknown; name: string }) => {

View File

@ -134,10 +134,7 @@ export const MetricTypes: {
HEATMAP: [ HEATMAP: [
{ label: "read heatmap values in the duration", value: "readHeatMap" }, { label: "read heatmap values in the duration", value: "readHeatMap" },
], ],
SAMPLED_RECORD: [ SAMPLED_RECORD: [{ label: "get sorted topN values", value: "readRecords" }],
{ label: "get sorted topN values", value: "readRecords" },
{ label: "get sorted topN values", value: "readSampledRecords" },
],
}; };
export enum MetricCatalog { export enum MetricCatalog {