Replies: 1 comment 1 reply
-
Custom formatting of the webhook payload is really only useful if you can prescribe an exact format that the receiver expects. If you have control over the receiver, it's generally preferable to leave the raw data dump in place and do processing on the receiving side. What is it you're trying to do with the webhook data? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble using jinja2 template to format the json for contextual data instead of posting the whole object. I am a beginner in programming so any help would be appreciated.
Ex. I want to know if a vm has been added to my environment but want only relevant information like the name, cluster, platform, and ip.
i can use {{ data[0]['display'] }} to get the (test-vm) from the array but how do I write the jinja2 template to show me the rest of the data that can be posted and be easy to read?
Beta Was this translation helpful? Give feedback.
All reactions