mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
- add doc comments
This commit is contained in:
parent
19ce814677
commit
6d98b64514
1 changed files with 4 additions and 3 deletions
|
@ -231,9 +231,10 @@ class LogStash::Web::Server < Sinatra::Base
|
|||
"missing" => missing }.to_json)
|
||||
next
|
||||
end # if !missing.empty?
|
||||
format = (params[:format] or "json")
|
||||
field = (params[:field] or "@timestamp")
|
||||
interval = (params[:interval] or 3600 * 1000)
|
||||
|
||||
format = (params[:format] or "json") # default json
|
||||
field = (params[:field] or "@timestamp") # default @timestamp
|
||||
interval = (params[:interval] or 3600000).to_i # default 1 hour
|
||||
@backend.histogram(params[:q], field, interval) do |results|
|
||||
@results = results
|
||||
if @results.error?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue