Skip to content

Commit

Permalink
refactor(i18n): new fields for S3 action
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon authored and ysfscream committed May 27, 2024
1 parent 81b9c71 commit 63e5336
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/i18n/lib/enActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ export const enActionsLabel: Record<string, Record<string, string>> = {
acl: 'ACL',
content: 'Object Content',
key: 'Object Key',
parameters: 'Upload Mode',
type: 'Aggregation Type',
column_order: 'Column Order',
time_interval: 'Time Interval',
max_records: 'Max Records',
min_part_size: 'Min Part Size',
max_part_size: 'Max Part Size',
},
dynamo: {
table: 'Table ',
Expand Down
5 changes: 5 additions & 0 deletions packages/i18n/lib/enIntegrationDesc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,5 +507,10 @@ export const enIntegrationDesc: Record<string, Record<string, string>> = {
bucket:
'The name of the bucket to which files will be uploaded. Needs to be pre-created in S3. Supports the ${var} placeholder format.',
key: 'The content of the object to be stored. By default, it is in JSON text format containing all fields. Supports placeholder settings such as ${payload}. The storage format depends on the format of the variable and can be stored in binary format.',
column_order: `Event fields that will be ordered first as columns in the resulting CSV file.<br/>Regardless of this setting, resulting CSV will contain all the fields of aggregated events, but all the columns not explicitly mentioned here will be ordered after the ones listed here in the lexicographical order.`,
time_interval: 'Amount of time events will be aggregated in a single object before uploading.',
max_records: `Number of records (events) allowed per each aggregated object. Each aggregated upload will contain no more than that number of events, but may contain less.<br/>If event rate is high enough, there obviously may be more than one aggregated upload during the same time interval. These uploads will have different, but consecutive sequence numbers, which will be a part of S3 object key.`,
min_part_size: `The minimum part size for multipart uploads.<br/>Uploaded data will be accumulated in memory until this size is reached.`,
max_part_size: `The maximum part size for multipart uploads.<br/>S3 uploader won't try to upload parts larger than this size.`,
},
}
2 changes: 2 additions & 0 deletions packages/i18n/lib/enSymbolLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const enSymbolLabel: Record<string, string> = {
parameters_action_update: 'Update',
parameters_action_delete: 'Delete',
parameters_action_create: 'Create',
parameters_s_3_direct_upload_parameters: 'Direct Upload',
parameters_s_3_aggregated_upload_parameters: 'Aggregated Upload',
all_partitions: 'All Partitions',
plain: 'Plain',
scram_sha_256: 'SHA256',
Expand Down
7 changes: 7 additions & 0 deletions packages/i18n/lib/zhActionsLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ export const zhActionsLabel: Record<string, Record<string, string>> = {
acl: 'ACL',
content: '对象内容',
key: '对象键',
parameters: '上传方式',
type: '增强类型',
column_order: '列排序',
time_interval: '时间间隔',
max_records: '最大记录数',
min_part_size: '最小分块大小',
max_part_size: '最大分块大小',
},
dynamo: {
table: '表',
Expand Down
5 changes: 5 additions & 0 deletions packages/i18n/lib/zhIntegrationDesc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,5 +458,10 @@ export const zhIntegrationDesc: Record<string, Record<string, string>> = {
'要存储的对象的内容。默认情况下,它是包含所有字段的 JSON 文本格式。支持如 ${payload} 的占位符设置。存储格式取决于变量的格式,支持二进制内容。',
bucket: '将要上传文件的存储桶的名称。需要在 S3 中预先创建好,支持 ${var} 占位符格式。',
key: '要存储的对象的键。支持如 ${var} 的占位符设置。',
column_order: `在生成的 CSV 文件中首先按列排序的事件字段。<br/>无论此设置如何,生成的 CSV 都将包含聚合事件的所有字段,但此处未明确提及的所有列将按字典顺序排在这里列出的字段之后。`,
time_interval: '在上传前将事件聚合到单个对象中的时间量。',
max_records: `每个聚合对象允许的记录(事件)数量。每次聚合上传包含的事件数量不会超过此数值,但可能会更少。<br/>如果事件速率足够高,在同一时间间隔内显然可能会有多个聚合上传。这些上传将具有不同但连续的序列号,这些序列号将是 S3 对象键的一部分。`,
min_part_size: `分块上传的最小分块大小。<br/>上传的数据将在内存中累积,直到达到此大小。`,
max_part_size: `分块上传的最大分块大小。<br/>S3 上传程序不会尝试上传超过此大小的部分。`,
},
}
2 changes: 2 additions & 0 deletions packages/i18n/lib/zhSymbolLabel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const zhSymbolLabel: Record<string, string> = {
parameters_action_update: '更新',
parameters_action_delete: '删除',
parameters_action_create: '创建',
parameters_s_3_direct_upload_parameters: '直接上传',
parameters_s_3_aggregated_upload_parameters: '聚合上传',
all_partitions: '所有分区',
plain: 'Plain',
scram_sha_256: 'SHA256',
Expand Down

0 comments on commit 63e5336

Please sign in to comment.