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

66 lines
2.3 KiB
Swift

//
// O11yGettableRuleStateHistory.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yGettableRuleStateHistory: Sendable, Codable, ParameterConvertible, Hashable {
public var fingerprint: Int?
public var labels: [O11yLabel]?
public var overallState: JSONValue?
public var overallStateChanged: Bool?
public var ruleId: String?
public var ruleName: String?
public var state: JSONValue?
public var stateChanged: Bool?
public var unixMilli: Int64?
public var value: Double?
public init(fingerprint: Int? = nil, labels: [O11yLabel]? = nil, overallState: JSONValue? = nil, overallStateChanged: Bool? = nil, ruleId: String? = nil, ruleName: String? = nil, state: JSONValue? = nil, stateChanged: Bool? = nil, unixMilli: Int64? = nil, value: Double? = nil) {
self.fingerprint = fingerprint
self.labels = labels
self.overallState = overallState
self.overallStateChanged = overallStateChanged
self.ruleId = ruleId
self.ruleName = ruleName
self.state = state
self.stateChanged = stateChanged
self.unixMilli = unixMilli
self.value = value
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case fingerprint
case labels
case overallState
case overallStateChanged
case ruleId
case ruleName
case state
case stateChanged
case unixMilli
case value
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(fingerprint, forKey: .fingerprint)
try container.encodeIfPresent(labels, forKey: .labels)
try container.encodeIfPresent(overallState, forKey: .overallState)
try container.encodeIfPresent(overallStateChanged, forKey: .overallStateChanged)
try container.encodeIfPresent(ruleId, forKey: .ruleId)
try container.encodeIfPresent(ruleName, forKey: .ruleName)
try container.encodeIfPresent(state, forKey: .state)
try container.encodeIfPresent(stateChanged, forKey: .stateChanged)
try container.encodeIfPresent(unixMilli, forKey: .unixMilli)
try container.encodeIfPresent(value, forKey: .value)
}
}