Files
swift-sdk/Sources/Hanzo/Models/O11yO11yTraceSpanWindow.swift
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

51 lines
1.8 KiB
Swift

//
// O11yO11yTraceSpanWindow.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yTraceSpanWindow: Sendable, Codable, ParameterConvertible, Hashable {
/** Columns names the fields each row carries, in row order. */
public var columns: [String]?
/** EndTimestampMillis is when it closes. */
public var endTimestampMillis: Int?
/** Events are the rows, each positionally matching Columns. */
public var events: [[JSONValue]]?
/** IsSubTree says the window is a subtree of the trace rather than the whole of it. */
public var isSubTree: Bool?
/** StartTimestampMillis is when the window opens. */
public var startTimestampMillis: Int?
public init(columns: [String]? = nil, endTimestampMillis: Int? = nil, events: [[JSONValue]]? = nil, isSubTree: Bool? = nil, startTimestampMillis: Int? = nil) {
self.columns = columns
self.endTimestampMillis = endTimestampMillis
self.events = events
self.isSubTree = isSubTree
self.startTimestampMillis = startTimestampMillis
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case columns
case endTimestampMillis
case events
case isSubTree
case startTimestampMillis
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(columns, forKey: .columns)
try container.encodeIfPresent(endTimestampMillis, forKey: .endTimestampMillis)
try container.encodeIfPresent(events, forKey: .events)
try container.encodeIfPresent(isSubTree, forKey: .isSubTree)
try container.encodeIfPresent(startTimestampMillis, forKey: .startTimestampMillis)
}
}