Skip to content

Implemented query to retrieve all image URIs

Fabian Herbert Margreiter requested to merge 20-implement-lambda-get_images into main

Implemented query to retrieve all image URIs for a given camera within a certain time derived from the target prediction time

Tested by manually creating image entity entries in the DynamoDB table:

  • Image 1 that should be returned:
    • PK: camera#camera_1
    • SK: image#1703157100
    • URI: camera_1/image_1_include
  • Image 2 that should be returned:
    • PK: camera#camera_1
    • SK: image#1703150100
    • URI: camera_1/image_2_include
  • Image that should not be returned, as it is too old
    • PK: camera#camera_1
    • SK: image#1703149900
    • URI: camera_1/image_3_ignore
  • Image that should not be returned, as it is from another camera
    • PK: camera#camera_2
    • SK: image#1703157100
    • URI: camera_2/image_4_ignore

Called Lambda with input: { "predictFor": 1703157200, "cameraId": "camera_1" }

Returned result: { "1703150100": "camera_1/image_2_include", "1703157100": "camera_1/image_1_include" }

Closes #20 (closed)

Merge request reports

Loading