Forum Discussion
Trigger Execute Fabric Item Notebook
Logging and tracking of alaram events for post-analysis and system improvements
I'm working with Microsoft Fabric's Data Activator to monitor real-time device temperatures. My goal is to implement a solution that does the following whenever a temperature exceeds a predefined threshold:
Trigger an Alert:
Send an email notification to the relevant stakeholder when the threshold is crossed.Log Alarm Data:
Write the event into two separate Lakehouse tables:alarm_event_log: stores the actual telemetry data that caused the alarm.
alarm_metadata: stores metadata about the alarm (timestamp, severity etc.).
Execute Logging via Notebook:
Use the "Action" section of the Data Activator rule to trigger a Fabric notebook that logs this data into the Lakehouse. (in action i am using fabric item which is notebook)
What I need help with:
How can I retrieve the data from Data Activator in the triggered notebook?
Specifically, how do we access the relevant data (e.g., device ID, temperature reading, time of alert) that triggered the rule, and then pass or retrieve it within the notebook to log it properly?- so like is there any way to retrieve that particular record from activator which caused the alert, if yes then how to implement it, I am planning to write the pyspark script for it, but little confuse about the logic
What are the best practices or recommended methods for passing parameters from Data Activator to a Fabric notebook?
Has anyone implemented a similar pattern?
Any sample implementation or guidance on structuring this kind of workflow for reliability and scalability would be very helpful.
Thanks in advance for your support!