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');
17
17
18
18
interface HealthcheckPreviewProps {
19
19
database : string ;
20
- active ?: boolean ;
21
20
}
22
21
23
22
const checkResultToAlertTheme : Record < SelfCheckResult , AlertProps [ 'theme' ] > = {
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ export function TenantOverview({
208
208
</ Flex >
209
209
</ Flex >
210
210
< Flex direction = "column" gap = { 4 } >
211
- < HealthcheckPreview database = { database } />
211
+ { ! isServerless && < HealthcheckPreview database = { database } /> }
212
212
< QueriesActivityBar database = { database } />
213
213
< MetricsTabs
214
214
poolsCpuStats = { poolsStats }
Original file line number Diff line number Diff line change 3
3
selectLeavesIssues ,
4
4
} from '../../../store/reducers/healthcheckInfo/healthcheckInfo' ;
5
5
import type { IssuesTree } from '../../../store/reducers/healthcheckInfo/types' ;
6
+ import { useTenantBaseInfo } from '../../../store/reducers/tenant/tenant' ;
6
7
import { SelfCheckResult } from '../../../types/api/healthcheck' ;
7
8
import { useTypedSelector } from '../../../utils/hooks' ;
8
9
@@ -19,6 +20,7 @@ export const useHealthcheck = (
19
20
database : string ,
20
21
{ autorefresh} : { autorefresh ?: number } = { } ,
21
22
) : HealthcheckParams => {
23
+ const { databaseType} = useTenantBaseInfo ( database ) ;
22
24
const {
23
25
currentData : data ,
24
26
isFetching,
@@ -29,6 +31,7 @@ export const useHealthcheck = (
29
31
{ database} ,
30
32
{
31
33
pollingInterval : autorefresh ,
34
+ skip : databaseType === 'Serverless' ,
32
35
} ,
33
36
) ;
34
37
You can’t perform that action at this time.
0 commit comments