Skip to content

Commit c7cbd72

Browse files
committed
fix(OverloadedShards): display IntervalEnd
1 parent c72d06e commit c7cbd72

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/containers/Tenant/Diagnostics/OverloadedShards/OverloadedShards.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const tableColumnsNames = {
5353
NodeId: 'NodeId',
5454
PeakTime: 'PeakTime',
5555
InFlightTxCount: 'InFlightTxCount',
56+
IntervalEnd: 'IntervalEnd',
5657
};
5758

5859
function prepareCPUWorkloadValue(value: string) {
@@ -227,6 +228,10 @@ export const OverloadedShards = ({tenantPath, type}: OverloadedShardsProps) => {
227228
align: DataTable.RIGHT,
228229
sortable: false,
229230
},
231+
{
232+
name: tableColumnsNames.IntervalEnd,
233+
render: ({value}) => formatDateTime(new Date(value as string).getTime()),
234+
}
230235
];
231236
}, [dispatch, history, tenantPath]);
232237

src/store/reducers/shardsWorkload.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ function createShardQuery(
7777
DataSize,
7878
NodeId,
7979
PeakTime,
80-
InFlightTxCount
80+
InFlightTxCount,
81+
IntervalEnd
8182
FROM \`.sys/top_partitions_one_hour\`
8283
WHERE ${where}
8384
${orderBy}

0 commit comments

Comments
 (0)