Skip to content

Commit e5b2b07

Browse files
committed
fix(TopQueries): display IntervalEnd
1 parent c7cbd72 commit e5b2b07

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/containers/Tenant/Diagnostics/TopQueries/TopQueries.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import type {EPathType} from '../../../../types/api/schema';
2121
import type {ITopQueriesFilters} from '../../../../types/store/executeTopQueries';
2222
import type {IQueryResult} from '../../../../types/store/query';
2323

24+
import {formatDateTime} from '../../../../utils';
2425
import {DEFAULT_TABLE_SETTINGS, HOUR_IN_SECONDS} from '../../../../utils/constants';
2526
import {useAutofetcher, useTypedSelector} from '../../../../utils/hooks';
2627
import {prepareQueryError} from '../../../../utils/query';
@@ -51,6 +52,11 @@ const COLUMNS: Column<KeyValueRow>[] = [
5152
sortable: false,
5253
render: ({value}) => <TruncatedQuery value={value} maxQueryHeight={MAX_QUERY_HEIGHT} />,
5354
},
55+
{
56+
name: 'IntervalEnd',
57+
width: 140,
58+
render: ({value}) => formatDateTime(new Date(value as string).getTime()),
59+
},
5460
];
5561

5662
interface TopQueriesProps {

0 commit comments

Comments
 (0)