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

# MetricManager.ReportedState

A recorded app state associated with a metric or diagnostic report entry.

```
struct ReportedState
```

## Discussion

`ReportedState` describes a single state that your app was in during a reporting interval. It carries the domain and label identifying the state, the duration the app spent in that state, and any stable context values your app recorded with the state.

Access reported states in metric reports through [`states`](/documentation/MetricKit/MetricReport/IntervalEntry/states) or [`state`](/documentation/MetricKit/MetricReport/StateEntry/state). Access them in diagnostic reports through [`states`](/documentation/MetricKit/DiagnosticReport/Environment-swift.struct/states).

## Topics

### State details

[`let domain: String`](/documentation/MetricKit/MetricManager/ReportedState/domain)

The StateReporting domain this state belongs to

[`let label: String`](/documentation/MetricKit/MetricManager/ReportedState/label)

The state label

[`let duration: Measurement<UnitDuration>`](/documentation/MetricKit/MetricManager/ReportedState/duration)

The duration when the state was active during performance data collection.

### Instance Properties

[`let stableMetadata: [String : ReportableMetadataValue]`](/documentation/MetricKit/MetricManager/ReportedState/stableMetadata)

Context dictionary containing state-specific information

## Relationships

### Conforms To

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

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

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

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

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

[`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)