Skip to content

Commit

Permalink
[INLONG-9419][Dashboard] MySQL sources support full incremental mode …
Browse files Browse the repository at this point in the history
…selection
  • Loading branch information
bluewang committed Dec 5, 2023
1 parent f01af15 commit c52236e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions inlong-dashboard/src/plugins/sources/defaults/MySQLBinlog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,28 @@ export default class TubeMqSource
@I18n('meta.Sources.Db.AllMigration')
allMigration: boolean;

@FieldDecorator({
type: 'radio',
rules: [{ required: true }],
initialValue: true,
props: values => ({
disabled: values?.status === 101,
options: [
{
label: i18n.t('meta.Sources.Db.FullAmountAndIncremental'),
value: false,
},
{
label: i18n.t('meta.Sources.Db.Incremental'),
value: true,
},
],
}),
})
@SyncField()
@I18n('meta.Sources.Db.ReadMode')
onlyIncremental: boolean;

@FieldDecorator({
type: 'input',
rules: [{ required: true }],
Expand Down
3 changes: 3 additions & 0 deletions inlong-dashboard/src/ui/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
"meta.Sources.Db.TableWhiteListHelp": "白名单应该是一个以逗号分隔的正则表达式列表,与要监控的表的完全限定名称相匹配。表的完全限定名称的格式为 <dbName>.<tableName>,其中 dbName 和 tablename 都可以配置正则表达式。比如:test_db.table*,inlong_db*.user*,表示采集 test_db 库中以 table 开头的所有表 + 以 inlong_db 开头的所有库下的以 user 开头的所有表。",
"meta.Sources.Db.DatabaseWhiteList": "库名白名单",
"meta.Sources.Db.DatabaseWhiteListHelp": "需要采集的数据库列表,支持正则表达式,用逗号隔开,例如:db1,test_db,不在该列表中的数据库将被排除。如果未设置,则监视所有数据库。",
"meta.Sources.Db.ReadMode": "读取模式",
"meta.Sources.Db.Incremental": "仅增量",
"meta.Sources.Db.FullAmountAndIncremental": "全量 + 增量",
"meta.Sources.Mongodb.Hosts": "服务器主机",
"meta.Sources.Mongodb.Username": "用户名",
"meta.Sources.Mongodb.Password": "密码",
Expand Down
3 changes: 3 additions & 0 deletions inlong-dashboard/src/ui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
"meta.Sources.Db.TableWhiteListHelp": "The whitelist should be a comma-separated list of regular expressions that match the fully-qualified names of tables to be monitored. Fully-qualified names for tables are of the form <databaseName>.<tableName>, the dbName and tableName can be configured with regular expressions. For example: test_db.order*, inlong_db*.user*, means to collect all tables starting with order in the test_db database + all tables starting with user under all databases starting with inlong_db.",
"meta.Sources.Db.DatabaseWhiteList": "Database white list",
"meta.Sources.Db.DatabaseWhiteListHelp": "A list of databases to be collected, supporting regular expressions, separated by commas, for example: db1,test_db, databases not in the list will be excluded. If not set, all databases are monitored.",
"meta.Sources.Db.ReadMode": "Read mode",
"meta.Sources.Db.Incremental": "Incremental",
"meta.Sources.Db.FullAmountAndIncremental": "Full amount + Incremental",
"meta.Sources.Mongodb.Hosts": "Hosts",
"meta.Sources.Mongodb.Username": "Username",
"meta.Sources.Mongodb.Password": "Password",
Expand Down

0 comments on commit c52236e

Please sign in to comment.