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

46 lines
1.4 KiB
Swift

//
// O11yO11yMetricPoint.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yMetricPoint: Sendable, Codable, ParameterConvertible, Hashable {
/** Partial marks a point whose bucket the window only partly covers. */
public var partial: Bool?
/** Timestamp is the point's time as a Unix timestamp in milliseconds. */
public var timestamp: Int64?
/** Value is the point's value. */
public var value: Double?
/** Values carries the bucket values of a heatmap point. */
public var values: [Double]?
public init(partial: Bool? = nil, timestamp: Int64? = nil, value: Double? = nil, values: [Double]? = nil) {
self.partial = partial
self.timestamp = timestamp
self.value = value
self.values = values
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case partial
case timestamp
case value
case values
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(partial, forKey: .partial)
try container.encodeIfPresent(timestamp, forKey: .timestamp)
try container.encodeIfPresent(value, forKey: .value)
try container.encodeIfPresent(values, forKey: .values)
}
}