<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "EnergyKit",
  "identifier" : "/documentation/EnergyKit/ElectricityInsightRecord/TariffPeak",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "EnergyKit"
    ],
    "preciseIdentifier" : "s:9EnergyKit24ElectricityInsightRecordV10TariffPeakV"
  },
  "title" : "ElectricityInsightRecord.TariffPeak"
}
-->

# ElectricityInsightRecord.TariffPeak

A struct describing energy tariff peaks or duration data, if available.

```
struct TariffPeak
```

## Topics

### Initializing the peak energy data

[`init(superOffPeak: Measure?, offPeak: Measure?, partialPeak: Measure?, onPeak: Measure?, criticalPeak: Measure?, unknown: Measure?)`](/documentation/EnergyKit/ElectricityInsightRecord/TariffPeak/init(superOffPeak:offPeak:partialPeak:onPeak:criticalPeak:unknown:))

Creates an instance of the energy peak data.

### Getting the peak energy data

[`var criticalPeak: Measure?`](/documentation/EnergyKit/ElectricityInsightRecord/TariffPeak/criticalPeak)

The duration of energy or runtime data during critical peak hours.

[`var offPeak: Measure?`](/documentation/EnergyKit/ElectricityInsightRecord/TariffPeak/offPeak)

The duration of energy or runtime data during off-peak hours.

[`var onPeak: Measure?`](/documentation/EnergyKit/ElectricityInsightRecord/TariffPeak/onPeak)

The duration of energy or runtime data during peak hours.

[`var partialPeak: Measure?`](/documentation/EnergyKit/ElectricityInsightRecord/TariffPeak/partialPeak)

The duration of energy or runtime data during partial peak hours.

[`var superOffPeak: Measure?`](/documentation/EnergyKit/ElectricityInsightRecord/TariffPeak/superOffPeak)

The duration of energy or runtime data during super off-peak hours.

[`var unknown: Measure?`](/documentation/EnergyKit/ElectricityInsightRecord/TariffPeak/unknown)

The unknown duration of energy or runtime data.



---

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)