feat: add audit events and runtime state snapshots to database
- Introduced new tables for audit events and runtime state snapshots in the database schema. - Created data classes for AuditRecord and RuntimeStateRecord to represent the new entities. - Implemented AuditRepository and RuntimeStateRepository for inserting and retrieving records. - Enhanced the dashboard to include an audit trail section, displaying recent audit events. - Added tests for the new audit repository and runtime lifecycle functionalities. - Updated settings validation to ensure proper configuration for alerting features. - Integrated alert notifications across various components, including execution sequencer and loss limits.
This commit is contained in:
@@ -17,6 +17,22 @@
|
||||
<div class="meta">Max trade capital: {{ max_trade_capital_usd }}</div>
|
||||
<div class="meta">Max concurrent trades: {{ max_concurrent_trades }}</div>
|
||||
</article>
|
||||
<article class="card">
|
||||
<div class="label">Alerting</div>
|
||||
<div class="meta">Status: {{ alerts_enabled }}</div>
|
||||
<div class="meta">Channels: {{ alerts_channels }}</div>
|
||||
<div class="meta">Min severity: {{ alerts_min_severity }}</div>
|
||||
<div class="meta">Dedup window: {{ alerts_dedup_seconds }}s</div>
|
||||
<div class="meta">Last result: {{ alerts_last_result }}</div>
|
||||
<div class="meta">Last attempted: {{ alerts_last_attempted_at }}</div>
|
||||
<div class="meta">Last success: {{ alerts_last_success_at }}</div>
|
||||
<div class="meta">Last event: {{ alerts_last_event_title }}</div>
|
||||
<div class="meta">Last error: {{ alerts_last_error }}</div>
|
||||
{% if alerts_last_channel_results %} {% for item in
|
||||
alerts_last_channel_results %}
|
||||
<div class="meta">{{ item }}</div>
|
||||
{% endfor %} {% endif %}
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user