mirror of
https://github.com/coder/coder.git
synced 2026-06-06 06:28:20 +00:00
208ed1efd7
This PR aims to close https://github.com/coder/coder/issues/14913. It expands the golden files for the notifier to include the entire payload serialised as JSON.
31 lines
1.7 KiB
Plaintext
31 lines
1.7 KiB
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.1",
|
|
"notification_name": "Workspace Marked as Dormant",
|
|
"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": {
|
|
"dormancyHours": "24",
|
|
"initiator": "autobuild",
|
|
"name": "bobby-workspace",
|
|
"reason": "breached the template's threshold for inactivity",
|
|
"timeTilDormant": "24 hours"
|
|
},
|
|
"data": null
|
|
},
|
|
"title": "Workspace \"bobby-workspace\" marked as dormant",
|
|
"title_markdown": "Workspace \"bobby-workspace\" marked as dormant",
|
|
"body": "Hi Bobby,\n\nYour workspace bobby-workspace has been marked as dormant (https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) because of breached the template's threshold for inactivity.\nDormant workspaces are automatically deleted (https://coder.com/docs/templates/schedule#dormancy-auto-deletion-enterprise) after 24 hours of inactivity.\nTo prevent deletion, use your workspace with the link below.",
|
|
"body_markdown": "Hi Bobby,\n\nYour workspace **bobby-workspace** has been marked as [**dormant**](https://coder.com/docs/templates/schedule#dormancy-threshold-enterprise) because of breached the template's threshold for inactivity.\nDormant workspaces are [automatically deleted](https://coder.com/docs/templates/schedule#dormancy-auto-deletion-enterprise) after 24 hours of inactivity.\nTo prevent deletion, use your workspace with the link below."
|
|
} |