Skip to content

Commit

Permalink
Add conversion of metric_timestamp to datetime in llmalert job
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewm4894 committed Dec 24, 2024
1 parent 268656e commit cfc7dc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions anomstack/jobs/llmalert.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def llmalert(context, df: pd.DataFrame) -> None:
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 cfc7dc0

Please sign in to comment.