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.
58 lines
2.2 KiB
Swift
58 lines
2.2 KiB
Swift
//
|
|
// O11yHostListResponse.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yHostListResponse: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var clusterNames: [String]?
|
|
public var endTimeBeforeRetention: Bool?
|
|
public var isSendingK8SAgentMetrics: Bool?
|
|
public var nodeNames: [String]?
|
|
public var records: [O11yHostListRecord]?
|
|
public var sentAnyHostMetricsData: Bool?
|
|
public var total: Int64?
|
|
public var type: String?
|
|
|
|
public init(clusterNames: [String]? = nil, endTimeBeforeRetention: Bool? = nil, isSendingK8SAgentMetrics: Bool? = nil, nodeNames: [String]? = nil, records: [O11yHostListRecord]? = nil, sentAnyHostMetricsData: Bool? = nil, total: Int64? = nil, type: String? = nil) {
|
|
self.clusterNames = clusterNames
|
|
self.endTimeBeforeRetention = endTimeBeforeRetention
|
|
self.isSendingK8SAgentMetrics = isSendingK8SAgentMetrics
|
|
self.nodeNames = nodeNames
|
|
self.records = records
|
|
self.sentAnyHostMetricsData = sentAnyHostMetricsData
|
|
self.total = total
|
|
self.type = type
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case clusterNames
|
|
case endTimeBeforeRetention
|
|
case isSendingK8SAgentMetrics
|
|
case nodeNames
|
|
case records
|
|
case sentAnyHostMetricsData
|
|
case total
|
|
case type
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(clusterNames, forKey: .clusterNames)
|
|
try container.encodeIfPresent(endTimeBeforeRetention, forKey: .endTimeBeforeRetention)
|
|
try container.encodeIfPresent(isSendingK8SAgentMetrics, forKey: .isSendingK8SAgentMetrics)
|
|
try container.encodeIfPresent(nodeNames, forKey: .nodeNames)
|
|
try container.encodeIfPresent(records, forKey: .records)
|
|
try container.encodeIfPresent(sentAnyHostMetricsData, forKey: .sentAnyHostMetricsData)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
}
|
|
}
|
|
|