Files
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

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