Ver Fonte

feat:修改监控脚本

zhaohaipeng há 23 horas atrás
pai
commit
2506e6bced
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      monitor/supply_workflow_monitor.py

+ 2 - 2
monitor/supply_workflow_monitor.py

@@ -27,7 +27,7 @@ column_width_map = {
     "失败": "80px",
     "失败": "80px",
 }
 }
 
 
-header_template = ["blue", "wathet", "turquoise", "green", "yellow", "orange"]
+header_template = ["wathet", "turquoise", "yellow", "orange", "carmine", "violet", "purple", "indigo", "green"]
 header_template_index = 0
 header_template_index = 0
 
 
 
 
@@ -397,7 +397,7 @@ def workflow_dashboard_monitor():
     end_dt_str = datetime.now().strftime('%Y-%m-%d %H:%M')
     end_dt_str = datetime.now().strftime('%Y-%m-%d %H:%M')
 
 
     sub_title = build_sub_title_json(f"统计时间: {start_dt_str} - {end_dt_str}")
     sub_title = build_sub_title_json(f"统计时间: {start_dt_str} - {end_dt_str}")
-    header = build_header_json("【供给workflow】当日任务统计", "indigo", sub_title, [])
+    header = build_header_json("【供给workflow】当日任务统计", "blue", sub_title, [])
     dashboard_stat = build_table_element_json(pd.DataFrame(result))
     dashboard_stat = build_table_element_json(pd.DataFrame(result))
     elements = []
     elements = []
     if dashboard_stat is not None:
     if dashboard_stat is not None: