<!--
{
  "availability" : [
    "iOS: 12.2.0 -",
    "iPadOS: 12.2.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKMetadataKeyHeartRateEventThreshold",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKMetadataKeyHeartRateEventThreshold"
  },
  "title" : "HKMetadataKeyHeartRateEventThreshold"
}
-->

# HKMetadataKeyHeartRateEventThreshold

A key that records the threshold of high or low heart rate events in beats per minute.

```
let HKMetadataKeyHeartRateEventThreshold: String
```

## Discussion

The value for this key contains an [`HKQuantity`](/documentation/HealthKit/HKQuantity) object with count/time units, described in [`HKUnit`](/documentation/HealthKit/HKUnit). This metadata key is used by [`highHeartRateEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/highHeartRateEvent) and [`lowHeartRateEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/lowHeartRateEvent) category samples.

---

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)