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

# TotalDiskSpaceCapacityMetric

A metric that measures disk capacity and usage on the device.

```
struct TotalDiskSpaceCapacityMetric
```

## Discussion

This metric corresponds to the [`MetricResult.totalDiskSpaceCapacity(_:)`](/documentation/MetricKit/MetricResult/totalDiskSpaceCapacity(_:)) case. It appears only in [`intervalEntries`](/documentation/MetricKit/MetricReport/intervalEntries) and is not included in state entries.

This value is a daily snapshot, not a cumulative sum over the reporting interval.

## Topics

### Measurements

[`let capacity: Measurement<UnitInformationStorage>`](/documentation/MetricKit/TotalDiskSpaceCapacityMetric/capacity)

The total disk space capacity of the current device.

[`let spaceUsed: Measurement<UnitInformationStorage>`](/documentation/MetricKit/TotalDiskSpaceCapacityMetric/spaceUsed)

The total amount of used disk storage on the current device.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)