Skip to content

Commit

Permalink
feat: subscription to UserProfile entity for FluidEstimate creation o… (
Browse files Browse the repository at this point in the history
#27)

* feat: subscription to UserProfile entity for FluidEstimate creation or update

* changing id and endpoint to more meaningful values
  • Loading branch information
ranim-n authored Oct 14, 2024
1 parent 1fad782 commit e174e68
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions ngsild-payloads/userProfileFluidEstimateSubscription.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"id": "urn:ngsi-ld:Subscription:UserProfileFluidEstimate",
"type": "Subscription",
"entities": [
{
"type": "UserProfile"
}
],
"watchedAttributes": [
"housingType",
"constructionYear",
"floor",
"occupantsNumber",
"area",
"outsideFacingWalls",
"heating",
"hotWater",
"coldWater",
"hotWaterEquipment",
"equipments",
"individualInsulationWork",
"hasInstalledVentilation",
"hasReplacedHeater"
],
"notificationTrigger": [
"entityCreated",
"entityUpdated"
],
"notification": {
"format": "keyValues",
"endpoint": {
"uri": "http://localhost:8080/fluidConsumptionEstimateListener",
"accept": "application/json"
}
}
}

0 comments on commit e174e68

Please sign in to comment.