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.1 KiB
Swift
41 lines
1.1 KiB
Swift
//
|
|
// StatusBreakdown.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct StatusBreakdown: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** invocations that ran and failed */
|
|
public var error: Int64?
|
|
/** invocations whose code ran and wrote nothing to stderr */
|
|
public var success: Int64?
|
|
/** invocations that hit their configured deadline */
|
|
public var timeout: Int64?
|
|
|
|
public init(error: Int64? = nil, success: Int64? = nil, timeout: Int64? = nil) {
|
|
self.error = error
|
|
self.success = success
|
|
self.timeout = timeout
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case error
|
|
case success
|
|
case timeout
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(error, forKey: .error)
|
|
try container.encodeIfPresent(success, forKey: .success)
|
|
try container.encodeIfPresent(timeout, forKey: .timeout)
|
|
}
|
|
}
|
|
|