mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
51 lines
1.8 KiB
Swift
51 lines
1.8 KiB
Swift
//
|
|
// O11yO11yDraftFunnelIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yDraftFunnelIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** EndTime is the end of the window, as a millisecond epoch. */
|
|
public var endTime: Int64?
|
|
/** StartTime is the start of the window, as a millisecond epoch. */
|
|
public var startTime: Int64?
|
|
/** StepEnd is the step the transition runs to, 1-based. */
|
|
public var stepEnd: Int64?
|
|
/** StepStart is the step the transition runs from, 1-based. Ignored by the reads that span the whole funnel. */
|
|
public var stepStart: Int64?
|
|
/** Steps are the funnel's steps, in order. At least two are needed. */
|
|
public var steps: [O11yFunnelStep]?
|
|
|
|
public init(endTime: Int64? = nil, startTime: Int64? = nil, stepEnd: Int64? = nil, stepStart: Int64? = nil, steps: [O11yFunnelStep]? = nil) {
|
|
self.endTime = endTime
|
|
self.startTime = startTime
|
|
self.stepEnd = stepEnd
|
|
self.stepStart = stepStart
|
|
self.steps = steps
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case endTime = "end_time"
|
|
case startTime = "start_time"
|
|
case stepEnd = "step_end"
|
|
case stepStart = "step_start"
|
|
case steps
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(endTime, forKey: .endTime)
|
|
try container.encodeIfPresent(startTime, forKey: .startTime)
|
|
try container.encodeIfPresent(stepEnd, forKey: .stepEnd)
|
|
try container.encodeIfPresent(stepStart, forKey: .stepStart)
|
|
try container.encodeIfPresent(steps, forKey: .steps)
|
|
}
|
|
}
|
|
|