You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The event payload provided to each reaction function contains structured information about the event source, details, and any additional context. This allows reaction functions to respond precisely to specific events.
276
-
277
-
```python
278
-
{
279
-
"event_source": "Specifies the model that generated the event (e.g., `monitor`, `issue`, `alert`)."
280
-
"event_source_id": "The unique identifier of the object that triggered the event (e.g., `monitor_id`, `issue_id`)."
281
-
"event_source_monitor_id": "The monitor ID associated with the object that generated the event."
282
-
"event_name": "Name of the event, such as `alert_created` or `issue_solved`.",
283
-
"event_data": {
284
-
"Object with detailed information about the event source."
285
-
},
286
-
"extra_payload": "Additional information that may be sent along with the event, providing further context.",
287
-
}
288
-
```
280
+
-`event_source`: Specifies the model that generated the event (e.g., `monitor`, `issue`, `alert`).
281
+
-`event_source_id`: The unique identifier of the object that triggered the event (e.g., `monitor_id`, `issue_id`).
282
+
-`event_source_monitor_id`: The monitor ID associated with the object that generated the event.
283
+
-`event_name`: Name of the event, such as `alert_created` or `issue_solved`.
284
+
-`event_data`: Dictionary with detailed information about the event source.
285
+
-`extra_payload`: Additional information that may be sent along with the event, providing further context.
289
286
290
287
Reaction functions can be assigned to specific events when creating an instance of `ReactionOptions`. This configuration ensures that designated functions are triggered whenever specified events occur.
0 commit comments