mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
41 lines
1.3 KiB
Swift
41 lines
1.3 KiB
Swift
//
|
|
// O11yO11yQueueCheck.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yQueueCheck: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Attribute is the span attribute or telemetry the check looked for. */
|
|
public var attribute: String?
|
|
/** Message says what is missing when the check fails; empty on a pass. Its wire key is error_message. */
|
|
public var errorMessage: String?
|
|
/** Status is \"1\" when the telemetry is present, \"0\" when it is not. */
|
|
public var status: String?
|
|
|
|
public init(attribute: String? = nil, errorMessage: String? = nil, status: String? = nil) {
|
|
self.attribute = attribute
|
|
self.errorMessage = errorMessage
|
|
self.status = status
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case attribute
|
|
case errorMessage = "error_message"
|
|
case status
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(attribute, forKey: .attribute)
|
|
try container.encodeIfPresent(errorMessage, forKey: .errorMessage)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
}
|
|
}
|
|
|