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

//
// O11yO11yReductionRulePreviewIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yReductionRulePreviewIn: Sendable, Codable, ParameterConvertible, Hashable {
/** Labels are the label names the rule would match. Required, at least one. */
public var labels: [String]
/** LookbackMs is how far back to sample when estimating. */
public var lookbackMs: Int64?
/** MatchType is drop or keep. Required. */
public var matchType: String
/** MetricName is the metric the rule would govern. Required. */
public var metricName: String
public init(labels: [String], lookbackMs: Int64? = nil, matchType: String, metricName: String) {
self.labels = labels
self.lookbackMs = lookbackMs
self.matchType = matchType
self.metricName = metricName
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case labels
case lookbackMs
case matchType
case metricName
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(labels, forKey: .labels)
try container.encodeIfPresent(lookbackMs, forKey: .lookbackMs)
try container.encode(matchType, forKey: .matchType)
try container.encode(metricName, forKey: .metricName)
}
}