Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
add summary for usage report alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
siaimes committed Dec 3, 2021
1 parent ea19af1 commit 6a2e836
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/alert-manager/src/cluster-utilization/send_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ def send_alert(pai_url: str, cluster_usage, job_usage, user_usage):
"cluster_usage": cluster_usage,
"trigger_time": trigger_time,
},
"annotations": {
"summary": "The cluster usage has been reported, please check your email-box for details."
},
"generatorURL": "alert/script"
}
alerts.append(alert)
Expand All @@ -226,6 +229,9 @@ def send_alert(pai_url: str, cluster_usage, job_usage, user_usage):
"status": job["status"],
"trigger_time": trigger_time,
},
"annotations": {
"summary": "The cluster usage has been reported, please check your email-box for details."
},
"generatorURL": "alert/script"
}
alerts.append(alert)
Expand All @@ -242,6 +248,9 @@ def send_alert(pai_url: str, cluster_usage, job_usage, user_usage):
"usage": user["usage"],
"trigger_time": trigger_time,
},
"annotations": {
"summary": "The cluster usage has been reported, please check your email-box for details."
},
"generatorURL": "alert/script"
}
alerts.append(alert)
Expand Down

0 comments on commit 6a2e836

Please sign in to comment.