chore: move pm2-self-heal.sh into scripts/
All companion scripts now live under scripts/ for a single, discoverable location.
This commit is contained in:
@@ -15,10 +15,11 @@ send_alert() {
|
|||||||
local body="$2"
|
local body="$2"
|
||||||
curl -s -X POST "$ZULIP_SITE/api/v1/messages" \
|
curl -s -X POST "$ZULIP_SITE/api/v1/messages" \
|
||||||
-u "$ZULIP_BOT:$ZULIP_KEY" \
|
-u "$ZULIP_BOT:$ZULIP_KEY" \
|
||||||
-d "type=private" \
|
-d "type=stream" \
|
||||||
-d "to=[$OWNER_ID]" \
|
-d "to=agent-hub" \
|
||||||
|
-d "subject=alerts-pm2" \
|
||||||
-d "content=$subject\n$body" > /dev/null 2>&1
|
-d "content=$subject\n$body" > /dev/null 2>&1
|
||||||
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Alert sent" >> "$LOG"
|
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Alert sent to #agent-hub > alerts-pm2" >> "$LOG"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Log-only mode: replaced by prose contract pm2-self-heal.prose.md
|
# Log-only mode: replaced by prose contract pm2-self-heal.prose.md
|
||||||
Reference in New Issue
Block a user