MDAtHomeReport

public struct MDAtHomeReport : Encodable

Structure representing a report which must be sent after loading an image using the API

  • url

    The URL of the image

    Declaration

    Swift

    public let url: URL
  • Whether the image successfully loaded

    Declaration

    Swift

    public let success: Bool
  • Whether the server returned an X-Cache header with a value starting with HIT

    Declaration

    Swift

    public let cached: Bool
  • The size (in bytes) of the retrieved image

    Declaration

    Swift

    public let bytes: Int
  • The time (in miliseconds) that the complete retrieval (not TTFB) of this image took

    Declaration

    Swift

    public let duration: Int
  • Convenience init to send a report

    Declaration

    Swift

    public init(url: URL, success: Bool, cached: Bool, bytes: Int, duration: Int)