Skip to content

Commit 00a2e63

Browse files
Kinplemelonysfscream
authored andcommitted
refactor(i18n): new configs in greptime and kafka
1 parent 1140ad2 commit 00a2e63

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

packages/i18n/lib/en/connectorsLabel.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
4343
proxy: 'Proxy',
4444
host: 'Proxy Host',
4545
port: 'Proxy Port',
46+
allow_auto_topic_creation: 'Allow Auto Topic Creation',
4647
},
4748
kafka_producer: {
4849
kerberos_principal: 'Kerberos Principal',
@@ -176,6 +177,7 @@ export const enConnectorsLabel: Record<string, Record<string, string>> = {
176177
greptimedb: {
177178
dbname: 'Database',
178179
ttl: 'Time-To-Live (TTL)',
180+
ts_column: 'Custom Timestamp Column Name',
179181
},
180182
s3: {
181183
host: 'Host',

packages/i18n/lib/en/integrationDesc.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ export const enIntegrationDesc: Record<string, Record<string, string>> = {
6060
'Full file path to the private key to be used for the ODBC connection. This path must be the same on all nodes of the cluster.',
6161
private_key_password:
6262
'Password to decrypt the private key. Do not set this value if the private key is not encrypted.',
63+
allow_auto_topic_creation:
64+
'Set to true to allow automatic topic creation with metadata fetch request.',
6365
},
6466
mqtt: {
6567
bridge_mode:
@@ -513,6 +515,8 @@ Note: this parameter only takes effect when the <code>Driver Type</code> set to
513515
write_syntax:
514516
"Conf of GreptimeDB gRPC protocol to write data points. Write syntax is a text-based format that provides the measurement, tag set, field set, and timestamp of a data point, and placeholder supported, which is the same as InfluxDB line protocol.\nSee also [InfluxDB 2.3 Line Protocol](https://docs.influxdata.com/influxdb/v2.3/reference/syntax/line-protocol/) and\n[InfluxDB 1.8 Line Protocol](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_tutorial/) <br/>\nTLDR:<br/>\n```\n<measurement>[,<tag_key>=<tag_value>[,<tag_key>=<tag_value>]] <field_key>=<field_value>[,<field_key>=<field_value>] [<timestamp>]\n```\nPlease note that a placeholder for an integer value must be annotated with a suffix `i`. For example `${'{'}payload.int_value{'}'}i`.",
515517
ttl: 'The time-to-live setting for automatically created tables in GreptimeDB.',
518+
ts_column:
519+
'If defined, specifies a custom timestamp column name that will appear when querying.',
516520
},
517521
syskeeper_proxy: {
518522
listen: 'The listening address for this Syskeeper proxy server',

packages/i18n/lib/zh/connectorsLabel.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
4343
proxy: '代理',
4444
host: '代理主机',
4545
port: '代理端口',
46+
allow_auto_topic_creation: '允许自动创建主题',
4647
},
4748
kafka_producer: {
4849
kerberos_principal: 'Kerberos Principal',
@@ -176,6 +177,7 @@ export const zhConnectorsLabel: Record<string, Record<string, string>> = {
176177
greptimedb: {
177178
dbname: '数据库',
178179
ttl: '数据保留期限 (TTL)',
180+
ts_column: '自定义时间戳列名',
179181
},
180182
s3: {
181183
host: '地址',

packages/i18n/lib/zh/integrationDesc.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const zhIntegrationDesc: Record<string, Record<string, string>> = {
5151
proxy: '代理配置。当前仅支持 HTTP 代理(不支持 HTTPS)。',
5252
private_key_path: '用于 ODBC 连接的私钥的完整文件路径。此路径必须在集群的所有节点上保持一致。',
5353
private_key_password: '用于解密私钥的密码。如果私钥未加密,请不要设置此值。',
54+
allow_auto_topic_creation: '是否允许在元数据获取请求时自动创建主题。',
5455
},
5556
mqtt: {
5657
bridge_mode:
@@ -459,6 +460,7 @@ export const zhIntegrationDesc: Record<string, Record<string, string>> = {
459460
write_syntax:
460461
"GreptimeDB gRPC 协议写数据点的配置。写语法是一种基于文本的格式,提供数据点的测量、标签集、字段集和时间戳,支持占位符,与 InfluxDB 行协议相同。\n参考 [InfluxDB 2.3 行协议](https://docs.influxdata.com/influxdb/v2.3/reference/syntax/line-protocol/) 和\n[InfluxDB 1.8 行协议](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_tutorial/) <br/>\n简而言之:<br/>\n```\n<measurement>[,<tag_key>=<tag_value>[,<tag_key>=<tag_value>]] <field_key>=<field_value>[,<field_key>=<field_value>] [<timestamp>]\n```\n请注意,整数值的占位符必须使用后缀 `i` 进行注释。例如 `${'{'}payload.int_value{'}'}i`。",
461462
ttl: 'GreptimeDB 自动创建的表的数据保留期限 (TTL)。',
463+
ts_column: '指定查询时将显示的自定义时间戳列名。',
462464
},
463465
syskeeper_proxy: {
464466
listen: 'Syskeeper 代理服务器的监听地址',

0 commit comments

Comments
 (0)