Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LAE
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文靖昊
LAE
Commits
c89d3864
Commit
c89d3864
authored
Nov 29, 2024
by
tinywell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阅读在线率数据总结 bug;预警消息占比参数名称修正
parent
8c390c1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
tool_rate.py
src/agent/tool_rate.py
+2
-2
tool_warn.py
src/agent/tool_warn.py
+4
-4
No files found.
src/agent/tool_rate.py
View file @
c89d3864
...
...
@@ -173,7 +173,7 @@ class RegionRateTool(BaseRateTool):
# 排序
result_data
=
sorted
(
result_data
.
items
(),
key
=
lambda
x
:
x
[
0
])
self
.
logger
.
debug
(
f
"查询结果: {df.result
data}"
)
self
.
logger
.
info
(
f
"查询结果: {result_
data}"
)
# markdown = self.to_markdown(df.resultdata)
# table_header = list(result_data[0].keys())
...
...
@@ -189,7 +189,7 @@ class RegionRateTool(BaseRateTool):
data
=
{
'region'
:
region_name
,
'region_code'
:
code
,
'summary'
:
f
"找到符合条件的数据 {len(result_data)} 条,包含{year}年{
result_data.keys(
)}月份的数据"
,
'summary'
:
f
"找到符合条件的数据 {len(result_data)} 条,包含{year}年{
','.join([item[0] for item in result_data]
)}月份的数据"
,
'rate_data'
:
result_data
}
...
...
src/agent/tool_warn.py
View file @
c89d3864
...
...
@@ -77,13 +77,13 @@ class WarningTool(BaseTool):
"虚警消息个数"
:
response
.
resultdata
[
"falsenum"
],
"虚警率"
:
response
.
resultdata
[
"falseper"
],
"红色预警消息个数"
:
response
.
resultdata
[
"rednum"
],
"红色
处置消息个数
"
:
response
.
resultdata
[
"redcloseper"
],
"红色
预警消息占比
"
:
response
.
resultdata
[
"redcloseper"
],
"橙色预警消息个数"
:
response
.
resultdata
[
"orangenum"
],
"橙色
处置消息个数
"
:
response
.
resultdata
[
"orangecloseper"
],
"橙色
预警消息占比
"
:
response
.
resultdata
[
"orangecloseper"
],
"黄色预警消息个数"
:
response
.
resultdata
[
"yellownum"
],
"黄色
处置消息个数
"
:
response
.
resultdata
[
"yellowcloseper"
],
"黄色
预警消息占比
"
:
response
.
resultdata
[
"yellowcloseper"
],
"蓝色预警消息个数"
:
response
.
resultdata
[
"bluenum"
],
"蓝色
处置消息个数
"
:
response
.
resultdata
[
"bluecloseper"
],
"蓝色
预警消息占比
"
:
response
.
resultdata
[
"bluecloseper"
],
"数据异常消息个数"
:
response
.
resultdata
[
"datanum"
],
"数据异常消息占比"
:
response
.
resultdata
[
"datacloseper"
],
"设备维护"
:
response
.
resultdata
[
"devicemainnum"
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment