Created
October 24, 2013 20:23
-
-
Save dryman/7144358 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
[{:url "http://www.yahoo.com/" | |
:interval 1000 ;; optional | |
:validator #(re-find #"yahoo" %) ;; optional | |
:http-options {:timeout 2000 ;; :http-options itself is also optional | |
:user-agent "Mozilla"} | |
:graphite-ns "com.yahoo.www" ;; defualt to reverse domain name | |
:params-fn (map #(hash-map :id %) (iterate inc 0)) ;; programatically control query params | |
:riemann-tags ["Yahoo" "Homepage"] | |
} | |
{:url "http://www.google.com/?search=abc" | |
:name "search" ;; append to graphite namespace | |
;; in this case it would be | |
;; "com.google.www.search" | |
} ;; only url is required | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment