mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
fe24a7a4a8
This PR aimes to [fix this issue](https://github.com/coder/internal/issues/448) - The main idea is to remove greetings from templates stored in the DB - and instead push it into the template for require methods - for now SMTP.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.2",
|
|
"notification_name": "Workspace Out Of Disk",
|
|
"notification_template_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_email": "bobby@coder.com",
|
|
"user_name": "Bobby",
|
|
"user_username": "bobby",
|
|
"actions": [
|
|
{
|
|
"label": "View workspace",
|
|
"url": "http://test.com/@bobby/bobby-workspace"
|
|
}
|
|
],
|
|
"labels": {
|
|
"workspace": "bobby-workspace"
|
|
},
|
|
"data": {
|
|
"volumes": [
|
|
{
|
|
"path": "/home/coder",
|
|
"threshold": "90%"
|
|
}
|
|
]
|
|
},
|
|
"targets": null
|
|
},
|
|
"title": "Your workspace \"bobby-workspace\" is low on volume space",
|
|
"title_markdown": "Your workspace \"bobby-workspace\" is low on volume space",
|
|
"body": "Volume /home/coder is over 90% full in workspace bobby-workspace.",
|
|
"body_markdown": "Volume **`/home/coder`** is over 90% full in workspace **bobby-workspace**."
|
|
} |