-
-
Save lmarburger/afeeb7c1d91455790140 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define 'notify Arthur' do | |
participant 'IM Arthur', :recipient => 'arthur@example.com', :network => 'jabber', :timeout => '1m' | |
participant 'SMS Arthur', :recipient => '+12223334444' | |
end | |
define 'Gripe to Ford' do | |
concurrence do | |
participant 'email Ford', :recipient => 'ford@prefect.com' | |
participant 'im Ford', :recipient => 'ford@prefect.com', :network => 'jabber' | |
end | |
participant 'call Ford', :recipient => '+14443332222' | |
end | |
define 'spam' do | |
concurrence do | |
subprocess 'notify Arthur' | |
subprocess 'Gripe to Ford' | |
participant 'Call Sally', :recipient => '+15556667777', :if => '${nighttime}' | |
end | |
end | |
participant 'handle alert', :timers => '0m: spam' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define arthur | |
im recipient: arthur@dent.com, network: jabber, timeout: 1m | |
sms recipient: +12223334444 | |
define ford | |
concurrence timeout: 5m | |
email recipient: ford@prefect.com | |
im recipient: ford@prefect.com, network: jabber | |
call recipient: +14443332222 | |
define spam | |
concurrence | |
subprocess arthur | |
subprocess ford | |
handle_alert timers: '0m spam' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment