We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf8ca8 commit 2dcd486Copy full SHA for 2dcd486
anomstack/jobs/llmalert.py
@@ -176,7 +176,7 @@ def llmalert(context, df: pd.DataFrame) -> pd.DataFrame:
176
df_metric["anomaly_timestamp"].notnull()
177
][["anomaly_timestamp", "anomaly_explanation"]].apply(
178
lambda x: f"{x[0]}: {x[1]}", axis=1
179
- ).sort_values(ascending=False)
+ ).tail(llmalert_recent_n).sort_values(ascending=False)
180
anomaly_explanations = "\n- ".join(anomaly_explanations)
181
metric_timestamp_max = df_metric["metric_timestamp"].max()
182
alert_title = (
0 commit comments