Skip to content

Development

Build and run

dotnet run --project src/ConnectSoft.Blazor.Mfe.ECS.MonitoringTemplate

With empty API base URLs, the app starts in demo mode with synthetic data.

Connecting to ECS

Set base URLs in wwwroot/appsettings.json for EcsMetricsApi, EcsHealthApi, EcsAuditLogApi, EcsAlertApi, and the SignalR EcsMonitoringRealtime hub. Adjust polling intervals per section.

Real-time updates

MonitoringRealtimeHubClient subscribes to the hub methods MetricsUpdated, HealthUpdated, AlertsUpdated. AlertsPushNotificationHost surfaces toast notifications for alerts pushed while the user is off the Alerts page.

Charts

Metrics dashboards use Blazor-ApexCharts. Add new series by extending EcsMetricsApiClient (api/v1/metrics/series) and the MetricsDashboard page.

Testing

8 test files (MSTest + bUnit): API client tests (EcsMetricsApiClientTests, EcsHealthApiClientTests, EcsAuditLogApiClientTests, EcsAlertApiClientTests) and presentation tests. A .runsettings is included.

Before packaging

Reconcile the net10.0 project vs net9.0 package pins and replace the generic docs/ content. See repo status.

See also