astarte-platform / astarte

Core Astarte Repository
https://docs.astarte-platform.org/
Apache License 2.0
236 stars 45 forks source link

Gghio/692/trigger name events #923

Closed shinnokdisengir closed 3 months ago

shinnokdisengir commented 3 months ago

astarte_trigger_engine: add trigger_name to http event

Relative to https://github.com/astarte-platform/astarte/issues/692

Currently, when a Trigger delivers an Event, the Event does not contain any information about the Trigger that generated it. This means that to distinguish between two triggers on the same interface, users have to use some out of band mechanism (e.g. using a different URL or adding a fixed query parameter).

No tests in this PR (there aren't tests for event data validation)