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.
@@ -0,0 +1,117 @@
1
+ # typed: strong
2
+
3
+ module Openlayer
4
+ module Models
5
+ class TestListResultsParams < Openlayer::Internal::Type::BaseModel
6
+ extend Openlayer::Internal::Type::RequestParameters::Converter
7
+ include Openlayer::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Openlayer::TestListResultsParams, Openlayer::Internal::AnyHash)
12
+ end
13
+
14
+ # Filter for results that use data starting before the end timestamp.
15
+ sig { returns(T.nilable(Float)) }
16
+ attr_reader :end_timestamp
17
+
18
+ sig { params(end_timestamp: Float).void }
19
+ attr_writer :end_timestamp
20
+
21
+ # Include the insights linked to each test result
22
+ sig { returns(T.nilable(T::Boolean)) }
23
+ attr_reader :include_insights
24
+
25
+ sig { params(include_insights: T::Boolean).void }
26
+ attr_writer :include_insights
27
+
28
+ # Retrive test results for a specific inference pipeline.
29
+ sig { returns(T.nilable(String)) }
30
+ attr_accessor :inference_pipeline_id
31
+
32
+ # The page to return in a paginated query.
33
+ sig { returns(T.nilable(Integer)) }
34
+ attr_reader :page
35
+
36
+ sig { params(page: Integer).void }
37
+ attr_writer :page
38
+
39
+ # Maximum number of items to return per page.
40
+ sig { returns(T.nilable(Integer)) }
41
+ attr_reader :per_page
42
+
43
+ sig { params(per_page: Integer).void }
44
+ attr_writer :per_page
45
+
46
+ # Retrive test results for a specific project version.
47
+ sig { returns(T.nilable(String)) }
48
+ attr_accessor :project_version_id
49
+
50
+ # Filter for results that use data ending after the start timestamp.
51
+ sig { returns(T.nilable(Float)) }
52
+ attr_reader :start_timestamp
53
+
54
+ sig { params(start_timestamp: Float).void }
55
+ attr_writer :start_timestamp
56
+
57
+ # Filter by status(es).
58
+ sig { returns(T.nilable(T::Array[String])) }
59
+ attr_reader :status
60
+
61
+ sig { params(status: T::Array[String]).void }
62
+ attr_writer :status
63
+
64
+ sig do
65
+ params(
66
+ end_timestamp: Float,
67
+ include_insights: T::Boolean,
68
+ inference_pipeline_id: T.nilable(String),
69
+ page: Integer,
70
+ per_page: Integer,
71
+ project_version_id: T.nilable(String),
72
+ start_timestamp: Float,
73
+ status: T::Array[String],
74
+ request_options: Openlayer::RequestOptions::OrHash
75
+ ).returns(T.attached_class)
76
+ end
77
+ def self.new(
78
+ # Filter for results that use data starting before the end timestamp.
79
+ end_timestamp: nil,
80
+ # Include the insights linked to each test result
81
+ include_insights: nil,
82
+ # Retrive test results for a specific inference pipeline.
83
+ inference_pipeline_id: nil,
84
+ # The page to return in a paginated query.
85
+ page: nil,
86
+ # Maximum number of items to return per page.
87
+ per_page: nil,
88
+ # Retrive test results for a specific project version.
89
+ project_version_id: nil,
90
+ # Filter for results that use data ending after the start timestamp.
91
+ start_timestamp: nil,
92
+ # Filter by status(es).
93
+ status: nil,
94
+ request_options: {}
95
+ )
96
+ end
97
+
98
+ sig do
99
+ override.returns(
100
+ {
101
+ end_timestamp: Float,
102
+ include_insights: T::Boolean,
103
+ inference_pipeline_id: T.nilable(String),
104
+ page: Integer,
105
+ per_page: Integer,
106
+ project_version_id: T.nilable(String),
107
+ start_timestamp: Float,
108
+ status: T::Array[String],
109
+ request_options: Openlayer::RequestOptions
110
+ }
111
+ )
112
+ end
113
+ def to_hash
114
+ end
115
+ end
116
+ end
117
+ end