mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
60 lines
2.2 KiB
Swift
60 lines
2.2 KiB
Swift
//
|
|
// O11yCompositeQuery.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yCompositeQuery: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var builderQueries: [String: O11yBuilderQuery]?
|
|
public var chQueries: [String: O11yDatastoreQuery]?
|
|
/** FillGaps is used to fill the gaps in the time series data */
|
|
public var fillGaps: Bool?
|
|
public var panelType: String?
|
|
public var promQueries: [String: O11yPromQuery]?
|
|
public var queries: [O11yQueryEnvelope]?
|
|
public var queryType: String?
|
|
/** Unit for the time series data shown in the graph This is used in alerts to format the value and threshold */
|
|
public var unit: String?
|
|
|
|
public init(builderQueries: [String: O11yBuilderQuery]? = nil, chQueries: [String: O11yDatastoreQuery]? = nil, fillGaps: Bool? = nil, panelType: String? = nil, promQueries: [String: O11yPromQuery]? = nil, queries: [O11yQueryEnvelope]? = nil, queryType: String? = nil, unit: String? = nil) {
|
|
self.builderQueries = builderQueries
|
|
self.chQueries = chQueries
|
|
self.fillGaps = fillGaps
|
|
self.panelType = panelType
|
|
self.promQueries = promQueries
|
|
self.queries = queries
|
|
self.queryType = queryType
|
|
self.unit = unit
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case builderQueries
|
|
case chQueries
|
|
case fillGaps
|
|
case panelType
|
|
case promQueries
|
|
case queries
|
|
case queryType
|
|
case unit
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(builderQueries, forKey: .builderQueries)
|
|
try container.encodeIfPresent(chQueries, forKey: .chQueries)
|
|
try container.encodeIfPresent(fillGaps, forKey: .fillGaps)
|
|
try container.encodeIfPresent(panelType, forKey: .panelType)
|
|
try container.encodeIfPresent(promQueries, forKey: .promQueries)
|
|
try container.encodeIfPresent(queries, forKey: .queries)
|
|
try container.encodeIfPresent(queryType, forKey: .queryType)
|
|
try container.encodeIfPresent(unit, forKey: .unit)
|
|
}
|
|
}
|
|
|