Skip to content

Commit

Permalink
Remove unnecessary conversion of 'metric_timestamp' to datetime in ll…
Browse files Browse the repository at this point in the history
…malert job
  • Loading branch information
andrewm4894 committed Dec 27, 2024
1 parent 170f14d commit e03ebd0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion anomstack/jobs/llmalert.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def llmalert(context, df: pd.DataFrame) -> pd.DataFrame:
left_on="metric_timestamp",
right_on="anomaly_timestamp",
)
df_metric['metrics_timestamp'] = pd.to_datetime(df_metric['metric_timestamp'])

# if there are detected anomalies set metric_alert to 1 if it is not already 1
if not df_metric["metric_alert"].any():
Expand Down

0 comments on commit e03ebd0

Please sign in to comment.