Skip to content

Commit

Permalink
RHCLOUD-28935 Create dummy templates for OCM Service Logs (RedHatInsi…
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg authored Oct 24, 2023
1 parent c3d5677 commit 75b04e4
Show file tree
Hide file tree
Showing 15 changed files with 179 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,45 @@ public List<String> migrate() {
"MalwareDetection/detectedMalwareInstantEmailBody", "html", "Malware Detection detected malware email body"
);

/*
* Former src/main/resources/templates/OCMServiceLogs folder.
*/
createInstantEmailTemplate(
warnings, "openshift", "ocm-service-logs", List.of("severity-critical"),
"OCMServiceLogs/severityCriticalInstantEmailTitle", "txt", "OCM Service Logs critical severity email title",
"OCMServiceLogs/severityCriticalInstantEmailBody", "html", "OCM Service Logs critical severity email body"
);
createInstantEmailTemplate(
warnings, "openshift", "ocm-service-logs", List.of("severity-debug"),
"OCMServiceLogs/severityDebugInstantEmailTitle", "txt", "OCM Service Logs debug severity email title",
"OCMServiceLogs/severityDebugInstantEmailBody", "html", "OCM Service Logs debug severity email body"
);
createInstantEmailTemplate(
warnings, "openshift", "ocm-service-logs", List.of("severity-error"),
"OCMServiceLogs/severityErrorInstantEmailTitle", "txt", "OCM Service Logs error severity email title",
"OCMServiceLogs/severityErrorInstantEmailBody", "html", "OCM Service Logs error severity email body"
);
createInstantEmailTemplate(
warnings, "openshift", "ocm-service-logs", List.of("severity-fatal"),
"OCMServiceLogs/severityFatalInstantEmailTitle", "txt", "OCM Service Logs fatal severity email title",
"OCMServiceLogs/severityFatalInstantEmailBody", "html", "OCM Service Logs fatal severity email body"
);
createInstantEmailTemplate(
warnings, "openshift", "ocm-service-logs", List.of("severity-info"),
"OCMServiceLogs/severityInfoInstantEmailTitle", "txt", "OCM Service Logs info severity email title",
"OCMServiceLogs/severityInfoInstantEmailBody", "html", "OCM Service Logs info severity email body"
);
createInstantEmailTemplate(
warnings, "openshift", "ocm-service-logs", List.of("severity-major"),
"OCMServiceLogs/severityMajorInstantEmailTitle", "txt", "OCM Service Logs major severity email title",
"OCMServiceLogs/severityMajorInstantEmailBody", "html", "OCM Service Logs major severity email body"
);
createInstantEmailTemplate(
warnings, "openshift", "ocm-service-logs", List.of("severity-warning"),
"OCMServiceLogs/severityWarningInstantEmailTitle", "txt", "OCM Service Logs warning severity email title",
"OCMServiceLogs/severityWarningInstantEmailBody", "html", "OCM Service Logs warning severity email body"
);

/*
* Former src/main/resources/templates/Patch folder.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{@boolean renderSection1=true}
{@boolean renderButtonSection1=true}
{#include Common/insightsEmailBody}
{#content-title}
OCM Service Logs - OpenShift
{/content-title}
{#content-title-section1}
Critical Severity
{/content-title-section1}
{#content-title-right-part-section1}
<a href="" target="_blank">1</a>
{/content-title-right-part-section1}
{#content-button-section1}
<a target="_blank" href="">Go to OCM</a>
{/content-button-section1}
{#content-body-section1}
This is a test email notification.
{/content-body-section1}
{/include}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instant notification - Critical Severity - OCM Service Logs - OpenShift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{@boolean renderSection1=true}
{@boolean renderButtonSection1=true}
{#include Common/insightsEmailBody}
{#content-title}
OCM Service Logs - OpenShift
{/content-title}
{#content-title-section1}
Debug Severity
{/content-title-section1}
{#content-title-right-part-section1}
<a href="" target="_blank">1</a>
{/content-title-right-part-section1}
{#content-button-section1}
<a target="_blank" href="">Go to OCM</a>
{/content-button-section1}
{#content-body-section1}
This is a test email notification.
{/content-body-section1}
{/include}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instant notification - Debug Severity - OCM Service Logs - OpenShift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{@boolean renderSection1=true}
{@boolean renderButtonSection1=true}
{#include Common/insightsEmailBody}
{#content-title}
OCM Service Logs - OpenShift
{/content-title}
{#content-title-section1}
Error Severity
{/content-title-section1}
{#content-title-right-part-section1}
<a href="" target="_blank">1</a>
{/content-title-right-part-section1}
{#content-button-section1}
<a target="_blank" href="">Go to OCM</a>
{/content-button-section1}
{#content-body-section1}
This is a test email notification.
{/content-body-section1}
{/include}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instant notification - Error Severity - OCM Service Logs - OpenShift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{@boolean renderSection1=true}
{@boolean renderButtonSection1=true}
{#include Common/insightsEmailBody}
{#content-title}
OCM Service Logs - OpenShift
{/content-title}
{#content-title-section1}
Fatal Severity
{/content-title-section1}
{#content-title-right-part-section1}
<a href="" target="_blank">1</a>
{/content-title-right-part-section1}
{#content-button-section1}
<a target="_blank" href="">Go to OCM</a>
{/content-button-section1}
{#content-body-section1}
This is a test email notification.
{/content-body-section1}
{/include}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instant notification - Fatal Severity - OCM Service Logs - OpenShift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{@boolean renderSection1=true}
{@boolean renderButtonSection1=true}
{#include Common/insightsEmailBody}
{#content-title}
OCM Service Logs - OpenShift
{/content-title}
{#content-title-section1}
Info Severity
{/content-title-section1}
{#content-title-right-part-section1}
<a href="" target="_blank">1</a>
{/content-title-right-part-section1}
{#content-button-section1}
<a target="_blank" href="">Go to OCM</a>
{/content-button-section1}
{#content-body-section1}
This is a test email notification.
{/content-body-section1}
{/include}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instant notification - Info Severity - OCM Service Logs - OpenShift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{@boolean renderSection1=true}
{@boolean renderButtonSection1=true}
{#include Common/insightsEmailBody}
{#content-title}
OCM Service Logs - OpenShift
{/content-title}
{#content-title-section1}
Major Severity
{/content-title-section1}
{#content-title-right-part-section1}
<a href="" target="_blank">1</a>
{/content-title-right-part-section1}
{#content-button-section1}
<a target="_blank" href="">Go to OCM</a>
{/content-button-section1}
{#content-body-section1}
This is a test email notification.
{/content-body-section1}
{/include}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instant notification - Major Severity - OCM Service Logs - OpenShift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{@boolean renderSection1=true}
{@boolean renderButtonSection1=true}
{#include Common/insightsEmailBody}
{#content-title}
OCM Service Logs - OpenShift
{/content-title}
{#content-title-section1}
Warning Severity
{/content-title-section1}
{#content-title-right-part-section1}
<a href="" target="_blank">1</a>
{/content-title-right-part-section1}
{#content-button-section1}
<a target="_blank" href="">Go to OCM</a>
{/content-button-section1}
{#content-body-section1}
This is a test email notification.
{/content-body-section1}
{/include}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Instant notification - Warning Severity - OCM Service Logs - OpenShift

0 comments on commit 75b04e4

Please sign in to comment.