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.
46 lines
1.5 KiB
Swift
46 lines
1.5 KiB
Swift
//
|
|
// O11yO11yQueueIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yQueueIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** End is the window's end, epoch nanoseconds. */
|
|
public var end: Int64?
|
|
/** EvalTime bounds the span-evaluation scan, nanoseconds; only the span/evaluation view reads it. */
|
|
public var evalTime: Int64?
|
|
/** Start is the window's start, epoch nanoseconds. */
|
|
public var start: Int64?
|
|
/** Variables name what the view drills into — topic, partition, service, consumer_group — keyed by the name the view expects. */
|
|
public var variables: [String: String]?
|
|
|
|
public init(end: Int64? = nil, evalTime: Int64? = nil, start: Int64? = nil, variables: [String: String]? = nil) {
|
|
self.end = end
|
|
self.evalTime = evalTime
|
|
self.start = start
|
|
self.variables = variables
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case end
|
|
case evalTime = "eval_time"
|
|
case start
|
|
case variables
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(end, forKey: .end)
|
|
try container.encodeIfPresent(evalTime, forKey: .evalTime)
|
|
try container.encodeIfPresent(start, forKey: .start)
|
|
try container.encodeIfPresent(variables, forKey: .variables)
|
|
}
|
|
}
|
|
|