fix: db.get_or_404 -> query.get_or_404 + rename to Palladium Monitor
- 修复删除快照时 AttributeError: SQLAlchemy.get_or_404 (低版本兼容) - UI/标题/邮件主题从 'Palladium Z1 Monitor' 改为 'Palladium Monitor'
This commit is contained in:
+3
-3
@@ -1,9 +1,9 @@
|
||||
from typing import List, Dict, Tuple, Set, Any, Optional, Union
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
collect.py — Palladium Z1 远程数据采集推送脚本
|
||||
collect.py — Palladium 远程数据采集推送脚本
|
||||
|
||||
在 Palladium Z1 主机上运行,执行 test_server -short 并将结果推送到监控服务器。
|
||||
在 Palladium 主机上运行,执行 test_server -short 并将结果推送到监控服务器。
|
||||
|
||||
用法:
|
||||
python3 collect.py # 默认配置
|
||||
@@ -153,7 +153,7 @@ def push_to_monitor(url: str, raw_output: str, source: str,
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Palladium Z1 数据采集推送 (cron 友好, 带重试和日志)",
|
||||
description="Palladium 数据采集推送 (cron 友好, 带重试和日志)",
|
||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
||||
)
|
||||
parser.add_argument("--url", default=DEFAULT_URL,
|
||||
|
||||
Reference in New Issue
Block a user