Files
swift-sdk/Sources/Hanzo/Models/O11yGettableWaterfallTrace.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

66 lines
2.7 KiB
Swift

//
// O11yGettableWaterfallTrace.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yGettableWaterfallTrace: Sendable, Codable, ParameterConvertible, Hashable {
public var endTimestampMillis: Int?
public var hasMissingSpans: Bool?
public var hasMore: Bool?
public var rootServiceEntryPoint: String?
public var rootServiceName: String?
public var spans: [O11yWaterfallSpan]?
public var startTimestampMillis: Int?
public var totalErrorSpansCount: Int?
public var totalSpansCount: Int?
public var uncollapsedSpans: [String]?
public init(endTimestampMillis: Int? = nil, hasMissingSpans: Bool? = nil, hasMore: Bool? = nil, rootServiceEntryPoint: String? = nil, rootServiceName: String? = nil, spans: [O11yWaterfallSpan]? = nil, startTimestampMillis: Int? = nil, totalErrorSpansCount: Int? = nil, totalSpansCount: Int? = nil, uncollapsedSpans: [String]? = nil) {
self.endTimestampMillis = endTimestampMillis
self.hasMissingSpans = hasMissingSpans
self.hasMore = hasMore
self.rootServiceEntryPoint = rootServiceEntryPoint
self.rootServiceName = rootServiceName
self.spans = spans
self.startTimestampMillis = startTimestampMillis
self.totalErrorSpansCount = totalErrorSpansCount
self.totalSpansCount = totalSpansCount
self.uncollapsedSpans = uncollapsedSpans
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case endTimestampMillis
case hasMissingSpans
case hasMore
case rootServiceEntryPoint
case rootServiceName
case spans
case startTimestampMillis
case totalErrorSpansCount
case totalSpansCount
case uncollapsedSpans
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(endTimestampMillis, forKey: .endTimestampMillis)
try container.encodeIfPresent(hasMissingSpans, forKey: .hasMissingSpans)
try container.encodeIfPresent(hasMore, forKey: .hasMore)
try container.encodeIfPresent(rootServiceEntryPoint, forKey: .rootServiceEntryPoint)
try container.encodeIfPresent(rootServiceName, forKey: .rootServiceName)
try container.encodeIfPresent(spans, forKey: .spans)
try container.encodeIfPresent(startTimestampMillis, forKey: .startTimestampMillis)
try container.encodeIfPresent(totalErrorSpansCount, forKey: .totalErrorSpansCount)
try container.encodeIfPresent(totalSpansCount, forKey: .totalSpansCount)
try container.encodeIfPresent(uncollapsedSpans, forKey: .uncollapsedSpans)
}
}