Skip to content

Commit

Permalink
fix: obdiag实现参数、变量采集和比对功能 (#336)
Browse files Browse the repository at this point in the history
* obdiag gather and analyze parameters/variables

* obdiag gather and analyze parameters/variables

* obdiag gather and analyze parameters/variables

* obdiag gather and analyze parameters/variables

* CSV添加表头

* obdiag gather and analyze parameters/variables

* 添加文件有效性验证

* 添加文件有效性验证

* 修改参数范围表述

* 修改重复项和描述

* 变量分析中采集时间显示BUG修复
  • Loading branch information
oraclebird authored Jul 16, 2024
1 parent 7a3c386 commit cc77bee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handler/analyzer/analyze_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ def analyze_parameter_default(self):
with open(self.parameter_file_name, 'r', newline='') as file:
reader = csv.reader(file)
for row in reader:
if row[0] == 'VERSION':
continue
key = str(row[1]) + '-' + str(row[2]) + '-' + str(row[3]) + '-' + str(row[4]) + '-' + str(row[5]) + '-' + str(row[6])
value = row[7]
file_parameter_dict[key] = value
Expand Down Expand Up @@ -211,6 +213,8 @@ def alalyze_parameter_diff(self):
with open(self.parameter_file_name, 'r', newline='') as file:
reader = csv.reader(file)
for row in reader:
if row[0] == 'VERSION':
continue
parameter_info.append(row)
tenants_dict = dict()
for row in parameter_info:
Expand Down
2 changes: 2 additions & 0 deletions handler/analyzer/analyze_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def analyze_variable(self):
with open(self.variable_file_name, 'r', newline='') as file:
reader = csv.reader(file)
for row in reader:
if row[0] == 'VERSION':
continue
key = str(row[1]) + '-' + str(row[3])
file_variable_dict[key] = str(row[5])
if not last_gather_time:
Expand Down

0 comments on commit cc77bee

Please sign in to comment.