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.
71 lines
2.6 KiB
Swift
71 lines
2.6 KiB
Swift
//
|
|
// O11yO11yErrorsListIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yErrorsListIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** End is the window end, as a nanosecond epoch spelled as a string. */
|
|
public var end: String?
|
|
/** ExceptionType narrows to one exception type. */
|
|
public var exceptionType: String?
|
|
/** Limit caps how many exception groups come back. Required, non-zero. */
|
|
public var limit: Int64?
|
|
/** Offset is how many groups to skip. */
|
|
public var offset: Int64?
|
|
/** Order is the direction: ascending or descending. */
|
|
public var order: String?
|
|
/** OrderParam is the column to order by, e.g. exceptionCount, lastSeen. */
|
|
public var orderParam: String?
|
|
/** ServiceName narrows to one reporting service. */
|
|
public var serviceName: String?
|
|
/** Start is the window start, as a nanosecond epoch spelled as a string. */
|
|
public var start: String?
|
|
/** Tags narrow the scan to spans carrying the given tag values. */
|
|
public var tags: [O11yO11yTagQuery]?
|
|
|
|
public init(end: String? = nil, exceptionType: String? = nil, limit: Int64? = nil, offset: Int64? = nil, order: String? = nil, orderParam: String? = nil, serviceName: String? = nil, start: String? = nil, tags: [O11yO11yTagQuery]? = nil) {
|
|
self.end = end
|
|
self.exceptionType = exceptionType
|
|
self.limit = limit
|
|
self.offset = offset
|
|
self.order = order
|
|
self.orderParam = orderParam
|
|
self.serviceName = serviceName
|
|
self.start = start
|
|
self.tags = tags
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case end
|
|
case exceptionType
|
|
case limit
|
|
case offset
|
|
case order
|
|
case orderParam
|
|
case serviceName
|
|
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(exceptionType, forKey: .exceptionType)
|
|
try container.encodeIfPresent(limit, forKey: .limit)
|
|
try container.encodeIfPresent(offset, forKey: .offset)
|
|
try container.encodeIfPresent(order, forKey: .order)
|
|
try container.encodeIfPresent(orderParam, forKey: .orderParam)
|
|
try container.encodeIfPresent(serviceName, forKey: .serviceName)
|
|
try container.encodeIfPresent(start, forKey: .start)
|
|
try container.encodeIfPresent(tags, forKey: .tags)
|
|
}
|
|
}
|
|
|