InsightConfig
public struct InsightConfig
Defines the parameters required to Report using the Insight Agent
-
API URL to report to. Depends on the location to report to (US, EU, etc). Provided by Insight.
Declaration
Swift
public let collectorURL: String -
ID of the device reporting
Declaration
Swift
public var deviceId: String -
Operator ID Token. Provided by Insight
Declaration
Swift
public var operatorId: String -
Amount of seconds between each sample
Declaration
Swift
public let samplingInterval: TimeInterval -
Amount of seconds between each report submitted to the Insight API
Declaration
Swift
public let reportingInterval: TimeInterval -
The type of Device
Declaration
Swift
public let deviceType: DeviceType? -
Manufacturer of the Device
Declaration
Swift
public let deviceManufacturer: String? -
Model of the Device
Declaration
Swift
public let deviceModel: String? -
Name of the Video App
Declaration
Swift
public let appName: String? -
App Version
Declaration
Swift
public let appVersion: String? -
Name of the Operating System
Declaration
Swift
public let osName: String? -
Version of the Operating System
Declaration
Swift
public let osVersion: String? -
Screen width in pixel
Declaration
Swift
public let screenWidth: Int? -
Screen height in pixels
Declaration
Swift
public let screenHeight: Int? -
Screen density ratio
Declaration
Swift
public let screenDensity: Int? -
Timezone (i.e., Europe/Paris or UTC offset)
Declaration
Swift
public let timezone: String? -
Declaration
Swift
public let framedropsEnabled: Bool -
When the integrationMode is enabled then some integrity checks can thow errors
Declaration
Swift
public let integrationMode: Bool -
The name of the player
Declaration
Swift
public let playerName: String? -
The version of the player
Declaration
Swift
public let playerVersion: String? -
Screen refresh rate in Hz
Declaration
Swift
public let screenRefreshRate: Float? -
init(collectorURL:deviceId: operatorId: samplingInterval: reportingInterval: framedropsEnabled: deviceType: appName: appVersion: screenWidth: screenHeight: screenDensity: timezone: integrationMode: playerName: playerVersion: screenRefreshRate: ) Defines all the parameters to define where to report to, and about the reporting device
Declaration
Swift
public init(collectorURL: String = "https://collector.insight-stats.com/api/v1/", deviceId: String, operatorId: String, samplingInterval: TimeInterval = 30, reportingInterval: TimeInterval = 60 * 5, framedropsEnabled: Bool = true, deviceType: DeviceType? = nil, appName: String? = nil, appVersion: String? = nil, screenWidth: Int? = nil, screenHeight: Int? = nil, screenDensity: Int? = nil, timezone: String? = nil, integrationMode: Bool = false, playerName: String? = nil, playerVersion: String? = nil, screenRefreshRate: Float? = nil )Parameters
collectorURLAPI URL to report to. Depends on the location to report to (US, EU, etc). Provided by Insight.
deviceIdID of the device reporting
operatorIdOperator ID Token. Provided by Insight
samplingIntervalAmount of seconds between each sample
reportingIntervalAmount of seconds between each report submitted to the Insight API
deviceTypeThe type of Device
deviceManufacturerManufacturer of the Device
deviceModelModel of the Device
appNameName of the Video App
appVersionApp Version
osNameName of the Operating System
osVersionVersion of the Operating System
screenWidthScreen width in pixel
screenHeightScreen height in pixels
screenDensityScreen density ratio
timezoneTimezone (i.e., Europe/Paris or UTC offset)
framedropsEnabledLets the agent know if framedrop reporting is enabled
integrationModeIf set to true, it allows non valid operations to be detected during the integration by throwing errors. If set to false (which is the default value) then the errors will only be logged.
playerNamename of the player
playerVersionversion number of the player
screenRefreshRateScreen refresh rate in Hz