openlayer 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/openlayer/models/commits/test_result_list_response.rb +286 -1
- data/lib/openlayer/models/inference_pipelines/test_result_list_response.rb +286 -1
- data/lib/openlayer/models/test_list_results_params.rb +78 -0
- data/lib/openlayer/models/test_list_results_response.rb +1676 -0
- data/lib/openlayer/models.rb +2 -0
- data/lib/openlayer/resources/tests.rb +45 -0
- data/lib/openlayer/version.rb +1 -1
- data/lib/openlayer.rb +2 -0
- data/rbi/openlayer/models/commits/test_result_list_response.rbi +589 -3
- data/rbi/openlayer/models/inference_pipelines/test_result_list_response.rbi +589 -3
- data/rbi/openlayer/models/test_list_results_params.rbi +117 -0
- data/rbi/openlayer/models/test_list_results_response.rbi +3650 -0
- data/rbi/openlayer/models.rbi +2 -0
- data/rbi/openlayer/resources/tests.rbi +38 -0
- data/sig/openlayer/models/commits/test_result_list_response.rbs +253 -3
- data/sig/openlayer/models/inference_pipelines/test_result_list_response.rbs +253 -3
- data/sig/openlayer/models/test_list_results_params.rbs +73 -0
- data/sig/openlayer/models/test_list_results_response.rbs +1539 -0
- data/sig/openlayer/models.rbs +2 -0
- data/sig/openlayer/resources/tests.rbs +13 -0
- metadata +8 -2
data/lib/openlayer/models.rb
CHANGED
|
@@ -61,6 +61,8 @@ module Openlayer
|
|
|
61
61
|
|
|
62
62
|
TestEvaluateParams = Openlayer::Models::TestEvaluateParams
|
|
63
63
|
|
|
64
|
+
TestListResultsParams = Openlayer::Models::TestListResultsParams
|
|
65
|
+
|
|
64
66
|
WorkspaceRetrieveParams = Openlayer::Models::WorkspaceRetrieveParams
|
|
65
67
|
|
|
66
68
|
Workspaces = Openlayer::Models::Workspaces
|
|
@@ -39,6 +39,51 @@ module Openlayer
|
|
|
39
39
|
)
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
# List the test results for a test.
|
|
43
|
+
#
|
|
44
|
+
# @overload list_results(test_id, end_timestamp: nil, include_insights: nil, inference_pipeline_id: nil, page: nil, per_page: nil, project_version_id: nil, start_timestamp: nil, status: nil, request_options: {})
|
|
45
|
+
#
|
|
46
|
+
# @param test_id [String] The test id.
|
|
47
|
+
#
|
|
48
|
+
# @param end_timestamp [Float] Filter for results that use data starting before the end timestamp.
|
|
49
|
+
#
|
|
50
|
+
# @param include_insights [Boolean] Include the insights linked to each test result
|
|
51
|
+
#
|
|
52
|
+
# @param inference_pipeline_id [String, nil] Retrive test results for a specific inference pipeline.
|
|
53
|
+
#
|
|
54
|
+
# @param page [Integer] The page to return in a paginated query.
|
|
55
|
+
#
|
|
56
|
+
# @param per_page [Integer] Maximum number of items to return per page.
|
|
57
|
+
#
|
|
58
|
+
# @param project_version_id [String, nil] Retrive test results for a specific project version.
|
|
59
|
+
#
|
|
60
|
+
# @param start_timestamp [Float] Filter for results that use data ending after the start timestamp.
|
|
61
|
+
#
|
|
62
|
+
# @param status [Array<String>] Filter by status(es).
|
|
63
|
+
#
|
|
64
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
65
|
+
#
|
|
66
|
+
# @return [Openlayer::Models::TestListResultsResponse]
|
|
67
|
+
#
|
|
68
|
+
# @see Openlayer::Models::TestListResultsParams
|
|
69
|
+
def list_results(test_id, params = {})
|
|
70
|
+
parsed, options = Openlayer::TestListResultsParams.dump_request(params)
|
|
71
|
+
@client.request(
|
|
72
|
+
method: :get,
|
|
73
|
+
path: ["tests/%1$s/results", test_id],
|
|
74
|
+
query: parsed.transform_keys(
|
|
75
|
+
end_timestamp: "endTimestamp",
|
|
76
|
+
include_insights: "includeInsights",
|
|
77
|
+
inference_pipeline_id: "inferencePipelineId",
|
|
78
|
+
per_page: "perPage",
|
|
79
|
+
project_version_id: "projectVersionId",
|
|
80
|
+
start_timestamp: "startTimestamp"
|
|
81
|
+
),
|
|
82
|
+
model: Openlayer::Models::TestListResultsResponse,
|
|
83
|
+
options: options
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
|
|
42
87
|
# @api private
|
|
43
88
|
#
|
|
44
89
|
# @param client [Openlayer::Client]
|
data/lib/openlayer/version.rb
CHANGED
data/lib/openlayer.rb
CHANGED
|
@@ -89,6 +89,8 @@ require_relative "openlayer/models/storage/presigned_url_create_params"
|
|
|
89
89
|
require_relative "openlayer/models/storage/presigned_url_create_response"
|
|
90
90
|
require_relative "openlayer/models/test_evaluate_params"
|
|
91
91
|
require_relative "openlayer/models/test_evaluate_response"
|
|
92
|
+
require_relative "openlayer/models/test_list_results_params"
|
|
93
|
+
require_relative "openlayer/models/test_list_results_response"
|
|
92
94
|
require_relative "openlayer/models/workspace_retrieve_params"
|
|
93
95
|
require_relative "openlayer/models/workspace_retrieve_response"
|
|
94
96
|
require_relative "openlayer/models/workspaces/api_key_create_params"
|