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
//
|
|
// 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)
|
|
}
|
|
}
|
|
|