Interface DeviceTelemetryAPI
- All Known Implementing Classes:
DeviceTelemetryRestController
public interface DeviceTelemetryAPI
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<@NonNull EnduranceTrioResponse<List<DeviceTelemetryDTO>>> Gets the most recent telemetry data record for each device present in the database.org.springframework.http.ResponseEntity<@NonNull EnduranceTrioResponse<DeviceTelemetryDTO>> save(DeviceTelemetryDTO deviceTelemetryDTO) Saves the provided telemetry data, using the authenticated user as the owner account
-
Method Details
-
getMostRecentRecordForEachDevice
org.springframework.http.ResponseEntity<@NonNull EnduranceTrioResponse<List<DeviceTelemetryDTO>>> getMostRecentRecordForEachDevice()Gets the most recent telemetry data record for each device present in the database.- Returns:
- list of telemetry data records containing the latest record for each device
-
save
org.springframework.http.ResponseEntity<@NonNull EnduranceTrioResponse<DeviceTelemetryDTO>> save(DeviceTelemetryDTO deviceTelemetryDTO) Saves the provided telemetry data, using the authenticated user as the owner account- Parameters:
deviceTelemetryDTO- the device telemetry data to be saved- Returns:
- the saved
DeviceTelemetryDTOwrapped in anEnduranceTrioResponse
-