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.
62 lines
3.0 KiB
Swift
62 lines
3.0 KiB
Swift
//
|
|
// O11yPostableProfile.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yPostableProfile: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var existingObservabilityTool: String?
|
|
public var hasExistingObservabilityTool: Bool?
|
|
public var logsScalePerDayInGb: Int64?
|
|
public var numberOfHosts: Int64?
|
|
public var numberOfServices: Int64?
|
|
public var reasonsForInterestInO11y: [String]?
|
|
public var timelineForMigratingToO11y: String?
|
|
public var usesOtel: Bool?
|
|
public var whereDidYouDiscoverO11y: String?
|
|
|
|
public init(existingObservabilityTool: String? = nil, hasExistingObservabilityTool: Bool? = nil, logsScalePerDayInGb: Int64? = nil, numberOfHosts: Int64? = nil, numberOfServices: Int64? = nil, reasonsForInterestInO11y: [String]? = nil, timelineForMigratingToO11y: String? = nil, usesOtel: Bool? = nil, whereDidYouDiscoverO11y: String? = nil) {
|
|
self.existingObservabilityTool = existingObservabilityTool
|
|
self.hasExistingObservabilityTool = hasExistingObservabilityTool
|
|
self.logsScalePerDayInGb = logsScalePerDayInGb
|
|
self.numberOfHosts = numberOfHosts
|
|
self.numberOfServices = numberOfServices
|
|
self.reasonsForInterestInO11y = reasonsForInterestInO11y
|
|
self.timelineForMigratingToO11y = timelineForMigratingToO11y
|
|
self.usesOtel = usesOtel
|
|
self.whereDidYouDiscoverO11y = whereDidYouDiscoverO11y
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case existingObservabilityTool = "existing_observability_tool"
|
|
case hasExistingObservabilityTool = "has_existing_observability_tool"
|
|
case logsScalePerDayInGb = "logs_scale_per_day_in_gb"
|
|
case numberOfHosts = "number_of_hosts"
|
|
case numberOfServices = "number_of_services"
|
|
case reasonsForInterestInO11y = "reasons_for_interest_in_o11y"
|
|
case timelineForMigratingToO11y = "timeline_for_migrating_to_o11y"
|
|
case usesOtel = "uses_otel"
|
|
case whereDidYouDiscoverO11y = "where_did_you_discover_o11y"
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(existingObservabilityTool, forKey: .existingObservabilityTool)
|
|
try container.encodeIfPresent(hasExistingObservabilityTool, forKey: .hasExistingObservabilityTool)
|
|
try container.encodeIfPresent(logsScalePerDayInGb, forKey: .logsScalePerDayInGb)
|
|
try container.encodeIfPresent(numberOfHosts, forKey: .numberOfHosts)
|
|
try container.encodeIfPresent(numberOfServices, forKey: .numberOfServices)
|
|
try container.encodeIfPresent(reasonsForInterestInO11y, forKey: .reasonsForInterestInO11y)
|
|
try container.encodeIfPresent(timelineForMigratingToO11y, forKey: .timelineForMigratingToO11y)
|
|
try container.encodeIfPresent(usesOtel, forKey: .usesOtel)
|
|
try container.encodeIfPresent(whereDidYouDiscoverO11y, forKey: .whereDidYouDiscoverO11y)
|
|
}
|
|
}
|
|
|