-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from TeskaLabs/Enhancement/Jinjaservice-suppor…
…t-now-variable Enhancement: Jinja service support's now global namespace
- Loading branch information
Showing
4 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SUBJECT: LogMan.io detected anomaly for {% if dimension %}'{{ dimension }}'{% endif %} | ||
|
||
## Anomaly detected | ||
|
||
Please find more information below: | ||
|
||
{% if name %} | ||
Event reason: ***{{ name }}*** | ||
{% endif %} | ||
|
||
{% if tenant %} | ||
Tenant: ***{{ tenant }}*** | ||
{% endif %} | ||
|
||
{% if dimension %} | ||
User anomaly occurred for: ***{{ dimension }}*** {% endif %}{% if now %} | ||
at ***{{ now() | datetimeformat('%d-%m-%Y %H:%M') }} UTC***{% endif %} | ||
|
||
For more information regarding this anomaly, please see this **[event]({{public_url}}/?tenant={{tenant}}#/discover/lmio-{{tenant}}-events-complex?aggby=day&filter=&ts=now-14d&te=now&refresh=off&size=40&selectedfields=%255B%255D&groupby=&filteredfields=%255B%257B%2522lmio.alert.dimension%2522%253A%2522{{ dimension }}%2522%257D%255D)** in your **[TeskaLabs LogMan.io]({{ public_url }}/?tenant={{ tenant }}#/discover)** |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
"to": ["[email protected]"], | ||
"body": { | ||
"template": "/Templates/Email/message.md", | ||
"wrapper": "/Templates/Email/body_wrapper.html", | ||
"wrapper": "/Templates/Email/Markdown wrapper.html", | ||
"params":{ | ||
"name":"Iris" | ||
} | ||
|
@@ -47,7 +47,7 @@ | |
"to": ["[email protected]"], | ||
"body": { | ||
"template": "/Templates/Email/message.md", | ||
"wrapper": "/Templates/Emails/body_wrapper.html", | ||
"wrapper": "/Templates/Emails/Markdown wrapper.html", | ||
"params":{ | ||
"name":"Iris" | ||
} | ||
|
@@ -63,15 +63,31 @@ | |
{ | ||
"to": ["[email protected]"], | ||
"body": { | ||
"template": "/Templates/Email/message.md", | ||
"wrapper": "/Templates/Email/body_wrapper.md", | ||
"template": "/Templates/Emails/message.md", | ||
"wrapper": "/Templates/Email/Markdown wrapper.md", | ||
"params":{ | ||
"name":"Iris" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## TSM001E: Send an email using Markdown template from a template that uses now from template global. | ||
|
||
`PUT /send_mail` | ||
|
||
``` | ||
{ | ||
"to": ["[email protected]"], | ||
"body": { | ||
"template": "/Templates/Email/render_now_variable.md", | ||
"params":{ | ||
"name":"Iris", | ||
"tenant":"Default", | ||
} | ||
} | ||
} | ||
``` | ||
|
||
|
||
## TSM002: Send an email using HTML template | ||
|
@@ -1411,11 +1427,11 @@ EXPECTED RESPONSE: | |
{"type":"email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Email/message.md", "params":{"name": "I am testing a template", "error": "None" }}} | ||
{"type":"email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Email/message.md", "wrapper":"/Templates/Wrapper/markdown_wrapper.md", "params":{"name": "I am testing a template", "error": "None" }}} | ||
{"type":"email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Email/message.md", "wrapper":"/Templates/Wrapper/Markdown wrapper.md", "params":{"name": "I am testing a template", "error": "None" }}} | ||
{"type": "email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Email/message.md", "wrapper":"/Templates/Wrapper/markdown_wrapper.html", "params":{"name": "I am testing a template", "error": "None" }}} | ||
{"type": "email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Email/message.md", "wrapper":"/Templates/Wrapper/Markdown wrapper.html", "params":{"name": "I am testing a template", "error": "None" }}} | ||
{"type": "email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Email/message.md", "wrapper":"/Templates/Wrappers/markdown_wrapper.html", "params":{"name": "I am testing a template", "error": "None" }}} | ||
{"type": "email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Email/message.md", "wrapper":"/Templates/Wrappers/Markdown wrapper.html", "params":{"name": "I am testing a template", "error": "None" }}} | ||
'Missing from' | ||
|