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

Commit

Permalink
fix(format): add expected range
Browse files Browse the repository at this point in the history
  • Loading branch information
Amatullah committed Sep 26, 2022
1 parent 5b7f6fa commit 305a803
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chaos_genius/alerts/email_templates/common.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@
<span style="{{ important_text }}">{{ point.anomaly_time_only }}</span>
{%- endif %}

<span style="{{ non_important_text }}">
. Expected: {{ point.yhat_lower_readable }} - {{ point.yhat_upper_readable }}.
</span>

{% if point.relevant_subdims -%}
<ul>
<li>
Expand Down
1 change: 1 addition & 0 deletions chaos_genius/alerts/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def anomaly_point_formatting(
out += f"changed to *{point.y_readable}*"
if point.is_hourly:
out += f" at {point.anomaly_time_only}"
out += f". Expected: {point.yhat_lower_readable} - {point.yhat_upper_readable}."

if point.relevant_subdims:
out += "\n - Reasons for change: "
Expand Down

0 comments on commit 305a803

Please sign in to comment.