---
title: MetricManager.ReportedState
framework: metrickit
role: symbol
role_heading: Structure
path: metrickit/metricmanager/reportedstate
---

# MetricManager.ReportedState

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

## Declaration

```swift
struct ReportedState
```

## Discussion

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 or state. Access them in diagnostic reports through states.

## Topics

### State details

- [domain](metrickit/metricmanager/reportedstate/domain.md)
- [label](metrickit/metricmanager/reportedstate/label.md)
- [duration](metrickit/metricmanager/reportedstate/duration.md)

### Instance Properties

- [stableMetadata](metrickit/metricmanager/reportedstate/stablemetadata.md)

## Relationships

### Conforms To

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