Skip to content

Instantly share code, notes, and snippets.

@mivok
Created August 20, 2015 20:43
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 mivok/ae0c5267cd7999db7129 to your computer and use it in GitHub Desktop.
Save mivok/ae0c5267cd7999db7129 to your computer and use it in GitHub Desktop.
Indexing multiple times
(let [index (index)]
(streams
index ; Index everything to begin with
(where (<= 0 metric 5)
(with :state "ok" index)
(else
(with :state "warning" index)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment