From c284c419a336253d8c433c6cb2a13a02cc1fc343 Mon Sep 17 00:00:00 2001 From: Kinplemelon Date: Fri, 28 Jun 2024 17:00:48 +0800 Subject: [PATCH] refactor(i18n): add label & dec for Azure Blob Storage --- packages/i18n/lib/enActionsLabel.ts | 10 ++++++++++ packages/i18n/lib/enConnectorsLabel.ts | 4 ++++ packages/i18n/lib/enIntegrationDesc.ts | 8 ++++++++ packages/i18n/lib/enSymbolLabel.ts | 2 ++ packages/i18n/lib/zhActionsLabel.ts | 10 ++++++++++ packages/i18n/lib/zhConnectorsLabel.ts | 4 ++++ packages/i18n/lib/zhIntegrationDesc.ts | 9 +++++++++ packages/i18n/lib/zhSymbolLabel.ts | 2 ++ 8 files changed, 49 insertions(+) diff --git a/packages/i18n/lib/enActionsLabel.ts b/packages/i18n/lib/enActionsLabel.ts index a968685..f2fed0a 100644 --- a/packages/i18n/lib/enActionsLabel.ts +++ b/packages/i18n/lib/enActionsLabel.ts @@ -196,6 +196,16 @@ export const enActionsLabel: Record> = { min_part_size: 'Min Part Size', max_part_size: 'Max Part Size', }, + azure_blob_storage: { + parameters: 'Upload Mode', + column_order: 'Column Order', + time_interval: 'Time Interval', + max_records: 'Max Records', + content: 'Object Content', + type: 'Aggregation Type', + blob: 'Blob Name', + container: 'Container', + }, dynamo: { table: 'Table ', hash_key: 'Hash Key', diff --git a/packages/i18n/lib/enConnectorsLabel.ts b/packages/i18n/lib/enConnectorsLabel.ts index cc0a1ba..6610d16 100644 --- a/packages/i18n/lib/enConnectorsLabel.ts +++ b/packages/i18n/lib/enConnectorsLabel.ts @@ -165,4 +165,8 @@ export const enConnectorsLabel: Record> = { headers: 'HTTP Headers', request_timeout: 'Request Timeout', }, + azure_blob_storage: { + account_name: 'Account Name', + account_key: 'Account Key', + }, } diff --git a/packages/i18n/lib/enIntegrationDesc.ts b/packages/i18n/lib/enIntegrationDesc.ts index 02cc61f..876ff12 100644 --- a/packages/i18n/lib/enIntegrationDesc.ts +++ b/packages/i18n/lib/enIntegrationDesc.ts @@ -509,4 +509,12 @@ export const enIntegrationDesc: Record> = { min_part_size: `The minimum part size for multipart uploads.
Uploaded data will be accumulated in memory until this size is reached.`, max_part_size: `The maximum part size for multipart uploads.
S3 uploader won't try to upload parts larger than this size.`, }, + azure_blob_storage: { + column_order: `Event fields that will be ordered first as columns in the resulting CSV file.
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.
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.`, + content: 'The content of the object to be uploaded supports placeholders.', + blob: 'Azure Blob Storage blob name.', + container: 'Azure Blob Storage container name.', + }, } diff --git a/packages/i18n/lib/enSymbolLabel.ts b/packages/i18n/lib/enSymbolLabel.ts index 0eaba8b..d0ea40b 100644 --- a/packages/i18n/lib/enSymbolLabel.ts +++ b/packages/i18n/lib/enSymbolLabel.ts @@ -32,6 +32,8 @@ export const enSymbolLabel: Record = { parameters_action_create: 'Create', parameters_s_3_direct_upload_parameters: 'Direct Upload', parameters_s_3_aggregated_upload_parameters: 'Aggregated Upload', + parameters_direct_parameters: 'Direct Upload', + parameters_aggreg_parameters: 'Aggregated Upload', all_partitions: 'All Partitions', plain: 'Plain', scram_sha_256: 'SHA256', diff --git a/packages/i18n/lib/zhActionsLabel.ts b/packages/i18n/lib/zhActionsLabel.ts index 5ec0f02..c358664 100644 --- a/packages/i18n/lib/zhActionsLabel.ts +++ b/packages/i18n/lib/zhActionsLabel.ts @@ -196,6 +196,16 @@ export const zhActionsLabel: Record> = { min_part_size: '最小分块大小', max_part_size: '最大分块大小', }, + azure_blob_storage: { + parameters: '上传方式', + column_order: '列排序', + time_interval: '时间间隔', + max_records: '最大记录数', + content: '对象内容', + type: '增强类型', + blob: 'Blob 名称', + container: '容器', + }, dynamo: { table: '表', hash_key: '哈希键', diff --git a/packages/i18n/lib/zhConnectorsLabel.ts b/packages/i18n/lib/zhConnectorsLabel.ts index 580e82a..da182bb 100644 --- a/packages/i18n/lib/zhConnectorsLabel.ts +++ b/packages/i18n/lib/zhConnectorsLabel.ts @@ -165,4 +165,8 @@ export const zhConnectorsLabel: Record> = { headers: '请求头', request_timeout: '请求超时', }, + azure_blob_storage: { + account_name: '账户名', + account_key: '账户密钥', + }, } diff --git a/packages/i18n/lib/zhIntegrationDesc.ts b/packages/i18n/lib/zhIntegrationDesc.ts index 9ec9b5c..922c1c0 100644 --- a/packages/i18n/lib/zhIntegrationDesc.ts +++ b/packages/i18n/lib/zhIntegrationDesc.ts @@ -460,4 +460,13 @@ export const zhIntegrationDesc: Record> = { min_part_size: `分块上传的最小分块大小。
上传的数据将在内存中累积,直到达到此大小。`, max_part_size: `分块上传的最大分块大小。
S3 上传程序不会尝试上传超过此大小的部分。`, }, + azure_blob_storage: { + column_order: `在生成的 CSV 文件中首先按列排序的事件字段。
无论此设置如何,生成的 CSV 都将包含聚合事件的所有字段,但此处未明确提及的所有列将按字典顺序排在这里列出的字段之后。`, + time_interval: '在上传前将事件聚合到单个对象中的时间量。', + max_records: `每个聚合对象允许的记录(事件)数量。每次聚合上传包含的事件数量不会超过此数值,但可能会更少。
如果事件速率足够高,在同一时间间隔内显然可能会有多个聚合上传。这些上传将具有不同但连续的序列号,这些序列号将是 S3 对象键的一部分。`, + content: + "要存储的对象的内容。默认情况下,它是包含所有字段的 JSON 文本格式。支持如 ${'{'}payload{'}'} 的占位符设置。存储格式取决于变量的格式,支持二进制内容。", + blob: 'Azure Blob Storage blob 名称。', + container: 'Azure Blob Storage 容器名称。', + }, } diff --git a/packages/i18n/lib/zhSymbolLabel.ts b/packages/i18n/lib/zhSymbolLabel.ts index 4e9ef99..2883219 100644 --- a/packages/i18n/lib/zhSymbolLabel.ts +++ b/packages/i18n/lib/zhSymbolLabel.ts @@ -32,6 +32,8 @@ export const zhSymbolLabel: Record = { parameters_action_create: '创建', parameters_s_3_direct_upload_parameters: '直接上传', parameters_s_3_aggregated_upload_parameters: '聚合上传', + parameters_direct_parameters: '直接上传', + parameters_aggreg_parameters: '聚合上传', all_partitions: '所有分区', plain: 'Plain', scram_sha_256: 'SHA256',