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.
56 lines
2.9 KiB
Swift
56 lines
2.9 KiB
Swift
//
|
|
// O11yStatusSummary.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yStatusSummary: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CheckedAt is when the underlying availability read was taken, RFC3339 UTC. Not part of the status-page schema the panel parses (which ignores unknown fields); it is here because a status document with no timestamp cannot be told apart from a stale one. */
|
|
public var checkedAt: String?
|
|
/** InProgressMaintenances is always empty: this platform has no maintenance scheduling plane, so \"nothing is running\" is a true statement rather than a placeholder. */
|
|
public var inProgressMaintenances: [O11yStatusMaintenance]?
|
|
/** OngoingIncidents is one entry per service that failed its health probe, sorted by name. Empty means every probed service answered — which is a measurement, not an absence of reports. */
|
|
public var ongoingIncidents: [O11yStatusIncident]?
|
|
/** PageTitle is the brand's own status-page title, resolved per request from the Host — a lux caller must never be shown Hanzo's. */
|
|
public var pageTitle: String?
|
|
/** PageURL is the HUMAN status page — an HTML page for people, distinct from this JSON endpoint. Every link in this document points there. */
|
|
public var pageUrl: String?
|
|
/** ScheduledMaintenances is always empty, for the same reason. */
|
|
public var scheduledMaintenances: [O11yStatusMaintenance]?
|
|
|
|
public init(checkedAt: String? = nil, inProgressMaintenances: [O11yStatusMaintenance]? = nil, ongoingIncidents: [O11yStatusIncident]? = nil, pageTitle: String? = nil, pageUrl: String? = nil, scheduledMaintenances: [O11yStatusMaintenance]? = nil) {
|
|
self.checkedAt = checkedAt
|
|
self.inProgressMaintenances = inProgressMaintenances
|
|
self.ongoingIncidents = ongoingIncidents
|
|
self.pageTitle = pageTitle
|
|
self.pageUrl = pageUrl
|
|
self.scheduledMaintenances = scheduledMaintenances
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case checkedAt = "checked_at"
|
|
case inProgressMaintenances = "in_progress_maintenances"
|
|
case ongoingIncidents = "ongoing_incidents"
|
|
case pageTitle = "page_title"
|
|
case pageUrl = "page_url"
|
|
case scheduledMaintenances = "scheduled_maintenances"
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(checkedAt, forKey: .checkedAt)
|
|
try container.encodeIfPresent(inProgressMaintenances, forKey: .inProgressMaintenances)
|
|
try container.encodeIfPresent(ongoingIncidents, forKey: .ongoingIncidents)
|
|
try container.encodeIfPresent(pageTitle, forKey: .pageTitle)
|
|
try container.encodeIfPresent(pageUrl, forKey: .pageUrl)
|
|
try container.encodeIfPresent(scheduledMaintenances, forKey: .scheduledMaintenances)
|
|
}
|
|
}
|
|
|