Skip to content

Action Dispatcher

Garot Conklin edited this page Apr 29, 2025 · 1 revision

Action Dispatcher

Overview

The Action Dispatcher executes remediation actions based on AI decisions. It handles:

  • AWS service interactions
  • External system notifications
  • Remediation tracking

Supported Actions

AWS Services

  • EC2 instance management
  • Auto Scaling operations
  • RDS modifications
  • Systems Manager commands

External Systems

  • Slack notifications
  • PagerDuty alerts
  • ServiceNow tickets
  • Email notifications

Implementation

class ActionDispatcher:
    async def execute_actions(self, decision):
        # AWS Service actions
        if action.type == "aws":
            await self._execute_aws_action()

        # External notifications
        elif action.type == "notify":
            await self._send_notification()

Error Handling

  • Retry logic for failed actions
  • Rollback procedures
  • Error notifications
  • Audit logging

Clone this wiki locally