- LogStash::Search::Result#to_json

This commit is contained in:
Jordan Sissel 2011-02-13 00:28:25 -08:00
parent d0a5dfb5a0
commit d669639c99

View file

@ -26,5 +26,14 @@ class LogStash::Search::Result
def error?
return !@error_message.nil?
end
def to_json
return {
"events" => @events,
"duration" => @duration,
"offset" => @offset,
"total" => @total,
}.to_json
end # def to_json
end # class LogStash::Search::Result