Skip to content

Commit

Permalink
fix(alerts): fixed batch-ms-teams notifications (openreplay#1720)
Browse files Browse the repository at this point in the history
  • Loading branch information
tahayk authored Nov 28, 2023
1 parent dfbcecf commit 2e92314
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/chalicelib/core/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def send_to_msteams_batch(notifications_list):
webhookId_map[n.get("destination")]["batch"].append(
{
"activityTitle": n["notification"]["title"],
"activitySubtitle": f"On Project *{n['projectName']}*",
"activitySubtitle": f"On Project *{n['notification']['projectName']}*",
"facts": [
{
"name": "Target:",
Expand Down
2 changes: 1 addition & 1 deletion api/chalicelib/core/alerts_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def generate_notification(alert, result):
"alertId": alert["alertId"],
"tenantId": alert["tenantId"],
"title": alert["name"],
"description": f"has been triggered, {alert['seriesName']} = {left} ({alert['query']['operator']} {right}).",
"description": f"{alert['seriesName']} = {left} ({alert['query']['operator']} {right}).",
"buttonText": "Check metrics for more details",
"buttonUrl": f"/{alert['projectId']}/metrics",
"imageUrl": None,
Expand Down
2 changes: 1 addition & 1 deletion api/run-alerts-dev.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/zsh

uvicorn app_alerts:app --reload --port 8888
uvicorn app_alerts:app --reload --port 8888 --log-level ${S_LOGLEVEL:-warning}

0 comments on commit 2e92314

Please sign in to comment.