optimization update, web scheduler test-integration

This commit is contained in:
kkb 2023-12-14 11:09:03 +01:00
parent 3c9ccaafeb
commit 1591618c2c
103 changed files with 4826 additions and 1502 deletions

View file

@ -13,16 +13,17 @@ public partial class Index
[Inject] private IMongoDatabase Database { get; init; } = default!;
[Inject] private ISnackbar Snackbar { get; init; } = default!;
private string Title { get; set; } = Global.Name;
private List<BreadcrumbItem> Breadcrumbs { get; } = new();
public ViewModel Model { get; } = new();
private string _title = Global.Name;
private ViewModel _model = new();
private readonly List<BreadcrumbItem> _breadcrumbs = new();
protected override void OnInitialized()
{
Title = $"Monitoring » MaintenanceInsight";
Breadcrumbs.Add(new BreadcrumbItem("Home", href: Navigation.Home));
Breadcrumbs.Add(new BreadcrumbItem("Monitoring", href: Navigation.Monitoring.Index));
Breadcrumbs.Add(new BreadcrumbItem("Maintenance", href: "#", true));
_title = $"Monitoring » MaintenanceInsight";
_breadcrumbs.Add(new BreadcrumbItem("Home", href: Navigation.Home));
_breadcrumbs.Add(new BreadcrumbItem("Monitoring", href: "#", true));
_breadcrumbs.Add(new BreadcrumbItem("Maintenance", href: "#", true));
}
private async Task LoadDataAsync()
@ -39,7 +40,7 @@ public partial class Index
if (drives is not null && drives.Any())
{
Model.Updates = drives[0].AsInt32;
_model.Updates = drives[0].AsInt32;
}
// storage pools (errors)
@ -52,7 +53,7 @@ public partial class Index
if (storagePools is not null && storagePools.Any())
{
Model.StoragePools = storagePools[0].AsInt32;
_model.StoragePools = storagePools[0].AsInt32;
}
// volumes (freespace)
@ -78,7 +79,7 @@ public partial class Index
if (freespace is not null && freespace.Any())
{
Model.Volumes = freespace[0].AsInt32;
_model.Volumes = freespace[0].AsInt32;
}
// virtual maschines
@ -91,7 +92,7 @@ public partial class Index
if (virtualMaschines is not null && virtualMaschines.Any())
{
Model.Guests = virtualMaschines[0].AsInt32;
_model.Guests = virtualMaschines[0].AsInt32;
}
// snapshots (old)
@ -116,7 +117,7 @@ public partial class Index
if (snapshots is not null && snapshots.Any())
{
Model.Snapshots = snapshots[0].AsInt32;
_model.Snapshots = snapshots[0].AsInt32;
}
// updates (pending)
@ -129,7 +130,7 @@ public partial class Index
if (updates is not null && updates.Any())
{
Model.Updates = updates[0].AsInt32;
_model.Updates = updates[0].AsInt32;
}
}
catch (Exception ex)