-
Notifications
You must be signed in to change notification settings - Fork 351
Device attributes in webhook json #5879
Copy link
Copy link
Closed
Labels
c/application serverThis is related to the Application ServerThis is related to the Application Servercompat/apiThis could affect API compatibilityThis could affect API compatibilitygood first issueneeds/testingThis needs to be tested on stagingThis needs to be tested on staging
Milestone
Metadata
Metadata
Assignees
Labels
c/application serverThis is related to the Application ServerThis is related to the Application Servercompat/apiThis could affect API compatibilityThis could affect API compatibilitygood first issueneeds/testingThis needs to be tested on stagingThis needs to be tested on staging
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
I would like to see the device attributes which are set on TTS console to appear in the json I receive via the webhook. This would allow me to have a stateless lambda function process the webhook. Depending on the attributes the lambda can do different things with the data.
Current Situation
Device attributes are not included in the webhook json data. One needs to do an api call to TTS to obtain the device attributes.
Why do we need this? Who uses it, and when?
All device configuration can be moved to a single place: TTS. Depending on the configuration on TTS, a stateless middleware can process the data and send it on to a third party system.
Example:
A gps tracker need to be added to ArcGis. The tracker is added to TTS. A lambda funtion creates features on ArcGis. The configuration of the ArcGis api key, feature layer ID, and some other configurations need to be stored somewhere on a per device basis. Using the attributes on TTS would be ideal, as the same lambda function could then be used for any device or any ArcGis account.
Proposed Implementation
Add the device attributes to the webhook uplink (and other) json
Contributing
Code of Conduct