-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathkyma-notification-settings.json
42 lines (42 loc) · 1.26 KB
/
kyma-notification-settings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"configuration": {
"actions": [
{
"type": "EMAIL",
"name": "send_email",
"state": "ENABLED",
"description": "Sends a simple email with the alert",
"properties": {
"destination": "<[email protected]>",
"useHtml": "true",
"subjectTemplate": "{subject}",
"payloadTemplate": "<!DOCTYPE html>\n<html>\n<body>\n<h1>BTP Resource Consumption notification</h1>\n<p>The following alerts have been generated:</p>\n<span style=\"font-family: 'Courier New', Courier, monospace; font-size: small;\">\n<pre>{body}</pre>\n</span>\n<p>Thank you</p>\n<p>Disclaimer: {ans-disclaimer}</p>\n</body>\n</html>"
}
}
],
"conditions": [
{
"name": "if_alert",
"mandatory": false,
"propertyKey": "eventType",
"predicate": "EQUALS",
"propertyValue": "BTPResourceConsumptionWarning",
"labels": [],
"description": "If it is an alert"
}
],
"subscriptions": [
{
"name": "email_if_alert",
"conditions": [
"if_alert"
],
"actions": [
"send_email"
],
"state": "ENABLED",
"description": "Send an email when an alert has been received"
}
]
}
}