Class

MXMetricPayload

An object that encapsulates a daily metrics report.

Declaration

class MXMetricPayload : NSObject

Topics

Reading Battery Metrics

var cellularConditionMetrics: MXCellularConditionMetric?

The cellular condition measurements for the reporting period.

var cpuMetrics: MXCPUMetric?

The CPU metrics for the reporting period.

var displayMetrics: MXDisplayMetric?

The display metrics for the reporting period.

var gpuMetrics: MXGPUMetric?

The GPU metrics for the reporting period.

var locationActivityMetrics: MXLocationActivityMetric?

The location-tracking activity for the reporting period.

var networkTransferMetrics: MXNetworkTransferMetric?

The network-transfer activity for the reporting period.

Reading Performance Metrics

var applicationLaunchMetrics: MXAppLaunchMetric?

The app launch and resume metrics for the reporting period.

var applicationResponsivenessMetrics: MXAppResponsivenessMetric?

The metrics indicating an app's responsiveness to user interaction for the reporting period.

var applicationTimeMetrics: MXAppRunTimeMetric?

The app foreground and background time metrics for the reporting period.

var memoryMetrics: MXMemoryMetric?

The memory metrics for the reporting period.

Reading Disk Access Metrics

var diskIOMetrics: MXDiskIOMetric?

The storage metrics for the reporting period.

Reading Custom Metrics

var signpostMetrics: [MXSignpostMetric]?

An array of the custom metrics for the reporting period.

Generating a Report

func jsonRepresentation() -> Data

Returns the contents of the payload in JSON format.

func dictionaryRepresentation() -> [AnyHashable : Any]

Returns the results of the payload as a Dictionary.

Reading Information About the Payload

var timeStampBegin: Date

The starting time of the reporting period.

var timeStampEnd: Date

The ending time of the reporting period.

var includesMultipleApplicationVersions: Bool

A Boolean indicating if the version of the app changed at least once during the reporting period.

var latestApplicationVersion: String

The version of the app on the device at the end of the reporting period.

var metaData: MXMetaData?

A set of system-level information for the device.

class MXMetaData

An object containing system-level information for the device.

Relationships

Inherits From

See Also

Essentials

class MXMetricManager

The object that registers you to receive metrics, creates logs for custom metrics, and gives access to past reports.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software