Skip to content

Instantly share code, notes, and snippets.

@lmarburger
Created November 9, 2012 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmarburger/afeeb7c1d91455790140 to your computer and use it in GitHub Desktop.
Save lmarburger/afeeb7c1d91455790140 to your computer and use it in GitHub Desktop.
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'
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