---
title: MetricReport.StateEntry
framework: metrickit
role: symbol
role_heading: Structure
path: metrickit/metricreport/stateentry
---

# MetricReport.StateEntry

A metric entry scoped to a specific recorded app state.

## Declaration

```swift
struct StateEntry
```

## Discussion

Discussion StateEntry is only present when state reporting is enabled via init(enabledStateReportingDomains:). Access state entries through stateEntries. Each entry corresponds to one 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, scroll hitch time, app termination counts, signpost intervals, location activity time, and app runtime metrics.

## Topics

### State details

- [state](metrickit/metricreport/stateentry/state.md)

### Metric values

- [values](metrickit/metricreport/stateentry/values.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
