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.
56 lines
1.9 KiB
Swift
56 lines
1.9 KiB
Swift
//
|
|
// O11yO11ySpanPercentileIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11ySpanPercentileIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** End is the window end, as epoch nanoseconds. */
|
|
public var end: Int?
|
|
/** Name is the span name whose peers are compared. Required. */
|
|
public var name: String
|
|
/** ResourceAttributes narrow the peer group to spans carrying them all. */
|
|
public var resourceAttributes: [String: String]?
|
|
/** ServiceName is the service the span belongs to. Required. */
|
|
public var serviceName: String
|
|
/** SpanDuration is the span's duration in nanoseconds. */
|
|
public var spanDuration: Int64?
|
|
/** Start is the window start, as epoch nanoseconds. */
|
|
public var start: Int?
|
|
|
|
public init(end: Int? = nil, name: String, resourceAttributes: [String: String]? = nil, serviceName: String, spanDuration: Int64? = nil, start: Int? = nil) {
|
|
self.end = end
|
|
self.name = name
|
|
self.resourceAttributes = resourceAttributes
|
|
self.serviceName = serviceName
|
|
self.spanDuration = spanDuration
|
|
self.start = start
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case end
|
|
case name
|
|
case resourceAttributes
|
|
case serviceName
|
|
case spanDuration
|
|
case start
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(end, forKey: .end)
|
|
try container.encode(name, forKey: .name)
|
|
try container.encodeIfPresent(resourceAttributes, forKey: .resourceAttributes)
|
|
try container.encode(serviceName, forKey: .serviceName)
|
|
try container.encodeIfPresent(spanDuration, forKey: .spanDuration)
|
|
try container.encodeIfPresent(start, forKey: .start)
|
|
}
|
|
}
|
|
|