Class QueryWithCurrentData
java.lang.Object
io.openems.backend.timedata.aggregatedinflux.QueryWithCurrentData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSortedMap
<ChannelAddress, com.google.gson.JsonElement> queryHistoricEnergy
(String edgeId, ZonedDateTime fromDate, ZonedDateTime toDate, Set<ChannelAddress> channels) SortedMap
<ZonedDateTime, SortedMap<ChannelAddress, com.google.gson.JsonElement>> queryHistoricEnergyPerPeriod
(String edgeId, ZonedDateTime fromDate, ZonedDateTime toDate, Set<ChannelAddress> channels, Resolution resolution, SortedMap<ZonedDateTime, SortedMap<ChannelAddress, com.google.gson.JsonElement>> rawExistingData)
-
Constructor Details
-
QueryWithCurrentData
public QueryWithCurrentData()
-
-
Method Details
-
queryHistoricEnergy
public SortedMap<ChannelAddress,com.google.gson.JsonElement> queryHistoricEnergy(String edgeId, ZonedDateTime fromDate, ZonedDateTime toDate, Set<ChannelAddress> channels) throws OpenemsError.OpenemsNamedException - Parameters:
edgeId
- the id of the edgefromDate
- the starting datetoDate
- the stop datechannels
- the channels- Returns:
- the values
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
queryHistoricEnergyPerPeriod
public SortedMap<ZonedDateTime,SortedMap<ChannelAddress, queryHistoricEnergyPerPeriodcom.google.gson.JsonElement>> (String edgeId, ZonedDateTime fromDate, ZonedDateTime toDate, Set<ChannelAddress> channels, Resolution resolution, SortedMap<ZonedDateTime, SortedMap<ChannelAddress, throws OpenemsError.OpenemsNamedExceptioncom.google.gson.JsonElement>> rawExistingData) - Parameters:
edgeId
- the id of the edgefromDate
- the starting datetoDate
- the stop datechannels
- the channelsresolution
- the resolutionrawExistingData
- the already existing date which should be filled up with the current data- Returns:
- the values
- Throws:
OpenemsError.OpenemsNamedException
- on error
-