lib/freno/client/requests/check_read.rb in freno-client-0.7.0 vs lib/freno/client/requests/check_read.rb in freno-client-0.8.0

- old
+ new

@@ -15,9 +15,15 @@ check do present app: app, store_type: store_type, store_name: store_name, threshold: threshold end + # A low priority check is handled slightly differently by Freno. If + # the p=low GET parameter is passed, the check will fail for any app + # with failed checks within the last second. This failure is returned + # quickly, without checking the underlying metric. + params[:p] = "low" if options[:low_priority] + @path = "check-read/#{app}/#{store_type}/#{store_name}/#{threshold.to_f.round(3)}" end end end end