Sha256: 9ecbe3caf38c41cc482573ea6d45fefe4d276cd16ee0552ac0701074be94542d
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
module TingYun module Instrumentation module Support module SplitController # HTTP = { # 'GET' => 1, # 'POST' => 2, # 'PUT' => 3, # 'DELETE' => 4, # 'HEAD' => 5 # } # # RULE = { # 1=> :eql?, # 2=> :start_with?, # 3=> :end_with?, # 4=> :include? # } # # def match?(event) # rules.each do |rule| # if method_match?(event.method, rule[:match]['method']) # if url_match?(event.path,rule[:match][:match], rule[:match]['value']) # # end # end # end # end # # # # def rules # TingYun::Agent.config[:''] # end # # def method_match?(method, rule) # rule[:match]['method'] == 0 || rule == HTTP[method] # end # # def url_match?(url, rule, value) # url.send(RULE[rule], value) # end # # def params_match? # # end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tingyun_rpm-1.1.0 | lib/ting_yun/instrumentation/support/split_controller.rb |