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

42 lines
1.3 KiB
Swift

//
// O11yGettableFlamegraphTrace.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yGettableFlamegraphTrace: Sendable, Codable, ParameterConvertible, Hashable {
public var endTimestampMillis: Int64?
public var hasMore: Bool?
public var spans: [[O11yFlamegraphSpan]]?
public var startTimestampMillis: Int64?
public init(endTimestampMillis: Int64? = nil, hasMore: Bool? = nil, spans: [[O11yFlamegraphSpan]]? = nil, startTimestampMillis: Int64? = nil) {
self.endTimestampMillis = endTimestampMillis
self.hasMore = hasMore
self.spans = spans
self.startTimestampMillis = startTimestampMillis
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case endTimestampMillis
case hasMore
case spans
case startTimestampMillis
}
// 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(hasMore, forKey: .hasMore)
try container.encodeIfPresent(spans, forKey: .spans)
try container.encodeIfPresent(startTimestampMillis, forKey: .startTimestampMillis)
}
}