<!--
{
  "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/IntervalEntry",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "s:9MetricKit0A6ReportV13IntervalEntryV"
  },
  "title" : "MetricReport.IntervalEntry"
}
-->

# MetricReport.IntervalEntry

A metric entry that covers a specific time interval.

```
struct IntervalEntry
```

## Discussion

`IntervalEntry` contains all metric values for a given time interval. Access it through [`intervalEntries`](/documentation/MetricKit/MetricReport/intervalEntries).

Use the <doc://com.apple.documentation/documentation/Swift/Array/fullDayEntry> convenience property on the collection to retrieve the entry with the full 24-hour aggregate:

```swift
let entry = report.intervalEntries.fullDayEntry
for result in entry.values {
    switch result {
    case .cpuTime(let metric): process(metric)
    @unknown default: break
    }
}
```

When you enable state reporting, `intervalEntries` contains shorter sub-interval entries in addition to the full-day entry.

Each `IntervalEntry` provides a `duration` but no start timestamp, so you can’t associate an entry with a specific time of day. To determine when the overall reporting period occurred, use `timeRange` on the parent [`MetricReport`](/documentation/MetricKit/MetricReport).

## Topics

### Interval details

[`let duration: Measurement<UnitDuration>`](/documentation/MetricKit/MetricReport/IntervalEntry/duration)

The duration of this collection interval.

[`let states: [MetricManager.ReportedState]`](/documentation/MetricKit/MetricReport/IntervalEntry/states)

All states that were active during this collection interval.

### Metric values

[`let values: [MetricResult]`](/documentation/MetricKit/MetricReport/IntervalEntry/values)

The metric values for this entry.

## Relationships

### Conforms To

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

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

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

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

---

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)