ApplicationMetrics

public struct ApplicationMetrics : Codable

The application metrics interface

  • Undocumented

    See more

    Declaration

    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

    startUpTime

    The time taken to launch the application.

    timeToSplash

    The time taken to show the splash screen.

    customMetrics

    Additional metrics to include in the JSON.

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws