Files
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.4 KiB
Swift

//
// RiskOrgFeature.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct RiskOrgFeature: Sendable, Codable, ParameterConvertible, Hashable {
/** Blind is true when the dimension is present in no bucket at all: this organisation's surface does not carry it, and saying so is the difference between no risk and no data. */
public var blind: Bool?
/** Buckets is how many five-minute buckets of this organisation's surface were measured. */
public var buckets: Int64?
/** Max is the largest value it reached in the window. */
public var max: Double?
/** Mean is the dimension's average where it was present. */
public var mean: Double?
/** Name is the dimension as this API publishes it. */
public var name: String?
/** Present is in how many of them the dimension carried a value at all. */
public var present: Int64?
/** Source names the plane it is rolled up from, so a dimension that reads zero everywhere traces to a plane the organisation does not use rather than to a defect. */
public var source: String?
/** Unit is how to read the numbers below. */
public var unit: String?
public init(blind: Bool? = nil, buckets: Int64? = nil, max: Double? = nil, mean: Double? = nil, name: String? = nil, present: Int64? = nil, source: String? = nil, unit: String? = nil) {
self.blind = blind
self.buckets = buckets
self.max = max
self.mean = mean
self.name = name
self.present = present
self.source = source
self.unit = unit
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case blind
case buckets
case max
case mean
case name
case present
case source
case unit
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(blind, forKey: .blind)
try container.encodeIfPresent(buckets, forKey: .buckets)
try container.encodeIfPresent(max, forKey: .max)
try container.encodeIfPresent(mean, forKey: .mean)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(present, forKey: .present)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(unit, forKey: .unit)
}
}