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

40 lines
1.1 KiB
Swift

//
// O11yO11yLogAggregateBucket.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yLogAggregateBucket: Sendable, Codable, ParameterConvertible, Hashable {
/** GroupBy carries the group's key values when the aggregate grouped. */
public var groupBy: [String: JSONValue]?
/** Timestamp is the start of the bucket. */
public var timestamp: Int64?
public var value: JSONValue?
public init(groupBy: [String: JSONValue]? = nil, timestamp: Int64? = nil, value: JSONValue? = nil) {
self.groupBy = groupBy
self.timestamp = timestamp
self.value = value
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case groupBy
case timestamp
case value
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(groupBy, forKey: .groupBy)
try container.encodeIfPresent(timestamp, forKey: .timestamp)
try container.encodeIfPresent(value, forKey: .value)
}
}