Interface DeviceTelemetryAPI

All Known Implementing Classes:
DeviceTelemetryRestController

public interface DeviceTelemetryAPI
  • 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 DeviceTelemetryDTO wrapped in an EnduranceTrioResponse