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

Version Path
ey-core-3.6.0.autoscaling1 lib/ey-core/requests/get_logs.rb
ey-core-3.6.4 lib/ey-core/requests/get_logs.rb
ey-core-3.6.3 lib/ey-core/requests/get_logs.rb
ey-core-3.6.1 lib/ey-core/requests/get_logs.rb
groove-ey-core-3.6.3 lib/ey-core/requests/get_logs.rb
groove-ey-core-3.6.2 lib/ey-core/requests/get_logs.rb
groove-ey-core-3.6.1 lib/ey-core/requests/get_logs.rb
ey-core-3.5.0 lib/ey-core/requests/get_logs.rb
ey-core-3.4.4 lib/ey-core/requests/get_logs.rb
ey-core-3.4.2 lib/ey-core/requests/get_logs.rb
ey-core-3.4.1 lib/ey-core/requests/get_logs.rb
ey-core-3.4.0 lib/ey-core/requests/get_logs.rb
ey-core-3.3.1 lib/ey-core/requests/get_logs.rb
ey-core-3.3.0 lib/ey-core/requests/get_logs.rb
ey-core-3.2.6 lib/ey-core/requests/get_logs.rb
ey-core-3.2.5 lib/ey-core/requests/get_logs.rb
ey-core-3.2.4 lib/ey-core/requests/get_logs.rb
ey-core-3.2.3 lib/ey-core/requests/get_logs.rb
ey-core-3.2.2 lib/ey-core/requests/get_logs.rb
ey-core-3.2.1 lib/ey-core/requests/get_logs.rb