README.md in yodeler-0.1.1 vs README.md in yodeler-0.1.2

- old
+ new

@@ -11,11 +11,11 @@ ## Installation Add this line to your application's Gemfile: ```ruby -gem 'yodeler', '~>0.1.1' +gem 'yodeler', '~>0.1.2' ``` And then execute: $ bundle @@ -38,10 +38,15 @@ http.host = 'example.com' # http.port = 80 # http.use_ssl = false # http.default_params = {} end + + # if no timestamp_format is set, defaults to UTC ISO8601 + client.timestamp_format = :iso8601 + #client.timestamp_format = :epoch + #client.timestamp_format = -> { Time.now.whatever.you_feel_like! } end ``` #### Multiple Endpoints In ```config/initializers/yodeler.rb``` @@ -100,11 +105,11 @@ http.default_params = { auth_token: config[:auth_token] } # Overwrite the default http dispatcher or overwrite an individual metric dispatcher - # http.handle(:gauge){|url, metric, default_params| ... something cool ... } + # http.handle(:gauge){ |url, metric, default_params| ... something cool ... } http.handle(:default) do |url, metric, default_params| # This is the default handler definition, but you could change it HTTP.post(url, json: default_params.merge(metric.to_hash)) end end @@ -193,5 +198,9 @@ ## TODOs * [ ] Custom adapter documentation * [ ] Client#format_options -> Metric.format_options * [ ] Client#default_endpoint_name accept array of names + * [ ] Dispatch to any object or proc, if adapter not registered + * client.endpoint(:dashboard).use(:something_that_responds_to_dispatch) + * client.endpoint(:dashboard).use{ |metric| MyWorker.perform_later(metric) } + * [ ] more yard docs