Skip to content

Commit

Permalink
PISTON-542: add documentation of cf_acdc_wait_time module purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfinke committed Mar 1, 2018
1 parent 4b85a66 commit 695eaba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion applications/acdc/src/cf_acdc_wait_time.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
%%%-----------------------------------------------------------------------------
%%% @copyright (C) 2018-, Voxter Communications Inc
%%% @doc Data: {
%%% @doc Handles branching the callflow based on the current average wait time
%%% of a queue
%%% Data: {
%%% "id":"queue id"
%%% }
%%%
Expand Down
3 changes: 3 additions & 0 deletions applications/callflow/doc/acdc_wait_time.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

### About Acdc Wait Time

Handles branching the callflow based on the current average wait time of a queue.
Branch keys are integer-convertible binaries (e.g. `<<"60">>`) that represent wait time thresholds in seconds. The default branch is represented by the `_` key. The branch with the highest threshold which the queue's current average wait time exceeds is the branch followed in the callflow's execution. If none are exceeded, the default branch is followed.

#### Schema

Validator for the acdc_wait_time callflow's data object
Expand Down

0 comments on commit 695eaba

Please sign in to comment.