---
title: dataByTariffPeak
framework: energykit
role: symbol
role_heading: Instance Property
path: energykit/electricityinsightrecord/databytariffpeak
---

# dataByTariffPeak

The electrical energy consumed or generated, or the runtime duration split out by tariff peaks, if available.

## Declaration

```swift
var dataByTariffPeak: ElectricityInsightRecord<Measure>.TariffPeak?
```

## Mentioned in

Providing charging history for electric vehicles

## Discussion

Discussion The tariff peaks are the times of day when electricity prices are highest.

## See Also

### Getting the tariff peak data

- [ElectricityInsightRecord.TariffPeak](energykit/electricityinsightrecord/tariffpeak.md)
