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.
41 lines
1.2 KiB
Swift
41 lines
1.2 KiB
Swift
//
|
|
// O11yAvailabilityPoint.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yAvailabilityPoint: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** T is the bucket start, RFC3339 in UTC. */
|
|
public var t: String?
|
|
/** Total is how many services reported at all inside the bucket. It can be lower than the current total: a target added last week reported nothing the week before, and saying so is the point. */
|
|
public var total: Int64?
|
|
/** Up is how many services were up at the end of the bucket. */
|
|
public var up: Int64?
|
|
|
|
public init(t: String? = nil, total: Int64? = nil, up: Int64? = nil) {
|
|
self.t = t
|
|
self.total = total
|
|
self.up = up
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case t
|
|
case total
|
|
case up
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(t, forKey: .t)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
try container.encodeIfPresent(up, forKey: .up)
|
|
}
|
|
}
|
|
|