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.
71 lines
2.6 KiB
Swift
71 lines
2.6 KiB
Swift
//
|
|
// RiskModelFeature.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct RiskModelFeature: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Blind is how often this dimension took that neutral value for THIS organisation. */
|
|
public var blind: Int64?
|
|
/** Citation is where those words come from, so the claim is checkable rather than asserted. */
|
|
public var citation: String?
|
|
/** Indicator is the supervisor's own words for the thing being looked for. */
|
|
public var indicator: String?
|
|
/** Name is the dimension. */
|
|
public var name: String?
|
|
/** Neutral is the value the coordinate takes when the data cannot support it. */
|
|
public var neutral: Double?
|
|
/** Severity is how much weight an alert on it carries. */
|
|
public var severity: String?
|
|
/** Typology is the pattern this dimension detects. */
|
|
public var typology: String?
|
|
/** Unit is how to read the raw number, which is what turns a coordinate into a sentence an investigator can put in a file. */
|
|
public var unit: String?
|
|
/** Window is the sliding aggregate it reads. */
|
|
public var window: String?
|
|
|
|
public init(blind: Int64? = nil, citation: String? = nil, indicator: String? = nil, name: String? = nil, neutral: Double? = nil, severity: String? = nil, typology: String? = nil, unit: String? = nil, window: String? = nil) {
|
|
self.blind = blind
|
|
self.citation = citation
|
|
self.indicator = indicator
|
|
self.name = name
|
|
self.neutral = neutral
|
|
self.severity = severity
|
|
self.typology = typology
|
|
self.unit = unit
|
|
self.window = window
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case blind
|
|
case citation
|
|
case indicator
|
|
case name
|
|
case neutral
|
|
case severity
|
|
case typology
|
|
case unit
|
|
case window
|
|
}
|
|
|
|
// 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(citation, forKey: .citation)
|
|
try container.encodeIfPresent(indicator, forKey: .indicator)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(neutral, forKey: .neutral)
|
|
try container.encodeIfPresent(severity, forKey: .severity)
|
|
try container.encodeIfPresent(typology, forKey: .typology)
|
|
try container.encodeIfPresent(unit, forKey: .unit)
|
|
try container.encodeIfPresent(window, forKey: .window)
|
|
}
|
|
}
|
|
|