Module: ThreeScale::Backend::Stats::CodesCommons
- Defined in:
- lib/3scale/backend/stats/codes_commons.rb
Constant Summary collapse
- TRACKED_CODES =
[200, 404, 403, 500, 503].freeze
- TRACKED_CODE_GROUPS =
['2XX'.freeze, '4XX'.freeze, '5XX'.freeze].freeze
Class Method Summary collapse
Class Method Details
.get_http_code_group(http_code) ⇒ Object
8 9 10 |
# File 'lib/3scale/backend/stats/codes_commons.rb', line 8 def self.get_http_code_group(http_code) "#{http_code / 100}XX" end |