File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Diagnostics/TenantOverview Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ const b = cn('ydb-healthcheck-preview');
1717
1818interface HealthcheckPreviewProps {
1919 database : string ;
20- active ?: boolean ;
2120}
2221
2322const checkResultToAlertTheme : Record < SelfCheckResult , AlertProps [ 'theme' ] > = {
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ export function TenantOverview({
208208 </ Flex >
209209 </ Flex >
210210 < Flex direction = "column" gap = { 4 } >
211- < HealthcheckPreview database = { database } />
211+ { ! isServerless && < HealthcheckPreview database = { database } /> }
212212 < QueriesActivityBar database = { database } />
213213 < MetricsTabs
214214 poolsCpuStats = { poolsStats }
Original file line number Diff line number Diff line change 33 selectLeavesIssues ,
44} from '../../../store/reducers/healthcheckInfo/healthcheckInfo' ;
55import type { IssuesTree } from '../../../store/reducers/healthcheckInfo/types' ;
6+ import { useTenantBaseInfo } from '../../../store/reducers/tenant/tenant' ;
67import { SelfCheckResult } from '../../../types/api/healthcheck' ;
78import { useTypedSelector } from '../../../utils/hooks' ;
89
@@ -19,6 +20,7 @@ export const useHealthcheck = (
1920 database : string ,
2021 { autorefresh} : { autorefresh ?: number } = { } ,
2122) : HealthcheckParams => {
23+ const { databaseType} = useTenantBaseInfo ( database ) ;
2224 const {
2325 currentData : data ,
2426 isFetching,
@@ -29,6 +31,7 @@ export const useHealthcheck = (
2931 { database} ,
3032 {
3133 pollingInterval : autorefresh ,
34+ skip : databaseType === 'Serverless' ,
3235 } ,
3336 ) ;
3437
You can’t perform that action at this time.
0 commit comments