Class: LogStash::Outputs::OpenSearch::HttpClient::Pool::BadResponseCodeError
- Inherits:
-
Error
- Object
- Error
- LogStash::Outputs::OpenSearch::HttpClient::Pool::BadResponseCodeError
- Defined in:
- lib/logstash/outputs/opensearch/http_client/pool.rb
Instance Attribute Summary collapse
-
#request_body ⇒ Object
readonly
Returns the value of attribute request_body.
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(response_code, url, request_body, response_body) ⇒ BadResponseCodeError
constructor
A new instance of BadResponseCodeError.
- #message ⇒ Object
Constructor Details
#initialize(response_code, url, request_body, response_body) ⇒ BadResponseCodeError
Returns a new instance of BadResponseCodeError.
18 19 20 21 22 23 |
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 18 def initialize(response_code, url, request_body, response_body) @response_code = response_code @url = url @request_body = request_body @response_body = response_body end |
Instance Attribute Details
#request_body ⇒ Object (readonly)
Returns the value of attribute request_body.
16 17 18 |
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 16 def request_body @request_body end |
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
16 17 18 |
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 16 def response_body @response_body end |
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
16 17 18 |
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 16 def response_code @response_code end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
16 17 18 |
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 16 def url @url end |
Instance Method Details
#message ⇒ Object
25 26 27 |
# File 'lib/logstash/outputs/opensearch/http_client/pool.rb', line 25 def "Got response code '#{response_code}' contacting OpenSearch at URL '#{@url}'" end |