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

46 lines
1.3 KiB
Swift

//
// UsagePoint.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct UsagePoint: Sendable, Codable, ParameterConvertible, Hashable {
/** Requests is how many LLM calls fell in this bucket. */
public var requests: Int64?
/** SpendCents is what they cost, in cents. */
public var spendCents: Int64?
/** T is the bucket's start, RFC3339 UTC, aligned to the interval. */
public var t: String?
/** Tokens is prompt plus completion tokens over those calls. */
public var tokens: Int64?
public init(requests: Int64? = nil, spendCents: Int64? = nil, t: String? = nil, tokens: Int64? = nil) {
self.requests = requests
self.spendCents = spendCents
self.t = t
self.tokens = tokens
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case requests
case spendCents
case t
case tokens
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(requests, forKey: .requests)
try container.encodeIfPresent(spendCents, forKey: .spendCents)
try container.encodeIfPresent(t, forKey: .t)
try container.encodeIfPresent(tokens, forKey: .tokens)
}
}