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

41 lines
1.2 KiB
Swift

//
// IngestResp.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct IngestResp: Sendable, Codable, ParameterConvertible, Hashable {
/** Accepted is how many samples this report landed. */
public var accepted: Int64?
/** Links is the link row each distinct (machine, provider, account) in the batch refreshed. */
public var links: [LinkView]?
/** Stored reports whether history was durably written; false means the warehouse was unavailable and only the link rows were refreshed. */
public var stored: Bool?
public init(accepted: Int64? = nil, links: [LinkView]? = nil, stored: Bool? = nil) {
self.accepted = accepted
self.links = links
self.stored = stored
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case accepted
case links
case stored
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(accepted, forKey: .accepted)
try container.encodeIfPresent(links, forKey: .links)
try container.encodeIfPresent(stored, forKey: .stored)
}
}