ApplicationMetrics
public struct ApplicationMetrics : Codable
The application metrics interface
-
Undocumented
See moreDeclaration
Swift
public enum CodingKeys : String, CodingKey -
Initialise with application startUpTime
- Example:
let metrics = ApplicationMetrics( startUpTime: 3.123, timeToSplash: 1.456, customMetrics: ["custom_metric": "value"] ) // Encodes to JSON with merged customMetrics
Declaration
Swift
public init(startUpTime: Double, timeToSplash: Double? = nil, customMetrics: [String : String]? = nil)Parameters
startUpTimeThe time taken to launch the application.
timeToSplashThe time taken to show the splash screen.
customMetricsAdditional metrics to include in the JSON.
- Example:
-
Declaration
Swift
public func encode(to encoder: Encoder) throws