Webhook config #18166
Unanswered
ivanmartinezjurjo
asked this question in
Q&A
Webhook config
#18166
Replies: 1 comment
-
Here is the list: https://netboxlabs.com/docs/netbox/en/stable/integrations/webhooks/#available-context There's no value called "changed_fields". But there are |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
{
"chat_id": "",
"message_thread_id": "",
"text": "🚨 Updated virtual machine\n
\nName: 🏷️ {{ data.name }}
\nStatus: {% if data.status.label == 'Active' %}🟢 {{ data.status.label }}{% else %}🔴 {{ data.status.label }}{% endif %}
\nCluster: 🖧 {{ data.cluster.name }}
\nIP: 🌐 {{ data.primary_ip4.address }}
\nOS: 💻 {{ data.platform.name | default('No especificado') }}
\n🔄 Modified fields: ✏️ {{ changed_fields | join(', ') | default('No hay cambios detectados') }}",
"parse_mode": "Markdown"
}
I made this for a telegram alert and everything its ok except the field "Modified fields" that always pick the default response, y tried using previous.data to compare other fields but never it never takes the changes.
If somebody knows if maytbe that isnt the netbox standard variable or where i can get a list of them, i will truly appreciate it, i'm a bit stucked here.
Beta Was this translation helpful? Give feedback.
All reactions