This commit is contained in:
s.mostryukov 2024-10-15 13:18:04 +03:00
parent f8f5d55391
commit 88433c4c94
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ async def net_send_message(
if result and result["status"] == 200: if result and result["status"] == 200:
await set_value(f"scom:net:{message.alert_source}", result["msg_id"]) await set_value(f"scom:net:{message.alert_source}", result["msg_id"])
else: else:
text = f"{message.alert_source}\nAlert: {message.alert_name}\nState: {message.alert_resolution_state}\nDescription: {message.alert_description}" text = (
f"{message.alert_resolution_state} {message.alert_source} is responding"
)
dashboard_msg_id = await pop_value(f"scom:net_dashboard:{message.alert_source}") dashboard_msg_id = await pop_value(f"scom:net_dashboard:{message.alert_source}")
if dashboard_msg_id: if dashboard_msg_id:
dashboard_msg_id = int(dashboard_msg_id.decode("utf-8")) dashboard_msg_id = int(dashboard_msg_id.decode("utf-8"))