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.
124 lines
4.9 KiB
Swift
124 lines
4.9 KiB
Swift
//
|
|
// O11yO11yErrorIssue.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct O11yO11yErrorIssue: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Assignee is who the issue is assigned to. */
|
|
public var assignee: String?
|
|
/** Count is how many occurrences have landed on the issue. */
|
|
public var count: Int64?
|
|
/** CreatedAt is when the issue was first recorded. */
|
|
public var createdAt: Date?
|
|
/** Culprit is where it came from — the function or route blamed for it. */
|
|
public var culprit: String?
|
|
/** Environment is the deployment the issue was seen in. */
|
|
public var environment: String?
|
|
/** Fingerprint is the grouping key that puts like errors in one issue. */
|
|
public var fingerprint: String?
|
|
/** FirstSeen is when the earliest occurrence was recorded. */
|
|
public var firstSeen: Date?
|
|
/** ID is the issue id. */
|
|
public var id: String?
|
|
/** LastSeen is when the latest was. */
|
|
public var lastSeen: Date?
|
|
/** Level is the issue's severity, e.g. error, warning, info. */
|
|
public var level: String?
|
|
/** Platform is the reporting runtime, e.g. go, python, javascript. */
|
|
public var platform: String?
|
|
/** Regressed marks an issue that reopened after being resolved. */
|
|
public var regressed: Bool?
|
|
/** Release is the version that produced it. */
|
|
public var release: String?
|
|
/** ResolvedAt is when the issue was resolved, if it is. */
|
|
public var resolvedAt: Date?
|
|
/** ServiceName is the service that reported it. */
|
|
public var serviceName: String?
|
|
/** Status is the lifecycle state: unresolved, resolved or ignored. */
|
|
public var status: String?
|
|
/** Type is the exception type. */
|
|
public var type: String?
|
|
/** UpdatedAt is when the issue last changed. */
|
|
public var updatedAt: Date?
|
|
/** Value is the exception value. */
|
|
public var value: String?
|
|
|
|
public init(assignee: String? = nil, count: Int64? = nil, createdAt: Date? = nil, culprit: String? = nil, environment: String? = nil, fingerprint: String? = nil, firstSeen: Date? = nil, id: String? = nil, lastSeen: Date? = nil, level: String? = nil, platform: String? = nil, regressed: Bool? = nil, release: String? = nil, resolvedAt: Date? = nil, serviceName: String? = nil, status: String? = nil, type: String? = nil, updatedAt: Date? = nil, value: String? = nil) {
|
|
self.assignee = assignee
|
|
self.count = count
|
|
self.createdAt = createdAt
|
|
self.culprit = culprit
|
|
self.environment = environment
|
|
self.fingerprint = fingerprint
|
|
self.firstSeen = firstSeen
|
|
self.id = id
|
|
self.lastSeen = lastSeen
|
|
self.level = level
|
|
self.platform = platform
|
|
self.regressed = regressed
|
|
self.release = release
|
|
self.resolvedAt = resolvedAt
|
|
self.serviceName = serviceName
|
|
self.status = status
|
|
self.type = type
|
|
self.updatedAt = updatedAt
|
|
self.value = value
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case assignee
|
|
case count
|
|
case createdAt
|
|
case culprit
|
|
case environment
|
|
case fingerprint
|
|
case firstSeen
|
|
case id
|
|
case lastSeen
|
|
case level
|
|
case platform
|
|
case regressed
|
|
case release
|
|
case resolvedAt
|
|
case serviceName
|
|
case status
|
|
case type
|
|
case updatedAt
|
|
case value
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(assignee, forKey: .assignee)
|
|
try container.encodeIfPresent(count, forKey: .count)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(culprit, forKey: .culprit)
|
|
try container.encodeIfPresent(environment, forKey: .environment)
|
|
try container.encodeIfPresent(fingerprint, forKey: .fingerprint)
|
|
try container.encodeIfPresent(firstSeen, forKey: .firstSeen)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(lastSeen, forKey: .lastSeen)
|
|
try container.encodeIfPresent(level, forKey: .level)
|
|
try container.encodeIfPresent(platform, forKey: .platform)
|
|
try container.encodeIfPresent(regressed, forKey: .regressed)
|
|
try container.encodeIfPresent(release, forKey: .release)
|
|
try container.encodeIfPresent(resolvedAt, forKey: .resolvedAt)
|
|
try container.encodeIfPresent(serviceName, forKey: .serviceName)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
try container.encodeIfPresent(value, forKey: .value)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension O11yO11yErrorIssue: Identifiable {}
|