Class QueryHistoricTimeseriesEnergyPerPeriodRequest


public class QueryHistoricTimeseriesEnergyPerPeriodRequest extends JsonrpcRequest
Represents a JSON-RPC Request for 'queryHistoricTimeseriesEnergyPerPeriod'.

This Request is for use-cases where you want to get the energy for each period (with length 'resolution') per Channel, e.g. to visualize energy in a histogram chart. For each period the energy is calculated by subtracting first value of the period from the last value of the period.

 {
   "jsonrpc": "2.0",
   "id": "UUID",
   "method": "queryHistoricTimeseriesEnergyPerPeriod",
   "params": {
     "fromDate": YYYY-MM-DD,
     "toDate": YYYY-MM-DD,
     "channels": ChannelAddress[],
     "timezone": String,
     "resolution": {
       "value": Number,
       "unit": ChronoUnit
     }
 }