links-ads / ermes-backend-netcore

0 stars 0 forks source link

DSS notifications #144

Closed links-ads-admin closed 1 year ago

links-ads-admin commented 1 year ago

Original report by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


Add the management for DSS notifications.

Every message coming from DSS must be seen as an alert suggestion that follows CAP standard (http://docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2-os.html).

Alerts cannot be updated, but can they be linked with previously generated alerts.

Example of routing key: notification.sem.astro

Basic structure of a notification:

{
  "identifier": "identifier",
  "sender": "DSS",
  "sent": "2023-06-15T15:03:34+03:00",
  "status": "Actual",
  "msgType": "Notification",
  "source": "DSS",
  "scope": "Restricted",
  "region": "Catalonia",
  "areaID": "2",
  "restriction": "Citizen",
  "organizationIds": [],
  "code": [],
  "info": [
    {
      "language": "en",
      "category": "Met",
      "event": "Probability of fire",
      "expires": "2023-06-16T15:03:34+03:00",
      "description": "Estimated alert level YELLOW.\nThe following prescriptions apply:\nDo not throw away cigarette butts or matches that are still lit.\nDo not light fires in the woods, except in designated areas.\nDo not park our cars over grass or dry leaves.\nDo not abandon litter in the woods.\nDo not burn stubble or agricultural residues near the forest or uncultivated areas.\nIn case of a forest fire, we immediately notify the appropriate authorities at 112.\nDo not stop to watch the fire along the road or in areas above the fire or downwind.\nLet's facilitate the intervention of emergency vehicles.\nIf we are in the fire, let's secure an escape route to the already burned area.\nDo not stop the vehicle in open areas free of vegetation with lights on, close windows and vents.\nAll citizens can defend the territory in the event of fire by promptly reporting the first signs of a possible forest fire to the single emergency number 112.\n We suggest to create a communication to citizens in the reference area: 2",
      "area": [{ "areaDesc": "areaDesc", "polygon": "" }]
    }
  ]
}

links-ads-admin commented 1 year ago

Original comment by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


NotificationReceived and Alerts added ref #144

links-ads-admin commented 1 year ago

Original comment by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


alertDto update ref #144

links-ads-admin commented 1 year ago

Original comment by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


centroid added to AlertDto ref #144

links-ads-admin commented 1 year ago

Original comment by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


rel note update ref #144

links-ads-admin commented 1 year ago

Original comment by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


alertDto update ref #144

links-ads-admin commented 1 year ago

Original comment by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


type prop added to communiaction and mapRequest dtos ref #144

links-ads-admin commented 1 year ago

Original comment by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


fix mapRequestDto ref #144

links-ads-admin commented 1 year ago

Original changes by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).


links-ads-admin commented 1 year ago

Original changes by Luca Bruno (Bitbucket: lukkia, GitHub: lucabruno91).