Class: LogStash::Search::FacetResult
- Inherits:
-
Object
- Object
- LogStash::Search::FacetResult
- Defined in:
- lib/logstash/search/facetresult.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#duration ⇒ Object
How long this query took, in seconds (or fractions of).
-
#error_message ⇒ Object
Error message, if any.
-
#results ⇒ Object
Array of LogStash::Search::FacetResult::Entry.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(settings = {}) ⇒ FacetResult
constructor
A new instance of FacetResult.
Constructor Details
#initialize(settings = {}) ⇒ FacetResult
Returns a new instance of FacetResult.
15 16 17 18 19 |
# File 'lib/logstash/search/facetresult.rb', line 15 def initialize(settings={}) @results = [] @duration = nil @error_message = nil end |
Instance Attribute Details
#duration ⇒ Object
How long this query took, in seconds (or fractions of).
10 11 12 |
# File 'lib/logstash/search/facetresult.rb', line 10 def duration @duration end |
#error_message ⇒ Object
Error message, if any.
13 14 15 |
# File 'lib/logstash/search/facetresult.rb', line 13 def @error_message end |
#results ⇒ Object
Array of LogStash::Search::FacetResult::Entry
7 8 9 |
# File 'lib/logstash/search/facetresult.rb', line 7 def results @results end |
Instance Method Details
#error? ⇒ Boolean
21 22 23 |
# File 'lib/logstash/search/facetresult.rb', line 21 def error? return !@error_message.nil? end |