Class AggregatedDataNotification
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
io.openems.common.jsonrpc.base.JsonrpcNotification
io.openems.common.jsonrpc.notification.AbstractDataNotification
io.openems.common.jsonrpc.notification.AggregatedDataNotification
Represents a JSON-RPC Notification for aggregatedData data sent from Edge to
Backend.
{
"jsonrpc": "2.0",
"method": "aggregatedData",
"params": {
[timestamp: epoch in milliseconds]: {
[channelAddress]: JsonElement
}
}
}
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
ConstructorDescriptionAggregatedDataNotification
(com.google.common.collect.TreeBasedTable<Long, String, com.google.gson.JsonElement> data) -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregatedDataNotification
from
(JsonrpcNotification notification) Parses aJsonrpcNotification
to aAggregatedDataNotification
.Methods inherited from class io.openems.common.jsonrpc.notification.AbstractDataNotification
add, add, getData, getParams, parseParams
Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, from, toString
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
AggregatedDataNotification
-
AggregatedDataNotification
public AggregatedDataNotification()
-
-
Method Details
-
from
public static AggregatedDataNotification from(JsonrpcNotification notification) throws OpenemsError.OpenemsNamedException Parses aJsonrpcNotification
to aAggregatedDataNotification
.- Parameters:
notification
- theJsonrpcNotification
- Returns:
- the
AggregatedDataNotification
- Throws:
OpenemsError.OpenemsNamedException
- on error
-