Class TimestampedDataNotification
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.TimestampedDataNotification
Represents a JSON-RPC Notification for timestamped data sent from Edge to
Backend.
{
"jsonrpc": "2.0",
"method": "timestampedData",
"params": {
[timestamp: epoch in milliseconds]: {
[channelAddress]: JsonElement
}
}
}
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
ConstructorDescriptionTimestampedDataNotification
(com.google.common.collect.TreeBasedTable<Long, String, com.google.gson.JsonElement> data) -
Method Summary
Modifier and TypeMethodDescriptionstatic TimestampedDataNotification
from
(JsonrpcNotification notification) Parses aJsonrpcNotification
to aTimestampedDataNotification
.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
-
TimestampedDataNotification
-
TimestampedDataNotification
public TimestampedDataNotification()
-
-
Method Details
-
from
public static TimestampedDataNotification from(JsonrpcNotification notification) throws OpenemsError.OpenemsNamedException Parses aJsonrpcNotification
to aTimestampedDataNotification
.- Parameters:
notification
- theJsonrpcNotification
- Returns:
- the
TimestampedDataNotification
- Throws:
OpenemsError.OpenemsNamedException
- on error
-