README.md in sidekiq-job_alert-0.1.1 vs README.md in sidekiq-job_alert-0.1.2

- old
+ new

@@ -17,11 +17,11 @@ Or install it yourself as: $ gem install sidekiq-job_alert ## Usage -1. copy `sidekiq_job_alert.yml` to your local and config it +- copy `sidekiq_job_alert.yml` to your local and config it ```yaml :webhook_url: "YOUR SLACK INCOMING WEBHOOK" :username: "Sidekiq_JobAlert" :channel: "YOUR CHANNEL" @@ -39,13 +39,19 @@ :limit: 0 # Only send alert when queue_1's jobs over limit :queue_2: :limit: 0 # Only send alert when queue_2's jobs over limit ``` -2. run +- run ```ruby sidekiq_job_alert alert --config ./sidekiq_job_alert.yml +``` + +or + +```ruby +Sidekiq::JobAlert::Notifier.new('config/sidekiq_job_alert.yml').call ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.