Class: ElasticAPM::Transaction::Outcome Private
- Inherits:
-
Object
- Object
- ElasticAPM::Transaction::Outcome
- Defined in:
- lib/elastic_apm/transaction.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- FAILURE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"failure"
- SUCCESS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"success"
- UNKNOWN =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"unknown"
Class Method Summary collapse
- .from_http_status(code) ⇒ Object private
Class Method Details
.from_http_status(code) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'lib/elastic_apm/transaction.rb', line 29 def self.from_http_status(code) code.to_i >= 500 ? FAILURE : SUCCESS end |