-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send email of locations / generators alerts to users #45
Labels
Milestone
Comments
pferrariuy
added
enhancement
New feature or request
good first issue
Good for newcomers
labels
May 26, 2024
Added new flags to:
Uses views (Renovus-Tech/solarec-db#15):
New email template:
New label added: email.generator.alert.subject = SolaREC Notification alert
email.location.alert.subject = SolaREC Notification alert New logback configuration: <appender name="email_daily_appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logFilePath}/email/email.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${logFilePath}/email/email.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>7</maxHistory> <!-- Keep logs for 7 days -->
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="email" level="all" additivity="true"><appender-ref ref="email_daily_appender"/></logger>
|
pferrariuy
added a commit
that referenced
this issue
May 26, 2024
added support for location alerts, adjusted logback.xml sample file Related to #45
pferrariuy
added a commit
that referenced
this issue
May 26, 2024
pferrariuy
added a commit
that referenced
this issue
May 27, 2024
pferrariuy
added a commit
that referenced
this issue
May 27, 2024
19 tasks
pferrariuy
added a commit
that referenced
this issue
May 27, 2024
Send email of locations / generators alerts to users #45 to MAIN
pferrariuy
added a commit
that referenced
this issue
May 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Request
Description
Generate a scheduler (execution at 6 am) that will retrieve all not send alert and will send them to the users, with their corresponding information. All alerts notifications must be send if all of the following conditions are meet:
Use Case
Location / Generator data is imported in the system. The alert service calcualtes and determinates an issue with the data. An alert is generated in the database (the same alert that the user will see when accessing to the dashboard). The system detects and send the alert by email.
Expected Behavior
Additional Context
The content of the email must be in the language configured by the user.
Implementation Suggestions
Record the result of alerts notifications to users in the corresponding table:
Impact on Existing Features
No impact in other features.
Additional Information
Users might have access to different clients (cli_user) and locations (loc_user), so notifications must be send to users with access to those client / location. For the case of a generator alert, use the loc_user verification.
Related Issues
Pendings
The text was updated successfully, but these errors were encountered: