Enumerations
86 |The following enumerations are available globally.
87 | 88 |The following enumerations are available globally.
87 | 88 |The following enumerations are available globally.
87 | 88 |public struct CreateEventResponse : Decodable
89 |
90 | Represents the response of a creating event request.
93 | 94 |
101 |
102 |
103 | eventID
104 |
105 | The event ID of the created event.
112 | 113 |Swift
118 |public let eventID: String
119 |
120 | public struct EventResponse: Decodable
92 |
93 | Response structure for an event-creation request.
96 | 97 |
104 |
105 |
106 | eventID
107 |
108 | Undocumented
115 | 116 |Swift
121 |public let eventID: String
122 |
123 | public struct CreateEventResponse : Decodable
89 |
90 | Represents the response of a creating event request.
93 | 94 |
101 |
102 |
103 | eventID
104 |
105 | The event ID of the created event.
112 | 113 |Swift
118 |public let eventID: String
119 |
120 | public struct EventResponse: Decodable
92 |
93 | Response structure for an event-creation request.
96 | 97 |
104 |
105 |
106 | eventID
107 |
108 | Undocumented
115 | 116 |Swift
121 |public let eventID: String
122 |
123 | public enum SerializationFailureReason
89 |
90 | The underlying reason the serialization fails.
93 | 94 |
101 |
102 |
103 | failed(error:)
104 |
105 | Failure due to some error.
112 | 113 |Swift
118 |case failed(error: Error)
119 |
120 | public enum SerializationFailureReason
89 |
90 | The underlying reason the serialization fails.
93 | 94 |
101 |
102 |
103 | failed(error:)
104 |
105 | Failure due to some error.
112 | 113 |Swift
118 |case failed(error: Error)
119 |
120 | public struct CreateBatchEventsResponse : Decodable
89 |
90 | Represents the response of a creating batch events request.
93 | 94 |
101 |
102 |
103 | statuses
104 |
105 | The statuses each of which presents whether an event was successfully 112 | created by the server.
113 | 114 |If an event was successfuly created by the server, its status is a
115 | Result.success which value contains its individual CreateEventResponse.
116 | Otherwise, the event’s status is a Result.failure. The statuses are
117 | returned in the same order of their corresponding events sent in the
118 | request.
Swift
125 |public let statuses: [Result<CreateEventResponse, PIOError>]
126 |
127 | public struct CreateBatchEventsResponse : Decodable
89 |
90 | Represents the response of a creating batch events request.
93 | 94 |
101 |
102 |
103 | statuses
104 |
105 | The statuses each of which presents whether an event was successfully 112 | created by the server.
113 | 114 |If an event was successfuly created by the server, its status is a
115 | Result.success which value contains its individual CreateEventResponse.
116 | Otherwise, the event’s status is a Result.failure. The statuses are
117 | returned in the same order of their corresponding events sent in the
118 | request.
Swift
125 |public let statuses: [Result<CreateEventResponse, PIOError>]
126 |
127 | The following classes are available globally.
87 | 88 |
95 |
96 |
97 | BaseClient
98 |
99 | Manages network connections with the server.
106 | 107 |Swift
112 |public class BaseClient
113 |
114 |
126 |
127 |
128 | EngineClient
129 |
130 | Responsible for retrieving prediction results from a PredictionIO Engine Server.
137 | 138 | See more 139 |Swift
144 |public class EngineClient : BaseClient
145 |
146 |
158 |
159 |
160 | EventClient
161 |
162 | Responsible for sending data to a PredictionIO Event Server.
169 | 170 | See more 171 |Swift
176 |public class EventClient : BaseClient
177 |
178 | The following classes are available globally.
87 | 88 |
95 |
96 |
97 | BaseClient
98 |
99 | Manages network connections with the server.
106 | 107 |Swift
112 |public class BaseClient
113 |
114 |
126 |
127 |
128 | EngineClient
129 |
130 | Responsible for retrieving prediction results from a PredictionIO Engine Server.
137 | 138 | See more 139 |Swift
144 |public class EngineClient : BaseClient
145 |
146 |
158 |
159 |
160 | EventClient
161 |
162 | Responsible for sending data to a PredictionIO Event Server.
169 | 170 | See more 171 |Swift
176 |public class EventClient : BaseClient
177 |
178 | The following structures are available globally.
87 | 88 |
95 |
96 |
97 | Event
98 |
99 | The Event struct represents an event dictionary in the REST API
106 | to a PredictionIO’s event server.
Swift
114 |public struct Event
115 |
116 |
135 |
136 |
137 | CreateEventResponse
138 |
139 | Represents the response of a creating event request.
146 | 147 | See more 148 |Swift
153 |public struct CreateEventResponse : Decodable
154 |
155 |
163 |
164 |
165 | CreateBatchEventsResponse
166 |
167 | Represents the response of a creating batch events request.
174 | 175 | See more 176 |Swift
181 |public struct CreateBatchEventsResponse : Decodable
182 |
183 |