Sha256: 2f2fe1b7bed54e61717b3238011218b19b93a536359613be9482e619d3e8d3e0
Contents?: true
Size: 836 Bytes
Versions: 54
Compression:
Stored size: 836 Bytes
Contents
class Ey::Core::Client class Real def get_logs(params={}) query = Ey::Core.paging_parameters(params) url = params.delete("url") request( :params => params, :query => query, :path => "/logs", :url => url ) end end class Mock def get_logs(params={}) extract_url_params!(params) if cluster = params.delete("cluster") params["_cluster"] = cluster end if cluster_update = params.delete("cluster_update") params["_cluster_update"] = cluster_update end headers, logs_page = search_and_page(params, :logs, search_keys: %w[component_action _cluster _cluster_update]) response( :body => {"logs" => logs_page}, :status => 200, :headers => headers ) end end end
Version data entries
54 entries across 54 versions & 3 rubygems