Skip to content

Commit

Permalink
doc : update photo in the README file (#51)
Browse files Browse the repository at this point in the history
* updated photo in the README

* removed unused imag
  • Loading branch information
ranim-n authored Apr 23, 2024
1 parent 99f562b commit 940667d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Reporting task to send provenance events considered as errors by email.

#### Reporting Task Properties

<img src="docs/images/email-reporting-task-configuration.png" width=600 />
<img src="docs/images/email-reporting-task-properties.png" width=600 />

* `Email Subject Prefix` is a property that contains a prefix to be added in the email subject. It can be for example the NiFi instance the error is coming from (optional).
* `Specific Recipient Attribute Name` is a property that contains a flow file attribute name whose value will be used as an extra recipient email address when sending the email alert (optional).
Expand Down
Binary file removed docs/images/email-reporting-task-configuration.png
Binary file not shown.
Binary file added docs/images/email-reporting-task-properties.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public void indexEvent(final Map<String, Object> event, final ReportingContext c
public void sendErrorEmail(Map<String, Object> event, ReportingContext context) throws MessagingException {
String emailSubject;
if (context.getProperty(EMAIL_SUBJECT_PREFIX).getValue() != null) {
emailSubject = "[" + context.getProperty(EMAIL_SUBJECT_PREFIX).getValue() + "] : "
emailSubject = "[" + context.getProperty(EMAIL_SUBJECT_PREFIX).getValue() + "] "
+ "Error occurred in processor " + event.get("component_name") + " "
+ "in process group " + event.get("process_group_name");
} else {
Expand Down

0 comments on commit 940667d

Please sign in to comment.