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

//
// O11yO11yMetricInspectIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yMetricInspectIn: Sendable, Codable, ParameterConvertible, Hashable {
/** End is the end of the window as a Unix timestamp in milliseconds, at most thirty minutes after start. Required. */
public var end: Int64
/** Filter narrows the series returned. */
public var filter: O11yO11yMetricFilter?
/** MetricName is the metric to inspect. Required. */
public var metricName: String
/** Start is the start of the window as a Unix timestamp in milliseconds. Required. */
public var start: Int64
public init(end: Int64, filter: O11yO11yMetricFilter? = nil, metricName: String, start: Int64) {
self.end = end
self.filter = filter
self.metricName = metricName
self.start = start
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case end
case filter
case metricName
case start
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(end, forKey: .end)
try container.encodeIfPresent(filter, forKey: .filter)
try container.encode(metricName, forKey: .metricName)
try container.encode(start, forKey: .start)
}
}