Hello, I have integrated GitLab into my Opensearch and I am trying to create alarms related to GitLab events. I want to push these alarms to the telegram, but values such as “Status” “Branch” are empty.As below
I created my alarms with per document monitor.
My message box is as follows
{
"text": "The following alerts have been triggered:\n{{#ctx.alerts}}\n Repository: {{#sample_documents}}{{_source.repository.git_http_url}}{{/sample_documents}}\n Branch: {{#sample_documents}}{{_source.ref}}{{/sample_documents}}\n Action: {{#sample_documents}}{{_source.object_kind}}{{/sample_documents}}\n User: {{#sample_documents}}{{_source.user.username}}{{/sample_documents}}\n Stage: {{#sample_documents}}{{_source.build_stage}}{{/sample_documents}}\n Status: {{#sample_documents}}{{_source.build_status}}{{/sample_documents}}\n-----------------\n{{/ctx.alerts}}"
}
Any ideas?