Skip to content

Commit 7836b8e

Browse files
committed
refactor(observability): polish playbooks and dashboard
1 parent 20c1628 commit 7836b8e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

agent_pm/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def _parse_google_scopes(cls, value):
8585
task_queue_alert_webhook_url: str | None = Field(None, alias="TASK_QUEUE_ALERT_WEBHOOK_URL")
8686
pagerduty_routing_key: str | None = Field(None, alias="PAGERDUTY_ROUTING_KEY")
8787
task_queue_playbooks: dict[str, str] = Field(default_factory=dict, alias="TASK_QUEUE_PLAYBOOKS")
88+
pagerduty_service_name: str | None = Field(None, alias="PAGERDUTY_SERVICE_NAME")
8889
database_url: str | None = Field("sqlite+aiosqlite:///./data/agent_pm.db", alias="DATABASE_URL")
8990
database_echo: bool = Field(False, alias="DATABASE_ECHO")
9091
redis_url: str = Field("redis://localhost:6379", alias="REDIS_URL")

agent_pm/tasks/playbooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def _notify_slack(payload: dict[str, Any], queue: Any, error_type: str) ->
2828
if settings.dry_run or not slack_client.enabled:
2929
logger.warning("Remediation Slack notification skipped (dry run)")
3030
return
31-
await slack_client.post_digest(message, channel)
31+
await slack_client.post_digest(message, channel)
3232

3333

3434
async def _invoke_webhook(payload: dict[str, Any], queue: Any, error_type: str) -> None:

0 commit comments

Comments
 (0)