This is an automated email from the ASF dual-hosted git repository.

gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/master by this push:
     new 8ae4d0e2d [improve] add oracle i18n (#2508)
8ae4d0e2d is described below

commit 8ae4d0e2d3e27cdb73ca1a5778cc12b36affadf2
Author: aias00 <[email protected]>
AuthorDate: Mon Aug 12 22:07:31 2024 +0800

    [improve] add oracle i18n (#2508)
    
    Co-authored-by: tomsun28 <[email protected]>
---
 manager/src/main/resources/define/app-oracle.yml | 208 ++++++++++++++++++++++-
 1 file changed, 206 insertions(+), 2 deletions(-)

diff --git a/manager/src/main/resources/define/app-oracle.yml 
b/manager/src/main/resources/define/app-oracle.yml
index 807713a3b..8dbc10cd9 100644
--- a/manager/src/main/resources/define/app-oracle.yml
+++ b/manager/src/main/resources/define/app-oracle.yml
@@ -95,6 +95,9 @@ params:
 metrics:
   # metrics - basic
   - name: basic
+    i18n:
+      zh-CN: 基本信息
+      en-US: Basic Info
     # metrics scheduling priority(0->127)->(high->low), metrics with the same 
priority will be scheduled in parallel
     # priority 0's metrics is availability metrics, it will be scheduled 
first, only availability metrics collect success will the scheduling continue
     priority: 0
@@ -104,14 +107,29 @@ metrics:
       - field: database_version
         type: 1
         label: true
+        i18n:
+          zh-CN: 数据库版本
+          en-US: Database Version
       - field: hostname
         type: 1
+        i18n:
+          zh-CN: 主机名
+          en-US: Host Name
       - field: instance_name
         type: 1
+        i18n:
+          zh-CN: 实例名
+          en-US: Instance Name
       - field: startup_time
         type: 1
+        i18n:
+          zh-CN: 启动时间
+          en-US: Startup Time
       - field: status
         type: 1
+        i18n:
+          zh-CN: 状态
+          en-US: Status
     # (optional)metrics field alias name, it is used as an alias field to map 
and convert the collected data and metrics field
     aliasFields:
       - VERSION
@@ -148,23 +166,44 @@ metrics:
       url: ^_^url^_^
 
   - name: tablespace
+    i18n:
+      zh-CN: 表空间
+      en-US: Tablespace
     priority: 1
     fields:
       - field: file_id
         type: 1
         label: true
+        i18n:
+          zh-CN: 文件ID
+          en-US: File ID
       - field: file_name
         type: 1
+        i18n:
+          zh-CN: 文件名
+          en-US: File Name
       - field: tablespace_name
         type: 1
+        i18n:
+          zh-CN: 表空间名
+          en-US: Tablespace Name
       - field: status
         type: 1
+        i18n:
+          zh-CN: 状态
+          en-US: Status
       - field: bytes
         type: 0
+        i18n:
+          zh-CN: 字节数
+          en-US: Bytes
         unit: MB
       - field: blocks
         type: 0
-        unit: 块数
+        i18n:
+          zh-CN: 块数
+          en-US: Blocks
+        unit: 块
     protocol: jdbc
     jdbc:
       host: ^_^host^_^
@@ -180,10 +219,16 @@ metrics:
       url: ^_^url^_^
 
   - name: total_sessions
+    i18n:
+      zh-CN: 会话总数
+      en-US: Total Sessions
     priority: 1
     fields:
       - field: count
         type: 0
+        i18n:
+          zh-CN: 总数
+          en-US: Count
     protocol: jdbc
     jdbc:
       host: ^_^host^_^
@@ -198,10 +243,16 @@ metrics:
       url: ^_^url^_^
 
   - name: active_sessions
+    i18n:
+      zh-CN: 活动会话
+      en-US: Active Sessions
     priority: 1
     fields:
       - field: count
         type: 0
+        i18n:
+          zh-CN: 总数
+          en-US: Count
     protocol: jdbc
     jdbc:
       host: ^_^host^_^
@@ -216,10 +267,16 @@ metrics:
       url: ^_^url^_^
 
   - name: background_sessions
+    i18n:
+      zh-CN: 后台会话
+      en-US: Background Sessions
     priority: 1
     fields:
       - field: count
         type: 0
+        i18n:
+          zh-CN: 总数
+          en-US: Count
     protocol: jdbc
     jdbc:
       host: ^_^host^_^
@@ -234,12 +291,21 @@ metrics:
       url: ^_^url^_^
 
   - name: connection
+    i18n:
+      zh-CN: 连接
+      en-US: Connection
     priority: 1
     fields:
       - field: username
         type: 1
+        i18n:
+          zh-CN: 用户名
+          en-US: Username
         label: true
       - field: count
+        i18n:
+          zh-CN: 总数
+          en-US: Count
         type: 0
     protocol: jdbc
     jdbc:
@@ -255,16 +321,28 @@ metrics:
       url: ^_^url^_^
 
   - name: performance
+    i18n:
+      zh-CN: 性能
+      en-US: Performance
     priority: 1
     fields:
       - field: qps
         type: 0
+        i18n:
+          zh-CN: 每秒查询数
+          en-US: QPS
         unit: qps
       - field: tps
         type: 0
+        i18n:
+          zh-CN: 每秒事务数
+          en-US: TPS
         unit: tps
       - field: mbps
         type: 0
+        i18n:
+          zh-CN: 每秒IO读写
+          en-US: MBPS
         unit: mbps
     aliasFields:
       - I/O Requests per Second
@@ -289,22 +367,43 @@ metrics:
 
 
   - name: percentage
+    i18n:
+      zh-CN: 百分比
+      en-US: Percentage
     priority: 1
     fields:
       - field: tablespace_name
         type: 1
+        i18n:
+          zh-CN: 表空间名
+          en-US: Tablespace Name
         label: true
       - field: total
+        i18n:
+          zh-CN: 全部
+          en-US: Total
         type: 0
       - field: used
+        i18n:
+          zh-CN: 已用
+          en-US: Used
         type: 0
       - field: free
+        i18n:
+          zh-CN: 空闲
+          en-US: Free
         type: 0
       - field: used_percentage
         type: 0
+        i18n:
+          zh-CN: 已用百分比
+          en-US: Used Percentage
         unit: '%'
       - field: free_percentage
         type: 0
+        i18n:
+          zh-CN: 空闲百分比
+          en-US: Free Percentage
         unit: '%'
     protocol: jdbc
     jdbc:
@@ -321,10 +420,16 @@ metrics:
       url: ^_^url^_^
 
   - name: process
+    i18n:
+      zh-CN: 进程
+      en-US: Process
     priority: 1
     fields:
       - field: process_count
         type: 0
+        i18n:
+          zh-CN: 进程数
+          en-US: Process Count
     protocol: jdbc
     jdbc:
       host: ^_^host^_^
@@ -339,14 +444,23 @@ metrics:
       url: ^_^url^_^
 
   - name: transaction
+    i18n:
+      zh-CN: 事务
+      en-US: Transaction
     priority: 1
     fields:
       - field: commits
         type: 0
         unit: 't/s'
+        i18n:
+          zh-CN: 提交数
+          en-US: Commits
       - field: rollbacks
         type: 0
         unit: 't/s'
+        i18n:
+          zh-CN: 回滚数
+          en-US: Rollbacks
     aliasFields:
       - User Commits Per Sec
       - User Rollbacks Per Sec
@@ -367,32 +481,59 @@ metrics:
       url: ^_^url^_^
 
   - name: wait
+    i18n:
+      zh-CN: 等待
+      en-US: Wait
     priority: 1
     fields:
       - field: concurrent_wait_time
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 并发等待时间
+          en-US: Concurrent Wait Time
       - field: commit_wait_time
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 提交等待时间
+          en-US: Commit Wait Time
       - field: app_wait_time
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 应用等待时间
+          en-US: Application Wait Time
       - field: network_wait_time
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 网络等待时间
+          en-US: Network Wait Time
       - field: system_io_wait_time
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 系统I/O等待时间
+          en-US: System I/O Wait Time
       - field: user_io_wait_time
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 用户I/O等待时间
+          en-US: User I/O Wait Time
       - field: configure_wait_time
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 配置等待时间
+          en-US: Configure Wait Time
       - field: scheduler_wait_time
         type: 0
         unit: ms
+        i18n:
+          zh-CN: 调度等待时间
+          en-US: Scheduler Wait Time
     aliasFields:
       - System I/O
       - Application
@@ -425,13 +566,22 @@ metrics:
       url: ^_^url^_^
 
   - name: cpu_stats
+    i18n:
+      zh-CN: CPU状态
+      en-US: CPU Stats
     priority: 1
     fields:
       - field: type
         type: 1
         label: true
+        i18n:
+          zh-CN: 类型
+          en-US: Type
       - field: num
         type: 1
+        i18n:
+          zh-CN: 数量
+          en-US: Num
     protocol: jdbc
     jdbc:
       host: ^_^host^_^
@@ -446,13 +596,22 @@ metrics:
       url: ^_^url^_^
 
   - name: mem_stats
+    i18n:
+      zh-CN: 内存状态
+      en-US: Memory Stats
     priority: 1
     fields:
       - field: type
         type: 1
         label: true
+        i18n:
+          zh-CN: 类型
+          en-US: Type
       - field: num
         type: 1
+        i18n:
+          zh-CN: 数量
+          en-US: Num
     protocol: jdbc
     jdbc:
       host: ^_^host^_^
@@ -467,12 +626,21 @@ metrics:
       url: ^_^url^_^
 
   - name: cache_hit_ratio
+    i18n:
+      zh-CN: 缓存命中率
+      en-US: Cache Hit Ratio
     priority: 1
     fields:
       - field: lib_cache_hit_ratio
         type: 0
+        i18n:
+          zh-CN: 库缓存命中率
+          en-US: LIB CACHE HIT RATIO
       - field: buffer_cache_hit_ratio
         type: 0
+        i18n:
+          zh-CN: 缓冲区缓存命中率
+          en-US: BUFFER CACHE HIT RATIO
     aliasFields:
       - Library Cache Hit Ratio
       - Buffer Cache Hit Ratio
@@ -493,33 +661,69 @@ metrics:
       url: ^_^url^_^
 
   - name: slow_query
+    i18n:
+      zh-CN: 慢查询
+      en-US: Slow Query
     priority: 1
     fields:
       - field: sql_id
         type: 1
+        i18n:
+          zh-CN: sql 主键
+          en-US: SQL ID
       - field: child_number
         type: 1
+        i18n:
+          zh-CN: 子编号
+          en-US: Child Number
       - field: executions
         type: 1
-        unit: 次数
+        i18n:
+          zh-CN: 执行数
+          en-US: EXECUTIONS
+        unit: 次
       - field: per_secs
         type: 1
+        i18n:
+          zh-CN: 每秒执行数
+          en-US: Per Secs
         unit: 秒
       - field: cpu_secs
         type: 1
+        i18n:
+          zh-CN: 每秒CPU
+          en-US: CPU Secs
         unit: 秒
       - field: buffer_gets
         type: 1
+        i18n:
+          zh-CN: 获得的缓冲区
+          en-US: Buffer Gets
       - field: disk_reads
         type: 1
+        i18n:
+          zh-CN: 磁盘读取
+          en-US: Disk Reads
       - field: fetches
         type: 1
+        i18n:
+          zh-CN: 获取数量
+          en-US: Fetches
       - field: parse_calls
         type: 1
+        i18n:
+          zh-CN: 解析调用
+          en-US: Parse Calls
       - field: optimizer_cost
         type: 1
+        i18n:
+          zh-CN: 优化器成本
+          en-US: Optimizer Cost
       - field: sql_text
         type: 1
+        i18n:
+          zh-CN: SQL文本
+          en-US: SQL Text
     protocol: jdbc
     jdbc:
       host: ^_^host^_^


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to