So I have something I do not understand:
I do a event.get request with the following parameters:
g.raw('event.get',{"time_from"=>Time.now.to_i-600,"output"=>"extend","sortfield"=>"clock","selec t_hosts"=>"refer","select_items"=>"refer","select_ groups"=>"refer","sortorder"=>"desc","limit"=>1})
And here is the output:
[{"hosts"=>[], "items"=>[], "eventid"=>"218945820", "source"=>"2", "object"=>"3", "objectid"=>"603", "clock"=>"1339963815", "value"=>"1", "acknowledged"=>"0"}]
does not return any host? return a source of "2" which isn't in the documentation?
What is that?
Also, I do not understand what the object are? what is 0, or 1, or 2, 3?
I do a event.get request with the following parameters:
g.raw('event.get',{"time_from"=>Time.now.to_i-600,"output"=>"extend","sortfield"=>"clock","selec t_hosts"=>"refer","select_items"=>"refer","select_ groups"=>"refer","sortorder"=>"desc","limit"=>1})
And here is the output:
[{"hosts"=>[], "items"=>[], "eventid"=>"218945820", "source"=>"2", "object"=>"3", "objectid"=>"603", "clock"=>"1339963815", "value"=>"1", "acknowledged"=>"0"}]
does not return any host? return a source of "2" which isn't in the documentation?
What is that?
Also, I do not understand what the object are? what is 0, or 1, or 2, 3?