Files
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

76 lines
2.9 KiB
Swift

//
// O11yO11yService.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yService: Sendable, Codable, ParameterConvertible, Hashable {
/** AvgDuration is their average latency, nanoseconds. */
public var avgDuration: Double?
/** CallRate is calls per second over the window. */
public var callRate: Double?
/** DataWarning carries the entry-point operations the numbers were computed over. */
public var dataWarning: O11yO11yServiceWarning?
/** ErrorRate is the percentage of calls that errored. */
public var errorRate: Double?
/** FourXXRate is the percentage of calls that answered 4xx. */
public var fourXXRate: Double?
/** Num4XX is how many of the calls answered 4xx. */
public var num4XX: Int?
/** NumCalls is how many entry-point spans landed in the window. */
public var numCalls: Int?
/** NumErrors is how many of the calls errored. */
public var numErrors: Int?
/** Percentile99 is the p99 latency of its entry-point spans, nanoseconds. */
public var p99: Double?
/** ServiceName is the service. */
public var serviceName: String?
public init(avgDuration: Double? = nil, callRate: Double? = nil, dataWarning: O11yO11yServiceWarning? = nil, errorRate: Double? = nil, fourXXRate: Double? = nil, num4XX: Int? = nil, numCalls: Int? = nil, numErrors: Int? = nil, p99: Double? = nil, serviceName: String? = nil) {
self.avgDuration = avgDuration
self.callRate = callRate
self.dataWarning = dataWarning
self.errorRate = errorRate
self.fourXXRate = fourXXRate
self.num4XX = num4XX
self.numCalls = numCalls
self.numErrors = numErrors
self.p99 = p99
self.serviceName = serviceName
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case avgDuration
case callRate
case dataWarning
case errorRate
case fourXXRate
case num4XX
case numCalls
case numErrors
case p99
case serviceName
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(avgDuration, forKey: .avgDuration)
try container.encodeIfPresent(callRate, forKey: .callRate)
try container.encodeIfPresent(dataWarning, forKey: .dataWarning)
try container.encodeIfPresent(errorRate, forKey: .errorRate)
try container.encodeIfPresent(fourXXRate, forKey: .fourXXRate)
try container.encodeIfPresent(num4XX, forKey: .num4XX)
try container.encodeIfPresent(numCalls, forKey: .numCalls)
try container.encodeIfPresent(numErrors, forKey: .numErrors)
try container.encodeIfPresent(p99, forKey: .p99)
try container.encodeIfPresent(serviceName, forKey: .serviceName)
}
}