Skip to content

Commit

Permalink
Fix docstring convention issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hatfield committed Mar 29, 2013
1 parent 29a82f8 commit 76f0fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riemann/streams.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1467,14 +1467,14 @@ OA
~@condp-clauses)))))

(defn runs
[len-run field & children]
"Usable to perform flap detection, runs examines a moving-event-window of
n events and determines if :field is the same across all them. If it is,
runs passes on the *first* event of the window. In practice, this can be
used nested within a (changed-state ...) to reduce 'flappiness' for
state changes.
(runs 3 :state prn) ; Print events where there are 3-in-a-row of a state."
[len-run field & children]
(moving-event-window
len-run
(smap
Expand Down

0 comments on commit 76f0fef

Please sign in to comment.