Skip to content

Commit 44c82d9

Browse files
authored
feat: pass controlplane and userattributes to get links (#3074)
1 parent 0db085a commit 44c82d9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/containers/Header/Header.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ function Header() {
9999
clusterName,
100100
dbName: databaseData.Name,
101101
dbType: databaseData.Type,
102+
controlPlane: databaseData.ControlPlane,
103+
userAttributes: databaseData.UserAttributes,
102104
})
103105
: null;
104106

src/utils/monitoring.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import type {MetaBaseClusterInfo, MetaClusterMonitoringData} from '../types/api/meta';
2-
import type {ETenantType} from '../types/api/tenant';
2+
import type {ETenantType, TTenant} from '../types/api/tenant';
33

44
interface GetMonitoringLinkProps {
55
monitoring: MetaBaseClusterInfo['solomon'];
66
dbName: string;
77
dbType: ETenantType;
88
clusterName?: string;
9+
controlPlane?: TTenant['ControlPlane'];
10+
userAttributes?: TTenant['UserAttributes'];
911
}
1012

1113
export type GetMonitoringLink = typeof getMonitoringLink;

0 commit comments

Comments
 (0)