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

106 lines
4.2 KiB
Swift

//
// FunctionView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct FunctionView: Sendable, Codable, ParameterConvertible, Hashable {
/** mean wall-clock of those runs */
public var avgDurationMs: Double?
/** when it was first published */
public var createdAt: String?
/** the path that invokes it */
public var endpoint: String?
/** how many secret NAMES it mounts; values are never carried */
public var envCount: Int64?
/** the language it runs under */
public var environment: String?
/** how many of those runs failed */
public var errors7d: Int64?
/** the prebuilt image it runs, when it runs one instead of source */
public var image: String?
/** runs in the last 7 days; ABSENT, never 0, when it has not run */
public var invocations7d: Int64?
/** when its code last changed */
public var lastDeployedAt: String?
/** the memory it runs with, and the multiplier on its compute charge */
public var memoryLimit: String?
/** the function's org-unique handle */
public var name: String?
/** the display group it belongs to; the org is the isolation key */
public var namespace: String?
/** whether it is ready to serve */
public var status: String?
/** share of those runs that succeeded, 0..1 */
public var successRate: Double?
/** where it runs: empty for the sandbox, \"fleet\" for the org's GPU fleet */
public var target: String?
/** its per-invocation deadline */
public var timeoutSec: Int64?
public init(avgDurationMs: Double? = nil, createdAt: String? = nil, endpoint: String? = nil, envCount: Int64? = nil, environment: String? = nil, errors7d: Int64? = nil, image: String? = nil, invocations7d: Int64? = nil, lastDeployedAt: String? = nil, memoryLimit: String? = nil, name: String? = nil, namespace: String? = nil, status: String? = nil, successRate: Double? = nil, target: String? = nil, timeoutSec: Int64? = nil) {
self.avgDurationMs = avgDurationMs
self.createdAt = createdAt
self.endpoint = endpoint
self.envCount = envCount
self.environment = environment
self.errors7d = errors7d
self.image = image
self.invocations7d = invocations7d
self.lastDeployedAt = lastDeployedAt
self.memoryLimit = memoryLimit
self.name = name
self.namespace = namespace
self.status = status
self.successRate = successRate
self.target = target
self.timeoutSec = timeoutSec
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case avgDurationMs
case createdAt
case endpoint
case envCount
case environment
case errors7d
case image
case invocations7d
case lastDeployedAt
case memoryLimit
case name
case namespace
case status
case successRate
case target
case timeoutSec
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(avgDurationMs, forKey: .avgDurationMs)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(endpoint, forKey: .endpoint)
try container.encodeIfPresent(envCount, forKey: .envCount)
try container.encodeIfPresent(environment, forKey: .environment)
try container.encodeIfPresent(errors7d, forKey: .errors7d)
try container.encodeIfPresent(image, forKey: .image)
try container.encodeIfPresent(invocations7d, forKey: .invocations7d)
try container.encodeIfPresent(lastDeployedAt, forKey: .lastDeployedAt)
try container.encodeIfPresent(memoryLimit, forKey: .memoryLimit)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(namespace, forKey: .namespace)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(successRate, forKey: .successRate)
try container.encodeIfPresent(target, forKey: .target)
try container.encodeIfPresent(timeoutSec, forKey: .timeoutSec)
}
}