Patrick Ogenstad
01/24/2025, 2:25 PMautomation = AutomationCore(
name=AUTOMATION_NAME_RUN,
description="Trigger all configured webhooks on mutations",
enabled=True,
trigger=EventTrigger(
posture=Posture.Reactive,
expect={"mutated.node.*"},
within=timedelta(0),
match=ResourceSpecification(
{
"mutated.node.action": MutationAction.available_types(),
}
),
threshold=1,
),
actions=[
RunDeployment(
source="selected",
deployment_id=deployment_id_webhook_trigger,
parameters={
"event_type": "{{ event.resource['mutated.node.kind'] }}.{{ event.resource['mutated.node.action'] }}",
"event_data": "{{ event.payload['data'] }}",
},
job_variables={},
),
],
)
It seems like the data within the parameters are always converted to string types using some jinja template. Is it possible to instead send actual objects here so that the function receiving these actions can use those objects directly? Or would I have to parse them as a JSON string and convert them into an object if I wanted an object instead?