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

66 lines
2.2 KiB
Swift

//
// O11yFlamegraphSpan.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yFlamegraphSpan: Sendable, Codable, ParameterConvertible, Hashable {
public var attributes: [String: JSONValue]?
public var durationNano: Int?
public var event: [O11yEvent]?
public var hasError: Bool?
public var level: Int64?
public var name: String?
public var parentSpanId: String?
public var resource: [String: String]?
public var spanId: String?
public var timestamp: Int?
public init(attributes: [String: JSONValue]? = nil, durationNano: Int? = nil, event: [O11yEvent]? = nil, hasError: Bool? = nil, level: Int64? = nil, name: String? = nil, parentSpanId: String? = nil, resource: [String: String]? = nil, spanId: String? = nil, timestamp: Int? = nil) {
self.attributes = attributes
self.durationNano = durationNano
self.event = event
self.hasError = hasError
self.level = level
self.name = name
self.parentSpanId = parentSpanId
self.resource = resource
self.spanId = spanId
self.timestamp = timestamp
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case attributes
case durationNano
case event
case hasError
case level
case name
case parentSpanId
case resource
case spanId
case timestamp
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(attributes, forKey: .attributes)
try container.encodeIfPresent(durationNano, forKey: .durationNano)
try container.encodeIfPresent(event, forKey: .event)
try container.encodeIfPresent(hasError, forKey: .hasError)
try container.encodeIfPresent(level, forKey: .level)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(parentSpanId, forKey: .parentSpanId)
try container.encodeIfPresent(resource, forKey: .resource)
try container.encodeIfPresent(spanId, forKey: .spanId)
try container.encodeIfPresent(timestamp, forKey: .timestamp)
}
}