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.
40 lines
1.1 KiB
Swift
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)
|
|
}
|
|
}
|
|
|