mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 16:27:33 +00:00
update metrics
This commit is contained in:
parent
7d802d490e
commit
a44e98afbf
@ -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 }) => {
|
||||||
|
@ -135,7 +135,7 @@ export const MetricTypes: {
|
|||||||
{ 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: "read sorted top N values ", value: "readRecords" },
|
||||||
{ label: "get sorted topN values", value: "readSampledRecords" },
|
{ label: "get sorted topN values", value: "readSampledRecords" },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user