Skip to content

Instantly share code, notes, and snippets.

@SimplyChris
Created July 28, 2022 04:08
Show Gist options
  • Save SimplyChris/eec49141f5927e06f926e5fceb796044 to your computer and use it in GitHub Desktop.
Save SimplyChris/eec49141f5927e06f926e5fceb796044 to your computer and use it in GitHub Desktop.
Text Models
sequenceDiagram
autonumber
Critical Alert Lifecycle
Critical Phase: Init New Alert Lifecycle
Activate AlertManager
RulesEngine->>AlertManager: Alert Triggered
end
Critical Phase: Obtain Destination Set
AlertManager->>+ParticipantProvider: Determine Destination Set
ParticipantProvider-->>-AlertManager: Destinations
end
Critical Phase: 1st Stage Delivery
AlertManager->>+NotificationService: Alert Users
Actor UserA
Actor UserB
end
alt Acks
activate UserA
NotificationService->>UserA: Test
UserA--)NotificationService: Ack Alert
NotificationService-->>AlertManager: Clear Alert
deactivate NotificationService
deactivate UserA
else Ignores
activate ParticipantProvider
AlertManager->>ParticipantProvider: Determine Escalation Set
ParticipantProvider-->>-AlertManager: Esclation Destinations
AlertManager->>+NotificationService: Deliver To Esclation Set
NotificationService->>+UserB: Notify UserB
UserB--)-NotificationService: Ack Alert
NotificationService-->>-AlertManager: Clear Alert
end
deactivate AlertManager
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment