Class: Openlayer::Resources::InferencePipelines::TestResults
- Inherits:
-
Object
- Object
- Openlayer::Resources::InferencePipelines::TestResults
- Defined in:
- lib/openlayer/resources/inference_pipelines/test_results.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ TestResults
constructor
private
A new instance of TestResults.
-
#list(inference_pipeline_id, page: nil, per_page: nil, status: nil, type: nil, request_options: {}) ⇒ Openlayer::Models::InferencePipelines::TestResultListResponse
Some parameter documentations has been truncated, see Models::InferencePipelines::TestResultListParams for more details.
Constructor Details
#initialize(client:) ⇒ TestResults
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of TestResults.
43 44 45 |
# File 'lib/openlayer/resources/inference_pipelines/test_results.rb', line 43 def initialize(client:) @client = client end |
Instance Method Details
#list(inference_pipeline_id, page: nil, per_page: nil, status: nil, type: nil, request_options: {}) ⇒ Openlayer::Models::InferencePipelines::TestResultListResponse
Some parameter documentations has been truncated, see Models::InferencePipelines::TestResultListParams for more details.
List the latest test results for an inference pipeline.
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/openlayer/resources/inference_pipelines/test_results.rb', line 29 def list(inference_pipeline_id, params = {}) parsed, = Openlayer::InferencePipelines::TestResultListParams.dump_request(params) @client.request( method: :get, path: ["inference-pipelines/%1$s/results", inference_pipeline_id], query: parsed.transform_keys(per_page: "perPage"), model: Openlayer::Models::InferencePipelines::TestResultListResponse, options: ) end |