5G-ERA / middleware

Middleware for orchestration and lifecycle management of the could-native robotic applications
Apache License 2.0
8 stars 3 forks source link

feat: endpoint exposed for changing online status of locations #222

Closed appmdev closed 10 months ago

appmdev commented 10 months ago

Description

An endpoind was created in Central API that allow to change isOnline status and DateTime of change of a location (Edge/Cloud) which will be used by Heartbeat. Alongside a worker job was created using quartz to check every minute if each locations was uptaded with "isOnline status = true" in less then 3 minutes otherwise it changes "isOnline status = false";

Fixes # allow to change isOnline status of location(edge/cloud); monitor online status of locations(edge/cloud)

Type of change

What has been changed?

How Has This Been Tested?

The test checked if for givven correct id and location, would change isOnline status of location, alongside with wrong inputs. Futhe more, it checked if worker job would change isOnline status to false of locations which was online and not updated for more then three minutes.

Checklist: