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.
66 lines
2.6 KiB
Swift
66 lines
2.6 KiB
Swift
//
|
|
// O11yO11yAggregation.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yAggregation: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Alias is the aggregation's alias. */
|
|
public var alias: String?
|
|
/** AnomalyScores are anomaly overlays. */
|
|
public var anomalyScores: [O11yO11yMetricSeries]?
|
|
/** Index is the aggregation's position in the query. */
|
|
public var index: Int64?
|
|
/** LowerBoundSeries are forecast lower bounds. */
|
|
public var lowerBoundSeries: [O11yO11yMetricSeries]?
|
|
/** Meta describes the aggregation. */
|
|
public var meta: O11yO11yAggregationMeta?
|
|
/** PredictedSeries are forecast overlays, when the query asked for them. */
|
|
public var predictedSeries: [O11yO11yMetricSeries]?
|
|
/** Series are the aggregated time series. */
|
|
public var series: [O11yO11yMetricSeries]?
|
|
/** UpperBoundSeries are forecast upper bounds. */
|
|
public var upperBoundSeries: [O11yO11yMetricSeries]?
|
|
|
|
public init(alias: String? = nil, anomalyScores: [O11yO11yMetricSeries]? = nil, index: Int64? = nil, lowerBoundSeries: [O11yO11yMetricSeries]? = nil, meta: O11yO11yAggregationMeta? = nil, predictedSeries: [O11yO11yMetricSeries]? = nil, series: [O11yO11yMetricSeries]? = nil, upperBoundSeries: [O11yO11yMetricSeries]? = nil) {
|
|
self.alias = alias
|
|
self.anomalyScores = anomalyScores
|
|
self.index = index
|
|
self.lowerBoundSeries = lowerBoundSeries
|
|
self.meta = meta
|
|
self.predictedSeries = predictedSeries
|
|
self.series = series
|
|
self.upperBoundSeries = upperBoundSeries
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case alias
|
|
case anomalyScores
|
|
case index
|
|
case lowerBoundSeries
|
|
case meta
|
|
case predictedSeries
|
|
case series
|
|
case upperBoundSeries
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(alias, forKey: .alias)
|
|
try container.encodeIfPresent(anomalyScores, forKey: .anomalyScores)
|
|
try container.encodeIfPresent(index, forKey: .index)
|
|
try container.encodeIfPresent(lowerBoundSeries, forKey: .lowerBoundSeries)
|
|
try container.encodeIfPresent(meta, forKey: .meta)
|
|
try container.encodeIfPresent(predictedSeries, forKey: .predictedSeries)
|
|
try container.encodeIfPresent(series, forKey: .series)
|
|
try container.encodeIfPresent(upperBoundSeries, forKey: .upperBoundSeries)
|
|
}
|
|
}
|
|
|