Files
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

126 lines
5.4 KiB
Swift

//
// O11yBuilderQuery.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yBuilderQuery: Sendable, Codable, ParameterConvertible, Hashable {
public var isAnomaly: Bool?
public var queriesUsedInFormula: [String]?
public var shiftBy: Int64?
public var aggregateAttribute: O11yAttributeKey?
public var aggregateOperator: String?
public var dataSource: String?
public var disabled: Bool?
public var expression: String?
public var filters: O11yFilterSet?
public var functions: [O11yFunction]?
public var groupBy: [O11yAttributeKey]?
public var having: [O11yHaving]?
public var legend: String?
public var limit: Int?
public var offset: Int?
public var orderBy: [O11yOrderBy]?
public var pageSize: Int?
public var queryName: String?
public var reduceTo: String?
public var selectColumns: [O11yAttributeKey]?
public var seriesAggregation: String?
public var spaceAggregation: String?
public var stepInterval: Int64?
public var temporality: String?
public var timeAggregation: String?
public init(isAnomaly: Bool? = nil, queriesUsedInFormula: [String]? = nil, shiftBy: Int64? = nil, aggregateAttribute: O11yAttributeKey? = nil, aggregateOperator: String? = nil, dataSource: String? = nil, disabled: Bool? = nil, expression: String? = nil, filters: O11yFilterSet? = nil, functions: [O11yFunction]? = nil, groupBy: [O11yAttributeKey]? = nil, having: [O11yHaving]? = nil, legend: String? = nil, limit: Int? = nil, offset: Int? = nil, orderBy: [O11yOrderBy]? = nil, pageSize: Int? = nil, queryName: String? = nil, reduceTo: String? = nil, selectColumns: [O11yAttributeKey]? = nil, seriesAggregation: String? = nil, spaceAggregation: String? = nil, stepInterval: Int64? = nil, temporality: String? = nil, timeAggregation: String? = nil) {
self.isAnomaly = isAnomaly
self.queriesUsedInFormula = queriesUsedInFormula
self.shiftBy = shiftBy
self.aggregateAttribute = aggregateAttribute
self.aggregateOperator = aggregateOperator
self.dataSource = dataSource
self.disabled = disabled
self.expression = expression
self.filters = filters
self.functions = functions
self.groupBy = groupBy
self.having = having
self.legend = legend
self.limit = limit
self.offset = offset
self.orderBy = orderBy
self.pageSize = pageSize
self.queryName = queryName
self.reduceTo = reduceTo
self.selectColumns = selectColumns
self.seriesAggregation = seriesAggregation
self.spaceAggregation = spaceAggregation
self.stepInterval = stepInterval
self.temporality = temporality
self.timeAggregation = timeAggregation
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case isAnomaly = "IsAnomaly"
case queriesUsedInFormula = "QueriesUsedInFormula"
case shiftBy = "ShiftBy"
case aggregateAttribute
case aggregateOperator
case dataSource
case disabled
case expression
case filters
case functions
case groupBy
case having
case legend
case limit
case offset
case orderBy
case pageSize
case queryName
case reduceTo
case selectColumns
case seriesAggregation
case spaceAggregation
case stepInterval
case temporality
case timeAggregation
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(isAnomaly, forKey: .isAnomaly)
try container.encodeIfPresent(queriesUsedInFormula, forKey: .queriesUsedInFormula)
try container.encodeIfPresent(shiftBy, forKey: .shiftBy)
try container.encodeIfPresent(aggregateAttribute, forKey: .aggregateAttribute)
try container.encodeIfPresent(aggregateOperator, forKey: .aggregateOperator)
try container.encodeIfPresent(dataSource, forKey: .dataSource)
try container.encodeIfPresent(disabled, forKey: .disabled)
try container.encodeIfPresent(expression, forKey: .expression)
try container.encodeIfPresent(filters, forKey: .filters)
try container.encodeIfPresent(functions, forKey: .functions)
try container.encodeIfPresent(groupBy, forKey: .groupBy)
try container.encodeIfPresent(having, forKey: .having)
try container.encodeIfPresent(legend, forKey: .legend)
try container.encodeIfPresent(limit, forKey: .limit)
try container.encodeIfPresent(offset, forKey: .offset)
try container.encodeIfPresent(orderBy, forKey: .orderBy)
try container.encodeIfPresent(pageSize, forKey: .pageSize)
try container.encodeIfPresent(queryName, forKey: .queryName)
try container.encodeIfPresent(reduceTo, forKey: .reduceTo)
try container.encodeIfPresent(selectColumns, forKey: .selectColumns)
try container.encodeIfPresent(seriesAggregation, forKey: .seriesAggregation)
try container.encodeIfPresent(spaceAggregation, forKey: .spaceAggregation)
try container.encodeIfPresent(stepInterval, forKey: .stepInterval)
try container.encodeIfPresent(temporality, forKey: .temporality)
try container.encodeIfPresent(timeAggregation, forKey: .timeAggregation)
}
}