From a6b24e373d934e47e382430e11b2fa42280b39f0 Mon Sep 17 00:00:00 2001 From: rainzm Date: Fri, 15 Jan 2021 18:09:52 +0800 Subject: [PATCH] feat(notify): add local template --- .../local-templates/content@cn/COMMON.tmpl | 6 ++ .../local-templates/content@cn/CREATE.tmpl | 64 +++++++++++++++++++ .../content@cn/EXPIRED_RELEASE.tmpl | 6 ++ .../content@cn/SCALINGPOLICY_EXECUTE.tmpl | 2 + .../content@cn/SCHEDULEDTASK_EXECUTE.tmpl | 2 + .../content@cn/SNAPSHOTPOLICY_EXECUTE.tmpl | 2 + .../local-templates/content@cn/UPDATE.tmpl | 14 ++++ .../local-templates/content@en/COMMON.tmpl | 2 + .../local-templates/content@en/CREATE.tmpl | 54 ++++++++++++++++ .../content@en/EXPIRED_RELEASE.tmpl | 2 + .../content@en/SCALINGPOLICY_EXECUTE.tmpl | 2 + .../content@en/SCHEDULEDTASK_EXECUTE.tmpl | 2 + .../content@en/SNAPSHOTPOLICY_EXECUTE.tmpl | 2 + .../local-templates/content@en/UPDATE.tmpl | 10 +++ .../local-templates/title@cn/COMMON.tmpl | 5 ++ .../local-templates/title@cn/CREATE.tmpl | 5 ++ .../title@cn/EXPIRED_RELEASE.tmpl | 3 + .../title@cn/SCALINGPOLICY_EXECUTE.tmpl | 2 + .../title@cn/SCHEDULEDTASK_EXECUTE.tmpl | 2 + .../title@cn/SNAPSHOTPOLICY_EXECUTE.tmpl | 2 + .../local-templates/title@cn/UPDATE.tmpl | 3 + .../local-templates/title@en/COMMON.tmpl | 2 + .../local-templates/title@en/CREATE.tmpl | 3 + .../title@en/EXPIRED_RELEASE.tmpl | 2 + .../title@en/SCALINGPOLICY_EXECUTE.tmpl | 2 + .../title@en/SCHEDULEDTASK_EXECUTE.tmpl | 2 + .../title@en/SNAPSHOTPOLICY_EXECUTE.tmpl | 2 + .../local-templates/title@en/UPDATE.tmpl | 2 + 28 files changed, 207 insertions(+) create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@cn/COMMON.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@cn/CREATE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@cn/EXPIRED_RELEASE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@cn/SCALINGPOLICY_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@cn/SCHEDULEDTASK_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@cn/SNAPSHOTPOLICY_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@cn/UPDATE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@en/COMMON.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@en/CREATE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@en/EXPIRED_RELEASE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@en/SCALINGPOLICY_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@en/SCHEDULEDTASK_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@en/SNAPSHOTPOLICY_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/content@en/UPDATE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@cn/COMMON.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@cn/CREATE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@cn/EXPIRED_RELEASE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@cn/SCALINGPOLICY_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@cn/SCHEDULEDTASK_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@cn/SNAPSHOTPOLICY_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@cn/UPDATE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@en/COMMON.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@en/CREATE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@en/EXPIRED_RELEASE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@en/SCALINGPOLICY_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@en/SCHEDULEDTASK_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@en/SNAPSHOTPOLICY_EXECUTE.tmpl create mode 100644 build/notify/root/opt/yunion/share/local-templates/title@en/UPDATE.tmpl diff --git a/build/notify/root/opt/yunion/share/local-templates/content@cn/COMMON.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@cn/COMMON.tmpl new file mode 100644 index 0000000000..7d89030977 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@cn/COMMON.tmpl @@ -0,0 +1,6 @@ +{{- $d := .resource_details -}} +您在{{ $d.project }}项目的 +{{- if $d.brand -}} +{{ $d.brand }}平台 +{{- end -}} +{{ .resource_type_display }}{{ $d.name }}已经成功{{ .action_display }} diff --git a/build/notify/root/opt/yunion/share/local-templates/content@cn/CREATE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@cn/CREATE.tmpl new file mode 100644 index 0000000000..3e387a6430 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@cn/CREATE.tmpl @@ -0,0 +1,64 @@ +{{- $d := .resource_details }} +{{- $consoleServiceType := list "loadbalancer" "dbinstance" "elasticcache" -}} +您在{{ $d.project }}项目的 +{{- if $d.brand -}} +{{ $d.brand }}平台 +{{- end -}} +{{ .resource_type_display }}{{ $d.name }}已经创建成功 +{{- if $d.private_dns -}} +,内网地址为{{ $d.private_dns }}:{{ $d.private_connect_port }} +{{- end -}} + +{{- if $d.public_dns -}} +,外网地址为{{ $d.public_dns }}:{{ $d.public_connect_port }} +{{- end -}} + +{{- if and $d.address_type $d.address -}} +,服务地址为{{ $d.address_type }}{{ $d.address }} +{{- end -}} + +{{- if $d.ips -}} +,IP地址为{{ $d.ips }} +{{- end -}} + +{{- if and $d.guest_ip_start $d.guest_ip_end -}} +,IP范围为{{ $d.guest_ip_start }}-{{ $d.guest_ip_end }} +{{- end -}} + +{{- if $d.ip_addr -}} +,IP地址为{{ $d.ip_addr }} +{{- end -}} + +{{- if $d.account -}} +,初始帐号为{{ $d.account }} +{{- end -}} + +{{- if $d.password -}} +,初始密码为{{ $d.password }} +{{- end -}} + +{{- if $d.keypair -}} +,访问ssh密钥为{{ $d.keypair }} +{{- end -}} + +{{- if $d.common_name -}} +,证书域名为{{ $d.common_name }} +{{- end -}} + +{{- if $d.not_after -}} +,过期时间为{{ $d.not_after }} +{{- end -}} + +{{- if eq .resource_type "server" -}} +,请使用 +{{- if $d.windows -}} +远程桌面连接器(RDC) +{{- else -}} +SSH +{{- end -}} +或控制面板控制台访问虚拟机。 +{{- end -}} + +{{- if has .resource_type $consoleServiceType -}} +,更多信息请前往控制台查看。 +{{- end -}} diff --git a/build/notify/root/opt/yunion/share/local-templates/content@cn/EXPIRED_RELEASE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@cn/EXPIRED_RELEASE.tmpl new file mode 100644 index 0000000000..9eae642ba6 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@cn/EXPIRED_RELEASE.tmpl @@ -0,0 +1,6 @@ +{{- $d := .resource_details -}} +您在{{ $d.project }}项目的 +{{- if $d.brand -}} +{{ $d.brand }}平台 +{{- end -}} +{{ .resource_type_display }}{{ $d.name }}还有{{ .advance_days }}天就要到期释放,如需续期使用,请尽快前往控制台处理 diff --git a/build/notify/root/opt/yunion/share/local-templates/content@cn/SCALINGPOLICY_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@cn/SCALINGPOLICY_EXECUTE.tmpl new file mode 100644 index 0000000000..336b739b70 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@cn/SCALINGPOLICY_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +您在{{ $d.project }}项目的弹性伸缩组{{ $d.scaling_group }}中的{{ $d.trigger_type_display }}类型伸缩策略{{ $d.name }}满足触发条件,成功{{ $d.action_display }}{{ $d.number }}{{ $d.unit_display }}实例 diff --git a/build/notify/root/opt/yunion/share/local-templates/content@cn/SCHEDULEDTASK_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@cn/SCHEDULEDTASK_EXECUTE.tmpl new file mode 100644 index 0000000000..ea721d1f30 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@cn/SCHEDULEDTASK_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +您在{{ $d.project }}项目的定时任务执行成功 diff --git a/build/notify/root/opt/yunion/share/local-templates/content@cn/SNAPSHOTPOLICY_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@cn/SNAPSHOTPOLICY_EXECUTE.tmpl new file mode 100644 index 0000000000..344ff8e30a --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@cn/SNAPSHOTPOLICY_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +您在{{ $d.project }}项目的自动快照策略{{ $d.name }}为硬盘{{ $d.disk }}创建快照成功 diff --git a/build/notify/root/opt/yunion/share/local-templates/content@cn/UPDATE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@cn/UPDATE.tmpl new file mode 100644 index 0000000000..733d15680c --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@cn/UPDATE.tmpl @@ -0,0 +1,14 @@ +{{- $d := .resource_details -}} +您在{{ $d.project }}项目的 +{{- if $d.brand -}} +{{ $d.brand }}平台 +{{- end -}} +{{ .resource_type_display }}{{ $d.name }}已经{{ .action_display }}成功 +{{- if $d.account -}} +,帐号为{{ $d.account }} +{{- end -}} + +{{- if $d.password -}} +,密码为{{ $d.password }} +{{- end -}} +,更多信息请前往控制台进行查看 diff --git a/build/notify/root/opt/yunion/share/local-templates/content@en/COMMON.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@en/COMMON.tmpl new file mode 100644 index 0000000000..4bb31b87ba --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@en/COMMON.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type_display }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} has been {{ .action_display }} successfully diff --git a/build/notify/root/opt/yunion/share/local-templates/content@en/CREATE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@en/CREATE.tmpl new file mode 100644 index 0000000000..77fec21237 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@en/CREATE.tmpl @@ -0,0 +1,54 @@ +{{- $d := .resource_details }} +{{- $consoleServiceType := list "loadbalancer" "dbinstance" "elasticcache" -}} +Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type_display }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} has been created successfully +{{- if $d.private_dns -}} +, the intranet address is {{ $d.private_dns }}:{{ $d.private_connect_port }} +{{- end -}} + +{{- if $d.public_dns -}} +, the internet address is {{ $d.public_dns }}:{{ $d.public_connect_port }} +{{- end -}} + +{{- if and $d.address_type $d.address -}} +, the service address is {{ $d.address_type }}{{ $d.address }} +{{- end -}} + +{{- if $d.ips -}} +, the IP address is {{ $d.ips }} +{{- end -}} + +{{- if and $d.guest_ip_start $d.guest_ip_end -}} +, the IP range is {{ $d.guest_ip_start }}-{{ $d.guest_ip_end }} +{{- end -}} + +{{- if $d.ip_addr -}} +, the IP address is {{ $d.ip_addr }} +{{- end -}} + +{{- if $d.account -}} +, the initial account is {{ $d.account }} +{{- end -}} + +{{- if $d.password -}} +, the initial password is {{ $d.password }} +{{- end -}} + +{{- if $d.keypair -}} +, the access ssh key is {{ $d.keypair }} +{{- end -}} + +{{- if $d.common_name -}} +, the certificate domain name is {{ $d.common_name }} +{{- end -}} + +{{- if $d.not_after -}} +, the expiration is {{ $d.not_after }} +{{- end -}} + +{{- if eq .resource_type "server" -}} +, and please use {{ if $d.windows -}} Remote Desktop Connector (RDC) {{ else -}} SSH {{ end -}} or the control panel console to access the VM. +{{- end -}} + +{{- if has .resource_type $consoleServiceType -}} +. For more information, please go to the console to view +{{- end -}} diff --git a/build/notify/root/opt/yunion/share/local-templates/content@en/EXPIRED_RELEASE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@en/EXPIRED_RELEASE.tmpl new file mode 100644 index 0000000000..04c84d7298 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@en/EXPIRED_RELEASE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} will expire and be released in {{ .advance_days }} days. If you need to renew, please go to the console as soon as possible diff --git a/build/notify/root/opt/yunion/share/local-templates/content@en/SCALINGPOLICY_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@en/SCALINGPOLICY_EXECUTE.tmpl new file mode 100644 index 0000000000..8de0cfd055 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@en/SCALINGPOLICY_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The {{ $d.trigger_type_display }} type scaling policy {{ $d.name }} in the scaling group {{ $d.scaling_group }} of the {{ $d.project }} project satisfies the trigger conditions, and {{ $d.action_display }} {{ $d.number }}{{ $d.unit_display }} instances successfully diff --git a/build/notify/root/opt/yunion/share/local-templates/content@en/SCHEDULEDTASK_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@en/SCHEDULEDTASK_EXECUTE.tmpl new file mode 100644 index 0000000000..b9c5c922c0 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@en/SCHEDULEDTASK_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The scheduled task in {{ $d.project }} successfully {{ $d.operation_display }} the {{ $d.resource_type_display }} {{ $d.resource_name }} diff --git a/build/notify/root/opt/yunion/share/local-templates/content@en/SNAPSHOTPOLICY_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@en/SNAPSHOTPOLICY_EXECUTE.tmpl new file mode 100644 index 0000000000..c4c435eae5 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@en/SNAPSHOTPOLICY_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The snapshot policy {{ $d.name }} in the {{ $d.project }} project successfully creates a snapshot for the disk {{ $d.disk }} diff --git a/build/notify/root/opt/yunion/share/local-templates/content@en/UPDATE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@en/UPDATE.tmpl new file mode 100644 index 0000000000..9e3fd95cad --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@en/UPDATE.tmpl @@ -0,0 +1,10 @@ +{{- $d := .resource_details -}} +Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} has been {{ .action_display }} successfully +{{- if $d.account -}} +, the acount is {{ $d.account }} +{{- end -}} + +{{- if $d.password -}} +, the password is {{ $d.password }} +{{- end -}} +, and please go to the console to view more information diff --git a/build/notify/root/opt/yunion/share/local-templates/title@cn/COMMON.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@cn/COMMON.tmpl new file mode 100644 index 0000000000..647c8d4910 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@cn/COMMON.tmpl @@ -0,0 +1,5 @@ +{{- $d := .resource_details -}} +{{- if $d.project -}} +{{ $d.project }}项目的 +{{- end -}} +{{ .resource_type_display }}{{ $d.name }}{{ .action_display }}成功 diff --git a/build/notify/root/opt/yunion/share/local-templates/title@cn/CREATE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@cn/CREATE.tmpl new file mode 100644 index 0000000000..4f3de6507e --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@cn/CREATE.tmpl @@ -0,0 +1,5 @@ +{{- $d := .resource_details -}} +{{- if $d.project -}} +{{ $d.project }}项目的 +{{- end -}} +{{ .resource_type_display }}{{ $d.name }}创建成功 diff --git a/build/notify/root/opt/yunion/share/local-templates/title@cn/EXPIRED_RELEASE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@cn/EXPIRED_RELEASE.tmpl new file mode 100644 index 0000000000..7894915460 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@cn/EXPIRED_RELEASE.tmpl @@ -0,0 +1,3 @@ +{{- $d := .resource_details -}} +{{ $d.project }}项目的 +{{ .resource_type_display }}{{ $d.name }}到期前{{ .advance_days }}天通知 diff --git a/build/notify/root/opt/yunion/share/local-templates/title@cn/SCALINGPOLICY_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@cn/SCALINGPOLICY_EXECUTE.tmpl new file mode 100644 index 0000000000..55ccbdcb1e --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@cn/SCALINGPOLICY_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +{{ $d.project }}项目的弹性伸缩组{{ $d.scaling_group }}中的伸缩策略{{ $d.name }}满足触发 diff --git a/build/notify/root/opt/yunion/share/local-templates/title@cn/SCHEDULEDTASK_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@cn/SCHEDULEDTASK_EXECUTE.tmpl new file mode 100644 index 0000000000..b9c5c922c0 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@cn/SCHEDULEDTASK_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The scheduled task in {{ $d.project }} successfully {{ $d.operation_display }} the {{ $d.resource_type_display }} {{ $d.resource_name }} diff --git a/build/notify/root/opt/yunion/share/local-templates/title@cn/SNAPSHOTPOLICY_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@cn/SNAPSHOTPOLICY_EXECUTE.tmpl new file mode 100644 index 0000000000..1ea69a7cab --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@cn/SNAPSHOTPOLICY_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +{{ $d.project }}项目的自动快照策略{{ $d.name }}生效 diff --git a/build/notify/root/opt/yunion/share/local-templates/title@cn/UPDATE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@cn/UPDATE.tmpl new file mode 100644 index 0000000000..1bb663d3a6 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@cn/UPDATE.tmpl @@ -0,0 +1,3 @@ +{{- $d := .resource_details -}} +{{ $d.project }}项目的 +{{ .resource_type_display }}{{ $d.name }}{{ .action_display }}成功 diff --git a/build/notify/root/opt/yunion/share/local-templates/title@en/COMMON.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@en/COMMON.tmpl new file mode 100644 index 0000000000..06201695cd --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@en/COMMON.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The {{ .resource_type_display }} {{ .Name }} {{ if $d.project }} in poject {{ $d.project }} {{ end -}} {{ .action_display }} successfully diff --git a/build/notify/root/opt/yunion/share/local-templates/title@en/CREATE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@en/CREATE.tmpl new file mode 100644 index 0000000000..a1f5e1f982 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@en/CREATE.tmpl @@ -0,0 +1,3 @@ +{{- $d := .resource_details -}} +The {{ .resource_type_display }} {{ $d.name }} {{ if $d.project }} in poject {{ $d.project }} {{ end -}} created successfully + diff --git a/build/notify/root/opt/yunion/share/local-templates/title@en/EXPIRED_RELEASE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@en/EXPIRED_RELEASE.tmpl new file mode 100644 index 0000000000..ac5706a329 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@en/EXPIRED_RELEASE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +{{ .advance_days }} days notice before {{ .resource_type }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} expiration diff --git a/build/notify/root/opt/yunion/share/local-templates/title@en/SCALINGPOLICY_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@en/SCALINGPOLICY_EXECUTE.tmpl new file mode 100644 index 0000000000..14f8347aab --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@en/SCALINGPOLICY_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The scaling policy {{ $d.name }} in the scaling group {{ $d.scaling_group }} triggered diff --git a/build/notify/root/opt/yunion/share/local-templates/title@en/SCHEDULEDTASK_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@en/SCHEDULEDTASK_EXECUTE.tmpl new file mode 100644 index 0000000000..f65369a04b --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@en/SCHEDULEDTASK_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The scheduled task in {{ $d.project }} execute successfully diff --git a/build/notify/root/opt/yunion/share/local-templates/title@en/SNAPSHOTPOLICY_EXECUTE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@en/SNAPSHOTPOLICY_EXECUTE.tmpl new file mode 100644 index 0000000000..8a15529386 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@en/SNAPSHOTPOLICY_EXECUTE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The snapshot policy {{ $d.name }} in the {{ $d.project }} project executed diff --git a/build/notify/root/opt/yunion/share/local-templates/title@en/UPDATE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@en/UPDATE.tmpl new file mode 100644 index 0000000000..875b778d76 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@en/UPDATE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The {{ .resource_type }} {{ $d.name }} {{ if $d.project -}} in project {{ $d.project }} {{ end -}} {{ .action_display }} successfully