Sha256: 648af95685696ecef36732d4ba3dd75ab2db6ea19fa6befbf1e475b03a26801d
Contents?: true
Size: 865 Bytes
Versions: 2
Compression:
Stored size: 865 Bytes
Contents
require_relative "../request" module Freno class Client module Requests class Check < Request def initialize(**kwargs) super app = kwargs.fetch(:app) store_type = kwargs.fetch(:store_type) store_name = kwargs.fetch(:store_name) check do present app: app, store_type: store_type, store_name: store_name 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/#{app}/#{store_type}/#{store_name}" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
freno-client-0.8.1 | lib/freno/client/requests/check.rb |
freno-client-0.8.0 | lib/freno/client/requests/check.rb |