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

58 lines
1.7 KiB
Swift

//
// O11yHostListRecord.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yHostListRecord: Sendable, Codable, ParameterConvertible, Hashable {
public var active: Bool?
public var cpu: Double?
public var hostName: String?
public var load15: Double?
public var memory: Double?
public var meta: [String: String]?
public var os: String?
public var wait: Double?
public init(active: Bool? = nil, cpu: Double? = nil, hostName: String? = nil, load15: Double? = nil, memory: Double? = nil, meta: [String: String]? = nil, os: String? = nil, wait: Double? = nil) {
self.active = active
self.cpu = cpu
self.hostName = hostName
self.load15 = load15
self.memory = memory
self.meta = meta
self.os = os
self.wait = wait
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case active
case cpu
case hostName
case load15
case memory
case meta
case os
case wait
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(active, forKey: .active)
try container.encodeIfPresent(cpu, forKey: .cpu)
try container.encodeIfPresent(hostName, forKey: .hostName)
try container.encodeIfPresent(load15, forKey: .load15)
try container.encodeIfPresent(memory, forKey: .memory)
try container.encodeIfPresent(meta, forKey: .meta)
try container.encodeIfPresent(os, forKey: .os)
try container.encodeIfPresent(wait, forKey: .wait)
}
}