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

46 lines
1.5 KiB
Swift

//
// BreakdownRow.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct BreakdownRow: Sendable, Codable, ParameterConvertible, Hashable {
/** Key is the bucket: a requested path, a referrer domain (\"(direct)\" for none or a same-origin one), or a utm_source (\"(none)\" when absent). */
public var key: String?
/** Pageviews is how many $pageview events fell in this bucket. */
public var pageviews: Int64?
/** Pct is this bucket's share of ALL in-window pageviews, 0..100, one decimal — not of the returned rows, so a top-N shows the long tail honestly. */
public var pct: Double?
/** Visitors is how many distinct people they came from. */
public var visitors: Int64?
public init(key: String? = nil, pageviews: Int64? = nil, pct: Double? = nil, visitors: Int64? = nil) {
self.key = key
self.pageviews = pageviews
self.pct = pct
self.visitors = visitors
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case key
case pageviews
case pct
case visitors
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(key, forKey: .key)
try container.encodeIfPresent(pageviews, forKey: .pageviews)
try container.encodeIfPresent(pct, forKey: .pct)
try container.encodeIfPresent(visitors, forKey: .visitors)
}
}