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

76 lines
2.8 KiB
Swift

//
// TotalView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TotalView: Sendable, Codable, ParameterConvertible, Hashable {
/** Confidence says how real the row's numbers are. */
public var confidence: String?
/** CostCents is the period's spend in cents, in the row's own ledger. */
public var costCents: Int64?
/** Provider is the provider the row totals. */
public var provider: String?
/** Requests is the period's request count. */
public var requests: Int64?
/** Scope is whose usage the row measures: user or org. */
public var scope: String?
/** Source is whose meter the row came from: account or hanzo. */
public var source: String?
/** Tokens is the period's total token count. */
public var tokens: Int64?
/** UsedPct is the plan consumption percentage, on the account side. */
public var usedPct: Double?
/** Window is the window class the row totals, on the account side. */
public var window: String?
/** Windows is how many window instances the row folds. */
public var windows: Int64?
public init(confidence: String? = nil, costCents: Int64? = nil, provider: String? = nil, requests: Int64? = nil, scope: String? = nil, source: String? = nil, tokens: Int64? = nil, usedPct: Double? = nil, window: String? = nil, windows: Int64? = nil) {
self.confidence = confidence
self.costCents = costCents
self.provider = provider
self.requests = requests
self.scope = scope
self.source = source
self.tokens = tokens
self.usedPct = usedPct
self.window = window
self.windows = windows
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case confidence
case costCents
case provider
case requests
case scope
case source
case tokens
case usedPct
case window
case windows
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(confidence, forKey: .confidence)
try container.encodeIfPresent(costCents, forKey: .costCents)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(requests, forKey: .requests)
try container.encodeIfPresent(scope, forKey: .scope)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(tokens, forKey: .tokens)
try container.encodeIfPresent(usedPct, forKey: .usedPct)
try container.encodeIfPresent(window, forKey: .window)
try container.encodeIfPresent(windows, forKey: .windows)
}
}