File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import {parseQueryErrorToString} from '../../../../../utils/query';
88import { QueriesTableWithDrawer } from '../../TopQueries/QueriesTableWithDrawer' ;
99import { getTenantOverviewTopQueriesColumns } from '../../TopQueries/columns/columns' ;
1010import { TOP_QUERIES_COLUMNS_WIDTH_LS_KEY } from '../../TopQueries/columns/constants' ;
11+ import { useTopQueriesSort } from '../../TopQueries/hooks/useTopQueriesSort' ;
1112import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout' ;
1213
1314interface TopQueriesProps {
@@ -19,8 +20,15 @@ const columns = getTenantOverviewTopQueriesColumns();
1920export function TopQueries ( { tenantName} : TopQueriesProps ) {
2021 const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
2122
23+ const { backendSort} = useTopQueriesSort ( ) ;
24+
2225 const { currentData, isFetching, error} = topQueriesApi . useGetTopQueriesQuery (
23- { database : tenantName , timeFrame : 'hour' , limit : TENANT_OVERVIEW_TABLES_LIMIT } ,
26+ {
27+ database : tenantName ,
28+ timeFrame : 'hour' ,
29+ limit : TENANT_OVERVIEW_TABLES_LIMIT ,
30+ sortOrder : backendSort ,
31+ } ,
2432 { pollingInterval : autoRefreshInterval } ,
2533 ) ;
2634
You can’t perform that action at this time.
0 commit comments