Commit 6f9e093b by 陈雨佳

options[:type] => options[:query][:type]

parent 3c26e88e
...@@ -28,16 +28,16 @@ module AliyunLogRubySdk ...@@ -28,16 +28,16 @@ module AliyunLogRubySdk
def get_logs(options = {}) def get_logs(options = {})
options[:query] ||= {} options[:query] ||= {}
options[:type] = 'log' options[:query][:type] = 'log'
get("/logstores/#{log_store_name}", options) get("/logstores/#{log_store_name}", options)
end end
def get_histograms(options = {}) def get_histograms(options = {})
options[:query] ||= {} options[:query] ||= {}
options[:type] = 'histogram' options[:query][:type] = 'histogram'
get("/logstores/#{log_store_name}", options) get("/logstores/#{log_store_name}", options)
end end
end end
end end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment