Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

56 lines
1.8 KiB
Swift

//
// Analysis.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Analysis: Sendable, Codable, ParameterConvertible, Hashable {
/** the two-tailed threshold significance was judged at */
public var alpha: Double?
/** the experiment that was analysed */
public var experiment: String?
/** subjects enrolled across every arm */
public var exposedTotal: Int64?
/** the event a conversion is counted from */
public var metric: String?
/** one row per declared arm, control first */
public var results: [Outcome]?
/** ADVISORY: the significant, control-beating arm with the highest rate, else empty */
public var winner: String?
public init(alpha: Double? = nil, experiment: String? = nil, exposedTotal: Int64? = nil, metric: String? = nil, results: [Outcome]? = nil, winner: String? = nil) {
self.alpha = alpha
self.experiment = experiment
self.exposedTotal = exposedTotal
self.metric = metric
self.results = results
self.winner = winner
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case alpha
case experiment
case exposedTotal
case metric
case results
case winner
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(alpha, forKey: .alpha)
try container.encodeIfPresent(experiment, forKey: .experiment)
try container.encodeIfPresent(exposedTotal, forKey: .exposedTotal)
try container.encodeIfPresent(metric, forKey: .metric)
try container.encodeIfPresent(results, forKey: .results)
try container.encodeIfPresent(winner, forKey: .winner)
}
}