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

66 lines
2.4 KiB
Swift

//
// O11yO11yDiscoverIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yDiscoverIn: Sendable, Codable, ParameterConvertible, Hashable {
/** Aggregations are the measures to compute per group. Empty means a count. */
public var aggregations: [String]?
/** Filters narrow the scan; each is a field, an operator (eq, neq, like) and a value, and they combine with AND. */
public var filters: [O11yO11yFilter]?
/** GroupBy are the columns to group the rows by. */
public var groupBy: [String]?
/** Limit caps how many rows come back. */
public var limit: Int64?
/** OrderBy is the column or aggregation to sort the rows on. */
public var orderBy: String?
/** OrderDir is asc or desc. */
public var orderDir: String?
/** Period is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d. */
public var period: String?
/** Project is the project to read, as its id. Required. */
public var project: String
public init(aggregations: [String]? = nil, filters: [O11yO11yFilter]? = nil, groupBy: [String]? = nil, limit: Int64? = nil, orderBy: String? = nil, orderDir: String? = nil, period: String? = nil, project: String) {
self.aggregations = aggregations
self.filters = filters
self.groupBy = groupBy
self.limit = limit
self.orderBy = orderBy
self.orderDir = orderDir
self.period = period
self.project = project
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case aggregations
case filters
case groupBy
case limit
case orderBy
case orderDir
case period
case project
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(aggregations, forKey: .aggregations)
try container.encodeIfPresent(filters, forKey: .filters)
try container.encodeIfPresent(groupBy, forKey: .groupBy)
try container.encodeIfPresent(limit, forKey: .limit)
try container.encodeIfPresent(orderBy, forKey: .orderBy)
try container.encodeIfPresent(orderDir, forKey: .orderDir)
try container.encodeIfPresent(period, forKey: .period)
try container.encode(project, forKey: .project)
}
}