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

56 lines
2.3 KiB
Swift

//
// ActivityTotals.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ActivityTotals: Sendable, Codable, ParameterConvertible, Hashable {
/** ActiveDays counts the days with any usage at all — the streak/consistency number. Compare it against len(days) for the share of days the subject showed up. */
public var activeDays: Int64?
/** CostCents is the window's spend in whole US cents, the sum of Days[].CostCents. */
public var costCents: Int64?
/** MaxRequests is the same ceiling for a request-based heatmap — the busiest single day's request count, 0 for an idle window. */
public var maxRequests: Int64?
/** MaxTokens is the busiest single day's token count: the ceiling to normalize a token heatmap against, so the darkest cell is that day. 0 for an idle window, which a client must not divide by. */
public var maxTokens: Int64?
/** Requests is the sum of Days[].Requests over the whole window. */
public var requests: Int64?
/** Tokens is the sum of Days[].Tokens over the whole window. */
public var tokens: Int64?
public init(activeDays: Int64? = nil, costCents: Int64? = nil, maxRequests: Int64? = nil, maxTokens: Int64? = nil, requests: Int64? = nil, tokens: Int64? = nil) {
self.activeDays = activeDays
self.costCents = costCents
self.maxRequests = maxRequests
self.maxTokens = maxTokens
self.requests = requests
self.tokens = tokens
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case activeDays
case costCents
case maxRequests
case maxTokens
case requests
case tokens
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(activeDays, forKey: .activeDays)
try container.encodeIfPresent(costCents, forKey: .costCents)
try container.encodeIfPresent(maxRequests, forKey: .maxRequests)
try container.encodeIfPresent(maxTokens, forKey: .maxTokens)
try container.encodeIfPresent(requests, forKey: .requests)
try container.encodeIfPresent(tokens, forKey: .tokens)
}
}