100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Expose `queryDatapoints` in the `AbstractDatapointService` for ease of use (#2674)
Panos Kalogeropoulos5219c9576ca5
diff --git a/agent/src/main/java/org/openremote/agent/protocol/ProtocolPredictedDatapointService.java b/agent/src/main/java/org/openremote/agent/protocol/ProtocolPredictedDatapointService.javaindex a0f478a4b..2371e3531 100644--- a/agent/src/main/java/org/openremote/agent/protocol/ProtocolPredictedDatapointService.java+++ b/agent/src/main/java/org/openremote/agent/protocol/ProtocolPredictedDatapointService.java@@ -22,6 +22,7 @@ package org.openremote.agent.protocol;import org.openremote.model.ContainerService;import org.openremote.model.attribute.AttributeRef;import org.openremote.model.datapoint.ValueDatapoint;+import org.openremote.model.datapoint.query.AssetDatapointQuery;import java.time.Instant;import java.time.LocalDateTime;@@ -35,6 +36,8 @@ public interface ProtocolPredictedDatapointService extends ContainerService {void updateValues(String assetId, String attributeName, List<ValueDatapoint<?>> valuesAndTimestamps);+ List<ValueDatapoint<?>> queryDatapoints(String assetId, String attributeName, AssetDatapointQuery datapointQuery);+void purgeValues(String assetId, String attributeName);void purgeValuesBefore(String assetId, String attributeName, Instant timestamp);