-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a93e96
commit a18caad
Showing
10 changed files
with
200 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
dbm-ui/frontend/src/services/model/ticket/details/mysql/dataRepair.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
/** | ||
* MySQL 数据修复 | ||
*/ | ||
export interface DataRepair extends DetailBase { | ||
clusters: DetailClusters; | ||
infos: { | ||
cluster_id: number; | ||
master: { | ||
id: number; | ||
ip: string; | ||
port: number; | ||
bk_biz_id: number; | ||
bk_host_id: number; | ||
bk_cloud_id: number; | ||
}; | ||
slaves: { | ||
id: number; | ||
ip: string; | ||
port: number; | ||
bk_biz_id: number; | ||
bk_host_id: number; | ||
bk_cloud_id: number; | ||
is_consistent: boolean; | ||
}[]; | ||
}[]; | ||
end_time: string; | ||
start_time: string; | ||
trigger_type: string; | ||
checksum_table: string; | ||
is_sync_non_innodb: boolean; | ||
is_ticket_consistent: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
dbm-ui/frontend/src/services/model/ticket/details/tendbCluster/dataRepair.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import type { DetailBase, DetailClusters } from '../common'; | ||
|
||
/** | ||
* TenDBCluster 数据修复 | ||
*/ | ||
export interface DataRepair extends DetailBase { | ||
clusters: DetailClusters; | ||
infos: { | ||
cluster_id: number; | ||
master: { | ||
id: number; | ||
ip: string; | ||
port: number; | ||
bk_biz_id: number; | ||
bk_host_id: number; | ||
bk_cloud_id: number; | ||
}; | ||
slaves: { | ||
id: number; | ||
ip: string; | ||
port: number; | ||
bk_biz_id: number; | ||
bk_host_id: number; | ||
bk_cloud_id: number; | ||
is_consistent: boolean; | ||
}[]; | ||
}[]; | ||
end_time: string; | ||
start_time: string; | ||
trigger_type: string; | ||
checksum_table: string; | ||
is_sync_non_innodb: boolean; | ||
is_ticket_consistent: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
.../ticket-center/common/ticket-detail/components/task-info/com-factory/mysql/DataRepair.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!-- | ||
* TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-DB管理系统(BlueKing-BK-DBM) available. | ||
* | ||
* Copyright (C) 2017-2023 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License athttps://opensource.org/licenses/MIT | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for | ||
* the specific language governing permissions and limitations under the License. | ||
--> | ||
|
||
<template> | ||
<BkTable :data="ticketDetails.details.infos"> | ||
<BkTableColumn :label="t('集群域名')"> | ||
<template #default="{ data }"> | ||
{{ ticketDetails.details.clusters[data.cluster_id].immute_domain }} | ||
</template> | ||
</BkTableColumn> | ||
<BkTableColumn :label="t('修复主库')"> | ||
<template #default="{ data }"> | ||
{{ data.master.ip }} | ||
</template> | ||
</BkTableColumn> | ||
<BkTableColumn :label="t('修复从库')"> | ||
<template #default="{ data }: { data: RowData }"> | ||
{{ data.slaves.map((item) => item.ip).join(',') }} | ||
</template> | ||
</BkTableColumn> | ||
</BkTable> | ||
<InfoList> | ||
<InfoItem :label="t('不一致时间范围:')"> | ||
{{ `${ticketDetails.details.start_time} - ${ticketDetails.details.end_time}` }} | ||
</InfoItem> | ||
</InfoList> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useI18n } from 'vue-i18n'; | ||
|
||
import TicketModel, { type Mysql } from '@services/model/ticket/ticket'; | ||
|
||
import { TicketTypes } from '@common/const'; | ||
|
||
import InfoList, { Item as InfoItem } from '../components/info-list/Index.vue'; | ||
|
||
interface Props { | ||
ticketDetails: TicketModel<Mysql.DataRepair>; | ||
} | ||
|
||
type RowData = Props['ticketDetails']['details']['infos'][number]; | ||
|
||
defineProps<Props>(); | ||
|
||
defineOptions({ | ||
name: TicketTypes.MYSQL_DATA_REPAIR, | ||
inheritAttrs: false, | ||
}); | ||
|
||
const { t } = useI18n(); | ||
</script> |
62 changes: 62 additions & 0 deletions
62
...-center/common/ticket-detail/components/task-info/com-factory/tendbCluster/DataRepair.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!-- | ||
* TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-DB管理系统(BlueKing-BK-DBM) available. | ||
* | ||
* Copyright (C) 2017-2023 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License athttps://opensource.org/licenses/MIT | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for | ||
* the specific language governing permissions and limitations under the License. | ||
--> | ||
|
||
<template> | ||
<BkTable :data="ticketDetails.details.infos"> | ||
<BkTableColumn :label="t('集群域名')"> | ||
<template #default="{ data }"> | ||
{{ ticketDetails.details.clusters[data.cluster_id].immute_domain }} | ||
</template> | ||
</BkTableColumn> | ||
<BkTableColumn :label="t('修复主库')"> | ||
<template #default="{ data }"> | ||
{{ data.master.ip }} | ||
</template> | ||
</BkTableColumn> | ||
<BkTableColumn :label="t('修复从库')"> | ||
<template #default="{ data }: { data: RowData }"> | ||
{{ data.slaves.map((item) => item.ip).join(',') }} | ||
</template> | ||
</BkTableColumn> | ||
</BkTable> | ||
<InfoList> | ||
<InfoItem :label="t('不一致时间范围:')"> | ||
{{ `${ticketDetails.details.start_time} - ${ticketDetails.details.end_time}` }} | ||
</InfoItem> | ||
</InfoList> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useI18n } from 'vue-i18n'; | ||
|
||
import TicketModel, { type TendbCluster } from '@services/model/ticket/ticket'; | ||
|
||
import { TicketTypes } from '@common/const'; | ||
|
||
import InfoList, { Item as InfoItem } from '../components/info-list/Index.vue'; | ||
|
||
interface Props { | ||
ticketDetails: TicketModel<TendbCluster.DataRepair>; | ||
} | ||
|
||
type RowData = Props['ticketDetails']['details']['infos'][number]; | ||
|
||
defineProps<Props>(); | ||
|
||
defineOptions({ | ||
name: TicketTypes.TENDBCLUSTER_DATA_REPAIR, | ||
inheritAttrs: false, | ||
}); | ||
|
||
const { t } = useI18n(); | ||
</script> |