Files
swift-sdk/Sources/Hanzo/Models/O11yQueryRangeParamsV3.swift
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

55 lines
1.8 KiB
Swift

//
// O11yQueryRangeParamsV3.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yQueryRangeParamsV3: Sendable, Codable, ParameterConvertible, Hashable {
public var compositeQuery: O11yCompositeQuery?
public var end: Int64?
public var formatForWeb: Bool?
public var noCache: Bool?
public var start: Int64?
/** step is in seconds; used for prometheus queries */
public var step: Int64?
public var variables: [String: JSONValue]?
public init(compositeQuery: O11yCompositeQuery? = nil, end: Int64? = nil, formatForWeb: Bool? = nil, noCache: Bool? = nil, start: Int64? = nil, step: Int64? = nil, variables: [String: JSONValue]? = nil) {
self.compositeQuery = compositeQuery
self.end = end
self.formatForWeb = formatForWeb
self.noCache = noCache
self.start = start
self.step = step
self.variables = variables
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case compositeQuery
case end
case formatForWeb
case noCache
case start
case step
case variables
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(compositeQuery, forKey: .compositeQuery)
try container.encodeIfPresent(end, forKey: .end)
try container.encodeIfPresent(formatForWeb, forKey: .formatForWeb)
try container.encodeIfPresent(noCache, forKey: .noCache)
try container.encodeIfPresent(start, forKey: .start)
try container.encodeIfPresent(step, forKey: .step)
try container.encodeIfPresent(variables, forKey: .variables)
}
}