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.
56 lines
2.0 KiB
Swift
56 lines
2.0 KiB
Swift
//
|
|
// WebOverview.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct WebOverview: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Available is false when the product-event table could not be read — the lens is reported missing rather than as zeros that look like real traffic. */
|
|
public var available: Bool?
|
|
/** Pageviews is how many $pageview events landed in the window. */
|
|
public var pageviews: Int64?
|
|
/** Reason says why the lens is unavailable. Omitted when it is available. */
|
|
public var reason: String?
|
|
/** Sessions is how many distinct visits they span. */
|
|
public var sessions: Int64?
|
|
/** Source is the warehouse table the lens read. */
|
|
public var source: String?
|
|
/** Visitors is how many distinct people those pageviews came from. */
|
|
public var visitors: Int64?
|
|
|
|
public init(available: Bool? = nil, pageviews: Int64? = nil, reason: String? = nil, sessions: Int64? = nil, source: String? = nil, visitors: Int64? = nil) {
|
|
self.available = available
|
|
self.pageviews = pageviews
|
|
self.reason = reason
|
|
self.sessions = sessions
|
|
self.source = source
|
|
self.visitors = visitors
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case available
|
|
case pageviews
|
|
case reason
|
|
case sessions
|
|
case source
|
|
case visitors
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(available, forKey: .available)
|
|
try container.encodeIfPresent(pageviews, forKey: .pageviews)
|
|
try container.encodeIfPresent(reason, forKey: .reason)
|
|
try container.encodeIfPresent(sessions, forKey: .sessions)
|
|
try container.encodeIfPresent(source, forKey: .source)
|
|
try container.encodeIfPresent(visitors, forKey: .visitors)
|
|
}
|
|
}
|
|
|