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
f1fcb634
Commit
f1fcb634
authored
Nov 29, 2024
by
tinywell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监测点、设备 summary 调整
parent
cf11f1bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tool_monitor.py
src/agent/tool_monitor.py
+2
-2
tool_rate.py
src/agent/tool_rate.py
+1
-1
No files found.
src/agent/tool_monitor.py
View file @
f1fcb634
...
...
@@ -143,7 +143,7 @@ class MonitorPointTool(BaseTool):
result
=
{
'code'
:
200
,
'summary'
:
f
"
在{key}
找到{len(devices_info)}个设备信息, {len(sensors_info)}个传感器信息"
,
'summary'
:
f
"找到{len(devices_info)}个设备信息, {len(sensors_info)}个传感器信息"
,
# 'devices': {
# 'table_header': device_table_header,
# 'table_data': device_table_data
...
...
@@ -223,7 +223,7 @@ class MonitorPointTool(BaseTool):
table_data
.
append
([
"..."
])
result
=
{
'code'
:
200
,
'summary'
:
f
"
在{key}
找到{len(points_info)}个满足条件的监测点信息"
,
'summary'
:
f
"找到{len(points_info)}个满足条件的监测点信息"
,
'points'
:
{
'table_header'
:
table_header
,
'table_data'
:
table_data
...
...
src/agent/tool_rate.py
View file @
f1fcb634
...
...
@@ -98,7 +98,7 @@ class RegionRateTool(BaseRateTool):
self
.
logger
.
debug
(
f
"找到区域代码: {code}"
)
if
month_statistics
:
return
self
.
get_region_online_rate_of_month
(
region_name
,
code
,
start_time
,
end_time
)
return
self
.
get_region_online_rate_of_month
(
region_name
,
code
,
start_time
,
end_time
,
device_items
)
else
:
return
self
.
get_region_online_rate
(
start_time
,
end_time
,
region_name
,
code
,
month_statistics
,
device_items
,
manufacturer_name
)
...
...
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