mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
56 lines
1.9 KiB
Swift
56 lines
1.9 KiB
Swift
//
|
|
// O11yO11yMetricPanel.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yMetricPanel: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** DashboardID is the dashboard's id. */
|
|
public var dashboardId: String?
|
|
/** DashboardName is the dashboard's name. */
|
|
public var dashboardName: String?
|
|
/** FilterBy are the labels the panel filters the metric by. */
|
|
public var filterBy: [String]?
|
|
/** GroupBy are the labels the panel groups the metric by. */
|
|
public var groupBy: [String]?
|
|
/** PanelID is the panel's id. */
|
|
public var panelId: String?
|
|
/** PanelName is the panel's name. */
|
|
public var panelName: String?
|
|
|
|
public init(dashboardId: String? = nil, dashboardName: String? = nil, filterBy: [String]? = nil, groupBy: [String]? = nil, panelId: String? = nil, panelName: String? = nil) {
|
|
self.dashboardId = dashboardId
|
|
self.dashboardName = dashboardName
|
|
self.filterBy = filterBy
|
|
self.groupBy = groupBy
|
|
self.panelId = panelId
|
|
self.panelName = panelName
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case dashboardId
|
|
case dashboardName
|
|
case filterBy
|
|
case groupBy
|
|
case panelId
|
|
case panelName
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(dashboardId, forKey: .dashboardId)
|
|
try container.encodeIfPresent(dashboardName, forKey: .dashboardName)
|
|
try container.encodeIfPresent(filterBy, forKey: .filterBy)
|
|
try container.encodeIfPresent(groupBy, forKey: .groupBy)
|
|
try container.encodeIfPresent(panelId, forKey: .panelId)
|
|
try container.encodeIfPresent(panelName, forKey: .panelName)
|
|
}
|
|
}
|
|
|