oncall-engine/engine/common/jinja_templater
Matias Bordese 6a65ddd6e7
feat: add timestamp_to_datetime jinja template filter (#5303)
Related to https://github.com/grafana/support-escalations/issues/13670

Given a payload like this:

```
{  
    "Sometime": "1730893740"  
}
```

the following template expression:

`{{ payload.Sometime | int | timestamp_to_datetime }}`

will render as:

`2024-11-06 11:49:00`
2024-11-28 11:20:21 +00:00
..
__init__.py Support alert routing based on labels (#3778) 2024-01-30 13:07:19 -05:00
apply_jinja_template.py Support prescribed labels (#3848) 2024-02-20 14:42:51 +08:00
filters.py feat: add timestamp_to_datetime jinja template filter (#5303) 2024-11-28 11:20:21 +00:00
jinja_template_env.py feat: add timestamp_to_datetime jinja template filter (#5303) 2024-11-28 11:20:21 +00:00