<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MetricReport/StateEntry",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "s:9MetricKit0A6ReportV10StateEntryV"
  },
  "title" : "MetricReport.StateEntry"
}
-->

# MetricReport.StateEntry

A metric entry scoped to a specific recorded app state.

```
struct StateEntry
```

## Discussion

`StateEntry` is only present when state reporting is enabled via [`init(enabledStateReportingDomains:)`](/documentation/MetricKit/MetricManager/init(enabledStateReportingDomains:)). Access state entries through [`stateEntries`](/documentation/MetricKit/MetricReport/stateEntries).

Each entry corresponds to one [`MetricManager.ReportedState`](/documentation/MetricKit/MetricManager/ReportedState) and contains the metric values aggregated while the app was in that state. Only a subset of metrics appear in state entries, including hang time, hitch time, app termination counts, signpost intervals, location activity time, and app runtime metrics.

## Topics

### State details

[`state`](/documentation/MetricKit/MetricReport/StateEntry/state)

StateReporting information during which this entry was collected.

### Metric values

[`values`](/documentation/MetricKit/MetricReport/StateEntry/values)

The metric values for this entry.

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)