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.
51 lines
1.6 KiB
Swift
51 lines
1.6 KiB
Swift
//
|
|
// O11yO11yOperationsIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yOperationsIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** End is the window's end, epoch nanoseconds as a string. */
|
|
public var end: String?
|
|
/** Limit caps how many operations come back. */
|
|
public var limit: Int64?
|
|
/** Service is the service whose operations are read. */
|
|
public var service: String?
|
|
/** Start is the window's start, epoch nanoseconds as a string. */
|
|
public var start: String?
|
|
/** Tags narrow the spans counted, each a span-attribute predicate. */
|
|
public var tags: [O11yO11yServiceTag]?
|
|
|
|
public init(end: String? = nil, limit: Int64? = nil, service: String? = nil, start: String? = nil, tags: [O11yO11yServiceTag]? = nil) {
|
|
self.end = end
|
|
self.limit = limit
|
|
self.service = service
|
|
self.start = start
|
|
self.tags = tags
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case end
|
|
case limit
|
|
case service
|
|
case start
|
|
case tags
|
|
}
|
|
|
|
// 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(limit, forKey: .limit)
|
|
try container.encodeIfPresent(service, forKey: .service)
|
|
try container.encodeIfPresent(start, forKey: .start)
|
|
try container.encodeIfPresent(tags, forKey: .tags)
|
|
}
|
|
}
|
|
|