@oneuptime/common 11.0.1 → 11.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/Alert.ts +276 -0
- package/Models/DatabaseModels/AlertLabelRule.ts +38 -0
- package/Models/DatabaseModels/AlertOwnerRule.ts +38 -0
- package/Models/DatabaseModels/CephCluster.ts +964 -0
- package/Models/DatabaseModels/CephClusterLabelRule.ts +514 -0
- package/Models/DatabaseModels/CephClusterOwnerRule.ts +596 -0
- package/Models/DatabaseModels/CephClusterOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/CephClusterOwnerUser.ts +486 -0
- package/Models/DatabaseModels/CephResource.ts +809 -0
- package/Models/DatabaseModels/DockerSwarmCluster.ts +989 -0
- package/Models/DatabaseModels/DockerSwarmClusterLabelRule.ts +514 -0
- package/Models/DatabaseModels/DockerSwarmClusterOwnerRule.ts +596 -0
- package/Models/DatabaseModels/DockerSwarmClusterOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/DockerSwarmClusterOwnerUser.ts +486 -0
- package/Models/DatabaseModels/DockerSwarmResource.ts +750 -0
- package/Models/DatabaseModels/Host.ts +64 -0
- package/Models/DatabaseModels/Incident.ts +276 -0
- package/Models/DatabaseModels/IncidentLabelRule.ts +38 -0
- package/Models/DatabaseModels/IncidentOwnerRule.ts +38 -0
- package/Models/DatabaseModels/IncidentTemplate.ts +56 -0
- package/Models/DatabaseModels/Index.ts +48 -0
- package/Models/DatabaseModels/PodmanHost.ts +859 -0
- package/Models/DatabaseModels/PodmanHostLabelRule.ts +514 -0
- package/Models/DatabaseModels/PodmanHostOwnerRule.ts +596 -0
- package/Models/DatabaseModels/PodmanHostOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/PodmanHostOwnerUser.ts +486 -0
- package/Models/DatabaseModels/PodmanResource.ts +498 -0
- package/Models/DatabaseModels/ProxmoxCluster.ts +943 -0
- package/Models/DatabaseModels/ProxmoxClusterLabelRule.ts +514 -0
- package/Models/DatabaseModels/ProxmoxClusterOwnerRule.ts +596 -0
- package/Models/DatabaseModels/ProxmoxClusterOwnerTeam.ts +487 -0
- package/Models/DatabaseModels/ProxmoxClusterOwnerUser.ts +486 -0
- package/Models/DatabaseModels/ProxmoxResource.ts +726 -0
- package/Models/DatabaseModels/ScheduledMaintenance.ts +220 -0
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.ts +38 -0
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.ts +38 -0
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.ts +56 -0
- package/Models/DatabaseModels/TelemetryException.ts +2 -0
- package/Server/API/BillingInvoiceAPI.ts +47 -7
- package/Server/API/CephResourceAPI.ts +134 -0
- package/Server/API/DashboardAPI.ts +135 -0
- package/Server/API/DockerSwarmResourceAPI.ts +137 -0
- package/Server/API/ProjectAPI.ts +15 -0
- package/Server/API/ProxmoxResourceAPI.ts +132 -0
- package/Server/API/ResellerPlanAPI.ts +17 -0
- package/Server/API/TelemetryAPI.ts +8 -1
- package/Server/Infrastructure/GlobalCache.ts +8 -2
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781500000000-AddProxmoxAndCephClusterTables.ts +163 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781587937032-MigrationName.ts +3199 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781600000000-AddProxmoxCephV2Columns.ts +211 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781600000001-AddProxmoxCephActivityAndRules.ts +590 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781700000000-AddProxmoxCephV3Columns.ts +64 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +10 -0
- package/Server/Infrastructure/Redis.ts +40 -12
- package/Server/Services/AlertLabelRuleEngineService.ts +29 -0
- package/Server/Services/AlertOwnerRuleEngineService.ts +67 -0
- package/Server/Services/AnalyticsDatabaseService.ts +1 -1
- package/Server/Services/BillingService.ts +109 -21
- package/Server/Services/CephClusterLabelRuleEngineService.ts +200 -0
- package/Server/Services/CephClusterLabelRuleService.ts +14 -0
- package/Server/Services/CephClusterOwnerRuleEngineService.ts +218 -0
- package/Server/Services/CephClusterOwnerRuleService.ts +14 -0
- package/Server/Services/CephClusterOwnerTeamService.ts +10 -0
- package/Server/Services/CephClusterOwnerUserService.ts +10 -0
- package/Server/Services/CephClusterService.ts +401 -0
- package/Server/Services/CephResourceService.ts +383 -0
- package/Server/Services/CloudResourceService.ts +11 -3
- package/Server/Services/DockerHostService.ts +11 -3
- package/Server/Services/DockerSwarmClusterLabelRuleEngineService.ts +214 -0
- package/Server/Services/DockerSwarmClusterLabelRuleService.ts +14 -0
- package/Server/Services/DockerSwarmClusterOwnerRuleEngineService.ts +232 -0
- package/Server/Services/DockerSwarmClusterOwnerRuleService.ts +14 -0
- package/Server/Services/DockerSwarmClusterOwnerTeamService.ts +10 -0
- package/Server/Services/DockerSwarmClusterOwnerUserService.ts +10 -0
- package/Server/Services/DockerSwarmClusterService.ts +404 -0
- package/Server/Services/DockerSwarmResourceService.ts +381 -0
- package/Server/Services/ExceptionAggregationService.ts +3 -0
- package/Server/Services/HostService.ts +11 -3
- package/Server/Services/IncidentLabelRuleEngineService.ts +27 -0
- package/Server/Services/IncidentOwnerRuleEngineService.ts +67 -0
- package/Server/Services/IncidentService.ts +11 -0
- package/Server/Services/Index.ts +38 -0
- package/Server/Services/KubernetesClusterService.ts +11 -3
- package/Server/Services/LogAggregationService.ts +3 -0
- package/Server/Services/MetricAggregationService.ts +3 -0
- package/Server/Services/OpenTelemetryIngestService.ts +73 -0
- package/Server/Services/PodmanHostLabelRuleEngineService.ts +198 -0
- package/Server/Services/PodmanHostLabelRuleService.ts +14 -0
- package/Server/Services/PodmanHostOwnerRuleEngineService.ts +216 -0
- package/Server/Services/PodmanHostOwnerRuleService.ts +14 -0
- package/Server/Services/PodmanHostOwnerTeamService.ts +10 -0
- package/Server/Services/PodmanHostOwnerUserService.ts +10 -0
- package/Server/Services/PodmanHostService.ts +368 -0
- package/Server/Services/PodmanResourceService.ts +310 -0
- package/Server/Services/ProxmoxClusterLabelRuleEngineService.ts +204 -0
- package/Server/Services/ProxmoxClusterLabelRuleService.ts +14 -0
- package/Server/Services/ProxmoxClusterOwnerRuleEngineService.ts +222 -0
- package/Server/Services/ProxmoxClusterOwnerRuleService.ts +14 -0
- package/Server/Services/ProxmoxClusterOwnerTeamService.ts +10 -0
- package/Server/Services/ProxmoxClusterOwnerUserService.ts +10 -0
- package/Server/Services/ProxmoxClusterService.ts +382 -0
- package/Server/Services/ProxmoxResourceService.ts +404 -0
- package/Server/Services/RumApplicationService.ts +11 -3
- package/Server/Services/ScheduledMaintenanceLabelRuleEngineService.ts +29 -0
- package/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.ts +67 -0
- package/Server/Services/ServerlessFunctionService.ts +11 -3
- package/Server/Services/TelemetryUsageBillingService.ts +59 -3
- package/Server/Services/TraceAggregationService.ts +3 -0
- package/Server/Types/AnalyticsDatabase/AggregateBy.ts +8 -23
- package/Server/Types/Database/Permissions/OwnerTableRegistry.ts +13 -0
- package/Server/Utils/Monitor/MonitorAlert.ts +55 -0
- package/Server/Utils/Monitor/MonitorClusterContext.ts +158 -0
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +650 -4
- package/Server/Utils/Monitor/MonitorIncident.ts +175 -7
- package/Server/Utils/Monitor/MonitorMaintenanceSuppression.ts +56 -6
- package/Server/Utils/Monitor/MonitorTemplateUtil.ts +6 -1
- package/Server/Utils/Monitor/SeriesResourceLabels.ts +59 -0
- package/Server/Utils/Profiling.ts +37 -2
- package/Server/Utils/Telemetry/EntityRegistry.ts +4 -0
- package/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.ts +1096 -0
- package/Server/Utils/Telemetry/ResourceFacetResolver.ts +49 -0
- package/Server/Utils/Telemetry/Telemetry.ts +10 -0
- package/Server/Utils/Telemetry/TelemetryEntity.ts +107 -0
- package/Server/Utils/Telemetry.ts +8 -19
- package/Tests/Server/API/BillingInvoiceAPI.test.ts +194 -0
- package/Tests/Server/API/ProjectAPI.test.ts +91 -0
- package/Tests/Server/API/ResellerPlanAPI.test.ts +207 -0
- package/Tests/Server/Infrastructure/GlobalCache.test.ts +100 -0
- package/Tests/Server/Services/BillingService.test.ts +323 -0
- package/Tests/Server/Services/CephResourceService.test.ts +264 -0
- package/Tests/Server/Services/ProxmoxResourceService.test.ts +326 -0
- package/Tests/Server/Utils/Monitor/MonitorCriteriaEvaluator.test.ts +322 -0
- package/Tests/Server/Utils/Monitor/MonitorMaintenanceSuppression.test.ts +14 -0
- package/Tests/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.test.ts +879 -0
- package/Tests/Server/Utils/Telemetry/TelemetryEntity.test.ts +196 -0
- package/Tests/Types/DockerSwarm/DockerSwarmInventoryExtractor.test.ts +667 -0
- package/Tests/Types/Monitor/CephAlertTemplates.test.ts +1231 -0
- package/Tests/Types/Monitor/DockerSwarmAlertTemplates.test.ts +528 -0
- package/Tests/Types/Monitor/ProxmoxAlertTemplates.test.ts +732 -0
- package/Tests/Utils/Telemetry/EntityRelationship.test.ts +49 -0
- package/Tests/Utils/Telemetry/HeartbeatAvailability.test.ts +423 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.ts +74 -0
- package/Types/Dashboard/DashboardComponentType.ts +11 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +4 -0
- package/Types/Dashboard/DashboardComponents/DashboardCephOsdListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardCephPoolListComponent.ts +14 -0
- package/Types/Dashboard/DashboardComponents/DashboardDockerSwarmNodeListComponent.ts +17 -0
- package/Types/Dashboard/DashboardComponents/DashboardDockerSwarmServiceListComponent.ts +17 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanContainerListComponent.ts +16 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanHostListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanImageListComponent.ts +16 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanNetworkListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardPodmanVolumeListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardProxmoxGuestListComponent.ts +17 -0
- package/Types/Dashboard/DashboardComponents/DashboardProxmoxNodeListComponent.ts +16 -0
- package/Types/Dashboard/DashboardTemplates.ts +640 -0
- package/Types/DockerSwarm/DockerSwarmInventoryExtractor.ts +452 -0
- package/Types/Icon/IconProp.ts +3 -0
- package/Types/Monitor/CephAlertTemplates.ts +1647 -0
- package/Types/Monitor/CephMetricCatalog.ts +409 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.ts +461 -0
- package/Types/Monitor/DockerSwarmMetricCatalog.ts +139 -0
- package/Types/Monitor/HostAlertTemplates.ts +455 -0
- package/Types/Monitor/HostMetricCatalog.ts +177 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.ts +65 -0
- package/Types/Monitor/MonitorStep.ts +163 -0
- package/Types/Monitor/MonitorStepCephMonitor.ts +57 -0
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.ts +74 -0
- package/Types/Monitor/MonitorStepHostMonitor.ts +30 -0
- package/Types/Monitor/MonitorStepPodmanMonitor.ts +38 -0
- package/Types/Monitor/MonitorStepProxmoxMonitor.ts +81 -0
- package/Types/Monitor/MonitorType.ts +71 -1
- package/Types/Monitor/PodmanAlertTemplates.ts +507 -0
- package/Types/Monitor/PodmanMetricCatalog.ts +226 -0
- package/Types/Monitor/ProxmoxAlertTemplates.ts +899 -0
- package/Types/Monitor/ProxmoxMetricCatalog.ts +382 -0
- package/Types/Permission.ts +1029 -104
- package/Types/Podman/PodmanInventoryExtractor.ts +343 -0
- package/Types/Telemetry/EntityType.ts +23 -0
- package/Types/Telemetry/ServiceType.ts +4 -0
- package/UI/Components/Icon/Icon.tsx +141 -0
- package/UI/Components/LogsViewer/LogsViewer.tsx +44 -1
- package/UI/Components/LogsViewer/components/LogsFacetSidebar.tsx +28 -0
- package/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.ts +15 -5
- package/UI/Utils/Telemetry/Telemetry.ts +16 -21
- package/UI/Utils/TelemetryService.ts +8 -3
- package/Utils/Dashboard/Components/DashboardCephOsdListComponent.ts +63 -0
- package/Utils/Dashboard/Components/DashboardCephPoolListComponent.ts +32 -0
- package/Utils/Dashboard/Components/DashboardCephResourceListShared.ts +61 -0
- package/Utils/Dashboard/Components/DashboardDockerSwarmNodeListComponent.ts +70 -0
- package/Utils/Dashboard/Components/DashboardDockerSwarmResourceListShared.ts +61 -0
- package/Utils/Dashboard/Components/DashboardDockerSwarmServiceListComponent.ts +71 -0
- package/Utils/Dashboard/Components/DashboardPodmanContainerListComponent.ts +100 -0
- package/Utils/Dashboard/Components/DashboardPodmanHostListComponent.ts +88 -0
- package/Utils/Dashboard/Components/DashboardPodmanImageListComponent.ts +97 -0
- package/Utils/Dashboard/Components/DashboardPodmanNetworkListComponent.ts +87 -0
- package/Utils/Dashboard/Components/DashboardPodmanVolumeListComponent.ts +87 -0
- package/Utils/Dashboard/Components/DashboardProxmoxGuestListComponent.ts +69 -0
- package/Utils/Dashboard/Components/DashboardProxmoxNodeListComponent.ts +55 -0
- package/Utils/Dashboard/Components/DashboardProxmoxResourceListShared.ts +61 -0
- package/Utils/Dashboard/Components/Index.ts +79 -0
- package/Utils/Telemetry/EntityKey.ts +53 -0
- package/Utils/Telemetry/EntityRelationship.ts +6 -0
- package/Utils/Telemetry/HeartbeatAvailability.ts +262 -0
- package/build/dist/Models/DatabaseModels/Alert.js +270 -0
- package/build/dist/Models/DatabaseModels/Alert.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertLabelRule.js +39 -0
- package/build/dist/Models/DatabaseModels/AlertLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertOwnerRule.js +39 -0
- package/build/dist/Models/DatabaseModels/AlertOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/CephCluster.js +992 -0
- package/build/dist/Models/DatabaseModels/CephCluster.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephClusterLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/CephClusterLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/CephClusterOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/CephResource.js +846 -0
- package/build/dist/Models/DatabaseModels/CephResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmCluster.js +1018 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmCluster.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmClusterOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmResource.js +787 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Host.js +63 -0
- package/build/dist/Models/DatabaseModels/Host.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Incident.js +270 -0
- package/build/dist/Models/DatabaseModels/Incident.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentLabelRule.js +39 -0
- package/build/dist/Models/DatabaseModels/IncidentLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentOwnerRule.js +39 -0
- package/build/dist/Models/DatabaseModels/IncidentOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentTemplate.js +54 -0
- package/build/dist/Models/DatabaseModels/IncidentTemplate.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +48 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/PodmanHost.js +885 -0
- package/build/dist/Models/DatabaseModels/PodmanHost.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanHostLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/PodmanHostLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/PodmanHostOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanResource.js +526 -0
- package/build/dist/Models/DatabaseModels/PodmanResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxCluster.js +967 -0
- package/build/dist/Models/DatabaseModels/ProxmoxCluster.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterLabelRule.js +522 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerRule.js +603 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerTeam.js +503 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerUser.js +502 -0
- package/build/dist/Models/DatabaseModels/ProxmoxClusterOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProxmoxResource.js +761 -0
- package/build/dist/Models/DatabaseModels/ProxmoxResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenance.js +216 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenance.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +39 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +39 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +54 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceTemplate.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TelemetryException.js +2 -0
- package/build/dist/Models/DatabaseModels/TelemetryException.js.map +1 -1
- package/build/dist/Server/API/BillingInvoiceAPI.js +35 -5
- package/build/dist/Server/API/BillingInvoiceAPI.js.map +1 -1
- package/build/dist/Server/API/CephResourceAPI.js +98 -0
- package/build/dist/Server/API/CephResourceAPI.js.map +1 -0
- package/build/dist/Server/API/DashboardAPI.js +135 -0
- package/build/dist/Server/API/DashboardAPI.js.map +1 -1
- package/build/dist/Server/API/DockerSwarmResourceAPI.js +100 -0
- package/build/dist/Server/API/DockerSwarmResourceAPI.js.map +1 -0
- package/build/dist/Server/API/ProjectAPI.js +11 -0
- package/build/dist/Server/API/ProjectAPI.js.map +1 -1
- package/build/dist/Server/API/ProxmoxResourceAPI.js +95 -0
- package/build/dist/Server/API/ProxmoxResourceAPI.js.map +1 -0
- package/build/dist/Server/API/ResellerPlanAPI.js +17 -3
- package/build/dist/Server/API/ResellerPlanAPI.js.map +1 -1
- package/build/dist/Server/API/TelemetryAPI.js +8 -1
- package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
- package/build/dist/Server/Infrastructure/GlobalCache.js +7 -2
- package/build/dist/Server/Infrastructure/GlobalCache.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781500000000-AddProxmoxAndCephClusterTables.js +76 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781500000000-AddProxmoxAndCephClusterTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781587937032-MigrationName.js +1100 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781587937032-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781600000000-AddProxmoxCephV2Columns.js +108 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781600000000-AddProxmoxCephV2Columns.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781600000001-AddProxmoxCephActivityAndRules.js +253 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781600000001-AddProxmoxCephActivityAndRules.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781700000000-AddProxmoxCephV3Columns.js +43 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781700000000-AddProxmoxCephV3Columns.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +10 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Infrastructure/Redis.js +31 -8
- package/build/dist/Server/Infrastructure/Redis.js.map +1 -1
- package/build/dist/Server/Services/AlertLabelRuleEngineService.js +30 -4
- package/build/dist/Server/Services/AlertLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertOwnerRuleEngineService.js +62 -5
- package/build/dist/Server/Services/AlertOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AnalyticsDatabaseService.js +1 -1
- package/build/dist/Server/Services/AnalyticsDatabaseService.js.map +1 -1
- package/build/dist/Server/Services/BillingService.js +85 -23
- package/build/dist/Server/Services/BillingService.js.map +1 -1
- package/build/dist/Server/Services/CephClusterLabelRuleEngineService.js +166 -0
- package/build/dist/Server/Services/CephClusterLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterLabelRuleService.js +13 -0
- package/build/dist/Server/Services/CephClusterLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterOwnerRuleEngineService.js +186 -0
- package/build/dist/Server/Services/CephClusterOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/CephClusterOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/CephClusterOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterOwnerUserService.js +9 -0
- package/build/dist/Server/Services/CephClusterOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/CephClusterService.js +353 -0
- package/build/dist/Server/Services/CephClusterService.js.map +1 -0
- package/build/dist/Server/Services/CephResourceService.js +257 -0
- package/build/dist/Server/Services/CephResourceService.js.map +1 -0
- package/build/dist/Server/Services/CloudResourceService.js +10 -2
- package/build/dist/Server/Services/CloudResourceService.js.map +1 -1
- package/build/dist/Server/Services/DockerHostService.js +10 -2
- package/build/dist/Server/Services/DockerHostService.js.map +1 -1
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleEngineService.js +168 -0
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleService.js +13 -0
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleEngineService.js +188 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerUserService.js +9 -0
- package/build/dist/Server/Services/DockerSwarmClusterOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmClusterService.js +353 -0
- package/build/dist/Server/Services/DockerSwarmClusterService.js.map +1 -0
- package/build/dist/Server/Services/DockerSwarmResourceService.js +258 -0
- package/build/dist/Server/Services/DockerSwarmResourceService.js.map +1 -0
- package/build/dist/Server/Services/ExceptionAggregationService.js +3 -0
- package/build/dist/Server/Services/ExceptionAggregationService.js.map +1 -1
- package/build/dist/Server/Services/HostService.js +10 -2
- package/build/dist/Server/Services/HostService.js.map +1 -1
- package/build/dist/Server/Services/IncidentLabelRuleEngineService.js +28 -4
- package/build/dist/Server/Services/IncidentLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentOwnerRuleEngineService.js +62 -5
- package/build/dist/Server/Services/IncidentOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +8 -0
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +38 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/KubernetesClusterService.js +10 -2
- package/build/dist/Server/Services/KubernetesClusterService.js.map +1 -1
- package/build/dist/Server/Services/LogAggregationService.js +3 -0
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/MetricAggregationService.js +3 -0
- package/build/dist/Server/Services/MetricAggregationService.js.map +1 -1
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +69 -9
- package/build/dist/Server/Services/OpenTelemetryIngestService.js.map +1 -1
- package/build/dist/Server/Services/PodmanHostLabelRuleEngineService.js +166 -0
- package/build/dist/Server/Services/PodmanHostLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostLabelRuleService.js +13 -0
- package/build/dist/Server/Services/PodmanHostLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostOwnerRuleEngineService.js +186 -0
- package/build/dist/Server/Services/PodmanHostOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/PodmanHostOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/PodmanHostOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostOwnerUserService.js +9 -0
- package/build/dist/Server/Services/PodmanHostOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/PodmanHostService.js +319 -0
- package/build/dist/Server/Services/PodmanHostService.js.map +1 -0
- package/build/dist/Server/Services/PodmanResourceService.js +196 -0
- package/build/dist/Server/Services/PodmanResourceService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleEngineService.js +166 -0
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleService.js +13 -0
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleEngineService.js +186 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerTeamService.js +9 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerUserService.js +9 -0
- package/build/dist/Server/Services/ProxmoxClusterOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterService.js +337 -0
- package/build/dist/Server/Services/ProxmoxClusterService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxResourceService.js +285 -0
- package/build/dist/Server/Services/ProxmoxResourceService.js.map +1 -0
- package/build/dist/Server/Services/RumApplicationService.js +10 -2
- package/build/dist/Server/Services/RumApplicationService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceLabelRuleEngineService.js +30 -4
- package/build/dist/Server/Services/ScheduledMaintenanceLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.js +62 -5
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ServerlessFunctionService.js +10 -2
- package/build/dist/Server/Services/ServerlessFunctionService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryUsageBillingService.js +43 -3
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/TraceAggregationService.js +3 -0
- package/build/dist/Server/Services/TraceAggregationService.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js +8 -25
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js +13 -0
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js +44 -0
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js +118 -0
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +422 -4
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +137 -8
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js +32 -6
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js +6 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js +39 -0
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js.map +1 -1
- package/build/dist/Server/Utils/Profiling.js +24 -3
- package/build/dist/Server/Utils/Profiling.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js +4 -0
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.js +854 -0
- package/build/dist/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js +30 -0
- package/build/dist/Server/Utils/Telemetry/ResourceFacetResolver.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/Telemetry.js +6 -0
- package/build/dist/Server/Utils/Telemetry/Telemetry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/TelemetryEntity.js +80 -0
- package/build/dist/Server/Utils/Telemetry/TelemetryEntity.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry.js +8 -10
- package/build/dist/Server/Utils/Telemetry.js.map +1 -1
- package/build/dist/Types/BaseDatabase/AggregationIntervalUtil.js +69 -0
- package/build/dist/Types/BaseDatabase/AggregationIntervalUtil.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js +11 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +4 -0
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardCephOsdListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardCephOsdListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardCephPoolListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardCephPoolListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerSwarmNodeListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerSwarmNodeListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerSwarmServiceListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerSwarmServiceListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanContainerListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanContainerListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanHostListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanHostListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanImageListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanImageListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanNetworkListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanNetworkListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanVolumeListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardPodmanVolumeListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardProxmoxGuestListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardProxmoxGuestListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardProxmoxNodeListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardProxmoxNodeListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardTemplates.js +562 -0
- package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -1
- package/build/dist/Types/DockerSwarm/DockerSwarmInventoryExtractor.js +359 -0
- package/build/dist/Types/DockerSwarm/DockerSwarmInventoryExtractor.js.map +1 -0
- package/build/dist/Types/Icon/IconProp.js +3 -0
- package/build/dist/Types/Icon/IconProp.js.map +1 -1
- package/build/dist/Types/Monitor/CephAlertTemplates.js +1379 -0
- package/build/dist/Types/Monitor/CephAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/CephMetricCatalog.js +353 -0
- package/build/dist/Types/Monitor/CephMetricCatalog.js.map +1 -0
- package/build/dist/Types/Monitor/DockerSwarmAlertTemplates.js +358 -0
- package/build/dist/Types/Monitor/DockerSwarmAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/DockerSwarmMetricCatalog.js +103 -0
- package/build/dist/Types/Monitor/DockerSwarmMetricCatalog.js.map +1 -0
- package/build/dist/Types/Monitor/HostAlertTemplates.js +365 -0
- package/build/dist/Types/Monitor/HostAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/HostMetricCatalog.js +138 -0
- package/build/dist/Types/Monitor/HostMetricCatalog.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStep.js +115 -0
- package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStepCephMonitor.js +34 -0
- package/build/dist/Types/Monitor/MonitorStepCephMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStepDockerSwarmMonitor.js +21 -0
- package/build/dist/Types/Monitor/MonitorStepDockerSwarmMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStepHostMonitor.js +20 -0
- package/build/dist/Types/Monitor/MonitorStepHostMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStepPodmanMonitor.js +21 -0
- package/build/dist/Types/Monitor/MonitorStepPodmanMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorStepProxmoxMonitor.js +36 -0
- package/build/dist/Types/Monitor/MonitorStepProxmoxMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorType.js +66 -1
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- package/build/dist/Types/Monitor/PodmanAlertTemplates.js +410 -0
- package/build/dist/Types/Monitor/PodmanAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/PodmanMetricCatalog.js +192 -0
- package/build/dist/Types/Monitor/PodmanMetricCatalog.js.map +1 -0
- package/build/dist/Types/Monitor/ProxmoxAlertTemplates.js +743 -0
- package/build/dist/Types/Monitor/ProxmoxAlertTemplates.js.map +1 -0
- package/build/dist/Types/Monitor/ProxmoxMetricCatalog.js +320 -0
- package/build/dist/Types/Monitor/ProxmoxMetricCatalog.js.map +1 -0
- package/build/dist/Types/Permission.js +824 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Podman/PodmanInventoryExtractor.js +293 -0
- package/build/dist/Types/Podman/PodmanInventoryExtractor.js.map +1 -0
- package/build/dist/Types/Telemetry/EntityType.js +23 -0
- package/build/dist/Types/Telemetry/EntityType.js.map +1 -1
- package/build/dist/Types/Telemetry/ServiceType.js +4 -0
- package/build/dist/Types/Telemetry/ServiceType.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +49 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js +30 -2
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js +22 -0
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js.map +1 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js +11 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js.map +1 -1
- package/build/dist/UI/Utils/Telemetry/Telemetry.js +11 -10
- package/build/dist/UI/Utils/Telemetry/Telemetry.js.map +1 -1
- package/build/dist/UI/Utils/TelemetryService.js +6 -2
- package/build/dist/UI/Utils/TelemetryService.js.map +1 -1
- package/build/dist/Utils/Dashboard/Components/DashboardCephOsdListComponent.js +50 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephOsdListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephPoolListComponent.js +27 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephPoolListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephResourceListShared.js +46 -0
- package/build/dist/Utils/Dashboard/Components/DashboardCephResourceListShared.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmNodeListComponent.js +55 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmNodeListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmResourceListShared.js +46 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmResourceListShared.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmServiceListComponent.js +55 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerSwarmServiceListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanContainerListComponent.js +77 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanContainerListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanHostListComponent.js +71 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanHostListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanImageListComponent.js +77 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanImageListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanNetworkListComponent.js +68 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanNetworkListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanVolumeListComponent.js +68 -0
- package/build/dist/Utils/Dashboard/Components/DashboardPodmanVolumeListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxGuestListComponent.js +55 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxGuestListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxNodeListComponent.js +42 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxNodeListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxResourceListShared.js +46 -0
- package/build/dist/Utils/Dashboard/Components/DashboardProxmoxResourceListShared.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/Index.js +44 -0
- package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
- package/build/dist/Utils/Telemetry/EntityKey.js +41 -0
- package/build/dist/Utils/Telemetry/EntityKey.js.map +1 -1
- package/build/dist/Utils/Telemetry/EntityRelationship.js +3 -0
- package/build/dist/Utils/Telemetry/EntityRelationship.js.map +1 -1
- package/build/dist/Utils/Telemetry/HeartbeatAvailability.js +174 -0
- package/build/dist/Utils/Telemetry/HeartbeatAvailability.js.map +1 -0
- package/package.json +29 -21
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import DashboardPodmanHostListComponent from "../../../Types/Dashboard/DashboardComponents/DashboardPodmanHostListComponent";
|
|
2
|
+
import { ObjectType } from "../../../Types/JSON";
|
|
3
|
+
import ObjectID from "../../../Types/ObjectID";
|
|
4
|
+
import DashboardBaseComponentUtil from "./DashboardBaseComponent";
|
|
5
|
+
import {
|
|
6
|
+
ComponentArgument,
|
|
7
|
+
ComponentArgumentSection,
|
|
8
|
+
ComponentInputType,
|
|
9
|
+
} from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
10
|
+
import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
|
|
11
|
+
import { getViewModeArgument } from "./DashboardListSharedArgs";
|
|
12
|
+
|
|
13
|
+
const DisplaySection: ComponentArgumentSection = {
|
|
14
|
+
name: "Display Options",
|
|
15
|
+
description: "Configure the widget title and row limit",
|
|
16
|
+
order: 1,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const FiltersSection: ComponentArgumentSection = {
|
|
20
|
+
name: "Filters",
|
|
21
|
+
description: "Narrow down which Podman hosts are shown",
|
|
22
|
+
order: 2,
|
|
23
|
+
defaultCollapsed: true,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default class DashboardPodmanHostListComponentUtil extends DashboardBaseComponentUtil {
|
|
27
|
+
public static override getDefaultComponent(): DashboardPodmanHostListComponent {
|
|
28
|
+
return {
|
|
29
|
+
_type: ObjectType.DashboardComponent,
|
|
30
|
+
componentType: DashboardComponentType.PodmanHostList,
|
|
31
|
+
widthInDashboardUnits: 6,
|
|
32
|
+
heightInDashboardUnits: 4,
|
|
33
|
+
topInDashboardUnits: 0,
|
|
34
|
+
leftInDashboardUnits: 0,
|
|
35
|
+
componentId: ObjectID.generate(),
|
|
36
|
+
minHeightInDashboardUnits: 3,
|
|
37
|
+
minWidthInDashboardUnits: 6,
|
|
38
|
+
arguments: {
|
|
39
|
+
maxRows: 25,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public static override getComponentConfigArguments(): Array<
|
|
45
|
+
ComponentArgument<DashboardPodmanHostListComponent>
|
|
46
|
+
> {
|
|
47
|
+
const args: Array<ComponentArgument<DashboardPodmanHostListComponent>> = [];
|
|
48
|
+
|
|
49
|
+
args.push({
|
|
50
|
+
name: "Title",
|
|
51
|
+
description: "Header shown above the host list",
|
|
52
|
+
required: false,
|
|
53
|
+
type: ComponentInputType.Text,
|
|
54
|
+
id: "title",
|
|
55
|
+
section: DisplaySection,
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
args.push({
|
|
59
|
+
name: "Max Rows",
|
|
60
|
+
description: "Maximum number of hosts to show",
|
|
61
|
+
required: false,
|
|
62
|
+
type: ComponentInputType.Number,
|
|
63
|
+
id: "maxRows",
|
|
64
|
+
placeholder: "25",
|
|
65
|
+
section: DisplaySection,
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
args.push(
|
|
69
|
+
getViewModeArgument<DashboardPodmanHostListComponent>(DisplaySection),
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
args.push({
|
|
73
|
+
name: "Connection Status",
|
|
74
|
+
description: "Quick filter by OTel collector status",
|
|
75
|
+
required: false,
|
|
76
|
+
type: ComponentInputType.Dropdown,
|
|
77
|
+
id: "statusFilter",
|
|
78
|
+
section: FiltersSection,
|
|
79
|
+
dropdownOptions: [
|
|
80
|
+
{ label: "All", value: "" },
|
|
81
|
+
{ label: "Connected only", value: "connected" },
|
|
82
|
+
{ label: "Disconnected only", value: "disconnected" },
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
return args;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import DashboardPodmanImageListComponent from "../../../Types/Dashboard/DashboardComponents/DashboardPodmanImageListComponent";
|
|
2
|
+
import { ObjectType } from "../../../Types/JSON";
|
|
3
|
+
import ObjectID from "../../../Types/ObjectID";
|
|
4
|
+
import DashboardBaseComponentUtil from "./DashboardBaseComponent";
|
|
5
|
+
import {
|
|
6
|
+
ComponentArgument,
|
|
7
|
+
ComponentArgumentSection,
|
|
8
|
+
ComponentInputType,
|
|
9
|
+
EntityFilterModelType,
|
|
10
|
+
} from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
11
|
+
import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
|
|
12
|
+
import { getViewModeArgument } from "./DashboardListSharedArgs";
|
|
13
|
+
|
|
14
|
+
const DisplaySection: ComponentArgumentSection = {
|
|
15
|
+
name: "Display Options",
|
|
16
|
+
description: "Configure the widget title and row limit",
|
|
17
|
+
order: 1,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const FiltersSection: ComponentArgumentSection = {
|
|
21
|
+
name: "Filters",
|
|
22
|
+
description: "Narrow down which images are shown",
|
|
23
|
+
order: 2,
|
|
24
|
+
defaultCollapsed: true,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default class DashboardPodmanImageListComponentUtil extends DashboardBaseComponentUtil {
|
|
28
|
+
public static override getDefaultComponent(): DashboardPodmanImageListComponent {
|
|
29
|
+
return {
|
|
30
|
+
_type: ObjectType.DashboardComponent,
|
|
31
|
+
componentType: DashboardComponentType.PodmanImageList,
|
|
32
|
+
widthInDashboardUnits: 6,
|
|
33
|
+
heightInDashboardUnits: 4,
|
|
34
|
+
topInDashboardUnits: 0,
|
|
35
|
+
leftInDashboardUnits: 0,
|
|
36
|
+
componentId: ObjectID.generate(),
|
|
37
|
+
minHeightInDashboardUnits: 3,
|
|
38
|
+
minWidthInDashboardUnits: 6,
|
|
39
|
+
arguments: {
|
|
40
|
+
maxRows: 25,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public static override getComponentConfigArguments(): Array<
|
|
46
|
+
ComponentArgument<DashboardPodmanImageListComponent>
|
|
47
|
+
> {
|
|
48
|
+
const args: Array<ComponentArgument<DashboardPodmanImageListComponent>> =
|
|
49
|
+
[];
|
|
50
|
+
|
|
51
|
+
args.push({
|
|
52
|
+
name: "Title",
|
|
53
|
+
description: "Header shown above the image list",
|
|
54
|
+
required: false,
|
|
55
|
+
type: ComponentInputType.Text,
|
|
56
|
+
id: "title",
|
|
57
|
+
section: DisplaySection,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
args.push({
|
|
61
|
+
name: "Max Rows",
|
|
62
|
+
description: "Maximum number of images to show",
|
|
63
|
+
required: false,
|
|
64
|
+
type: ComponentInputType.Number,
|
|
65
|
+
id: "maxRows",
|
|
66
|
+
placeholder: "25",
|
|
67
|
+
section: DisplaySection,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
args.push(
|
|
71
|
+
getViewModeArgument<DashboardPodmanImageListComponent>(DisplaySection),
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
args.push({
|
|
75
|
+
name: "Hosts",
|
|
76
|
+
description: "Show only images from the selected hosts",
|
|
77
|
+
required: false,
|
|
78
|
+
type: ComponentInputType.EntityMultiSelectDropdown,
|
|
79
|
+
id: "podmanHostIds",
|
|
80
|
+
placeholder: "All hosts",
|
|
81
|
+
section: FiltersSection,
|
|
82
|
+
entityFilterModelType: EntityFilterModelType.PodmanHost,
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
args.push({
|
|
86
|
+
name: "Name Contains",
|
|
87
|
+
description: "Show only images whose name contains this substring",
|
|
88
|
+
required: false,
|
|
89
|
+
type: ComponentInputType.Text,
|
|
90
|
+
id: "nameSearch",
|
|
91
|
+
placeholder: "nginx",
|
|
92
|
+
section: FiltersSection,
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
return args;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import DashboardPodmanNetworkListComponent from "../../../Types/Dashboard/DashboardComponents/DashboardPodmanNetworkListComponent";
|
|
2
|
+
import { ObjectType } from "../../../Types/JSON";
|
|
3
|
+
import ObjectID from "../../../Types/ObjectID";
|
|
4
|
+
import DashboardBaseComponentUtil from "./DashboardBaseComponent";
|
|
5
|
+
import {
|
|
6
|
+
ComponentArgument,
|
|
7
|
+
ComponentArgumentSection,
|
|
8
|
+
ComponentInputType,
|
|
9
|
+
EntityFilterModelType,
|
|
10
|
+
} from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
11
|
+
import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
|
|
12
|
+
import { getViewModeArgument } from "./DashboardListSharedArgs";
|
|
13
|
+
|
|
14
|
+
const DisplaySection: ComponentArgumentSection = {
|
|
15
|
+
name: "Display Options",
|
|
16
|
+
description: "Configure the widget title and row limit",
|
|
17
|
+
order: 1,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const FiltersSection: ComponentArgumentSection = {
|
|
21
|
+
name: "Filters",
|
|
22
|
+
description: "Narrow down which networks are shown",
|
|
23
|
+
order: 2,
|
|
24
|
+
defaultCollapsed: true,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default class DashboardPodmanNetworkListComponentUtil extends DashboardBaseComponentUtil {
|
|
28
|
+
public static override getDefaultComponent(): DashboardPodmanNetworkListComponent {
|
|
29
|
+
return {
|
|
30
|
+
_type: ObjectType.DashboardComponent,
|
|
31
|
+
componentType: DashboardComponentType.PodmanNetworkList,
|
|
32
|
+
widthInDashboardUnits: 6,
|
|
33
|
+
heightInDashboardUnits: 4,
|
|
34
|
+
topInDashboardUnits: 0,
|
|
35
|
+
leftInDashboardUnits: 0,
|
|
36
|
+
componentId: ObjectID.generate(),
|
|
37
|
+
minHeightInDashboardUnits: 3,
|
|
38
|
+
minWidthInDashboardUnits: 6,
|
|
39
|
+
arguments: {
|
|
40
|
+
maxRows: 25,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public static override getComponentConfigArguments(): Array<
|
|
46
|
+
ComponentArgument<DashboardPodmanNetworkListComponent>
|
|
47
|
+
> {
|
|
48
|
+
const args: Array<ComponentArgument<DashboardPodmanNetworkListComponent>> =
|
|
49
|
+
[];
|
|
50
|
+
|
|
51
|
+
args.push({
|
|
52
|
+
name: "Title",
|
|
53
|
+
description: "Header shown above the network list",
|
|
54
|
+
required: false,
|
|
55
|
+
type: ComponentInputType.Text,
|
|
56
|
+
id: "title",
|
|
57
|
+
section: DisplaySection,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
args.push({
|
|
61
|
+
name: "Max Rows",
|
|
62
|
+
description: "Maximum number of networks to show",
|
|
63
|
+
required: false,
|
|
64
|
+
type: ComponentInputType.Number,
|
|
65
|
+
id: "maxRows",
|
|
66
|
+
placeholder: "25",
|
|
67
|
+
section: DisplaySection,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
args.push(
|
|
71
|
+
getViewModeArgument<DashboardPodmanNetworkListComponent>(DisplaySection),
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
args.push({
|
|
75
|
+
name: "Hosts",
|
|
76
|
+
description: "Show only networks from the selected hosts",
|
|
77
|
+
required: false,
|
|
78
|
+
type: ComponentInputType.EntityMultiSelectDropdown,
|
|
79
|
+
id: "podmanHostIds",
|
|
80
|
+
placeholder: "All hosts",
|
|
81
|
+
section: FiltersSection,
|
|
82
|
+
entityFilterModelType: EntityFilterModelType.PodmanHost,
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
return args;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import DashboardPodmanVolumeListComponent from "../../../Types/Dashboard/DashboardComponents/DashboardPodmanVolumeListComponent";
|
|
2
|
+
import { ObjectType } from "../../../Types/JSON";
|
|
3
|
+
import ObjectID from "../../../Types/ObjectID";
|
|
4
|
+
import DashboardBaseComponentUtil from "./DashboardBaseComponent";
|
|
5
|
+
import {
|
|
6
|
+
ComponentArgument,
|
|
7
|
+
ComponentArgumentSection,
|
|
8
|
+
ComponentInputType,
|
|
9
|
+
EntityFilterModelType,
|
|
10
|
+
} from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
11
|
+
import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
|
|
12
|
+
import { getViewModeArgument } from "./DashboardListSharedArgs";
|
|
13
|
+
|
|
14
|
+
const DisplaySection: ComponentArgumentSection = {
|
|
15
|
+
name: "Display Options",
|
|
16
|
+
description: "Configure the widget title and row limit",
|
|
17
|
+
order: 1,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const FiltersSection: ComponentArgumentSection = {
|
|
21
|
+
name: "Filters",
|
|
22
|
+
description: "Narrow down which volumes are shown",
|
|
23
|
+
order: 2,
|
|
24
|
+
defaultCollapsed: true,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default class DashboardPodmanVolumeListComponentUtil extends DashboardBaseComponentUtil {
|
|
28
|
+
public static override getDefaultComponent(): DashboardPodmanVolumeListComponent {
|
|
29
|
+
return {
|
|
30
|
+
_type: ObjectType.DashboardComponent,
|
|
31
|
+
componentType: DashboardComponentType.PodmanVolumeList,
|
|
32
|
+
widthInDashboardUnits: 6,
|
|
33
|
+
heightInDashboardUnits: 4,
|
|
34
|
+
topInDashboardUnits: 0,
|
|
35
|
+
leftInDashboardUnits: 0,
|
|
36
|
+
componentId: ObjectID.generate(),
|
|
37
|
+
minHeightInDashboardUnits: 3,
|
|
38
|
+
minWidthInDashboardUnits: 6,
|
|
39
|
+
arguments: {
|
|
40
|
+
maxRows: 25,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public static override getComponentConfigArguments(): Array<
|
|
46
|
+
ComponentArgument<DashboardPodmanVolumeListComponent>
|
|
47
|
+
> {
|
|
48
|
+
const args: Array<ComponentArgument<DashboardPodmanVolumeListComponent>> =
|
|
49
|
+
[];
|
|
50
|
+
|
|
51
|
+
args.push({
|
|
52
|
+
name: "Title",
|
|
53
|
+
description: "Header shown above the volume list",
|
|
54
|
+
required: false,
|
|
55
|
+
type: ComponentInputType.Text,
|
|
56
|
+
id: "title",
|
|
57
|
+
section: DisplaySection,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
args.push({
|
|
61
|
+
name: "Max Rows",
|
|
62
|
+
description: "Maximum number of volumes to show",
|
|
63
|
+
required: false,
|
|
64
|
+
type: ComponentInputType.Number,
|
|
65
|
+
id: "maxRows",
|
|
66
|
+
placeholder: "25",
|
|
67
|
+
section: DisplaySection,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
args.push(
|
|
71
|
+
getViewModeArgument<DashboardPodmanVolumeListComponent>(DisplaySection),
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
args.push({
|
|
75
|
+
name: "Hosts",
|
|
76
|
+
description: "Show only volumes from the selected hosts",
|
|
77
|
+
required: false,
|
|
78
|
+
type: ComponentInputType.EntityMultiSelectDropdown,
|
|
79
|
+
id: "podmanHostIds",
|
|
80
|
+
placeholder: "All hosts",
|
|
81
|
+
section: FiltersSection,
|
|
82
|
+
entityFilterModelType: EntityFilterModelType.PodmanHost,
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
return args;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import DashboardProxmoxGuestListComponent from "../../../Types/Dashboard/DashboardComponents/DashboardProxmoxGuestListComponent";
|
|
2
|
+
import { ObjectType } from "../../../Types/JSON";
|
|
3
|
+
import ObjectID from "../../../Types/ObjectID";
|
|
4
|
+
import DashboardBaseComponentUtil from "./DashboardBaseComponent";
|
|
5
|
+
import {
|
|
6
|
+
ComponentArgument,
|
|
7
|
+
ComponentInputType,
|
|
8
|
+
} from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
9
|
+
import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
|
|
10
|
+
import {
|
|
11
|
+
ProxmoxFiltersSection,
|
|
12
|
+
getProxmoxCommonArguments,
|
|
13
|
+
} from "./DashboardProxmoxResourceListShared";
|
|
14
|
+
|
|
15
|
+
export default class DashboardProxmoxGuestListComponentUtil extends DashboardBaseComponentUtil {
|
|
16
|
+
public static override getDefaultComponent(): DashboardProxmoxGuestListComponent {
|
|
17
|
+
return {
|
|
18
|
+
_type: ObjectType.DashboardComponent,
|
|
19
|
+
componentType: DashboardComponentType.ProxmoxGuestList,
|
|
20
|
+
widthInDashboardUnits: 6,
|
|
21
|
+
heightInDashboardUnits: 4,
|
|
22
|
+
topInDashboardUnits: 0,
|
|
23
|
+
leftInDashboardUnits: 0,
|
|
24
|
+
componentId: ObjectID.generate(),
|
|
25
|
+
minHeightInDashboardUnits: 3,
|
|
26
|
+
minWidthInDashboardUnits: 6,
|
|
27
|
+
arguments: {
|
|
28
|
+
maxRows: 25,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public static override getComponentConfigArguments(): Array<
|
|
34
|
+
ComponentArgument<DashboardProxmoxGuestListComponent>
|
|
35
|
+
> {
|
|
36
|
+
const args: Array<ComponentArgument<DashboardProxmoxGuestListComponent>> =
|
|
37
|
+
getProxmoxCommonArguments<DashboardProxmoxGuestListComponent>();
|
|
38
|
+
|
|
39
|
+
args.push({
|
|
40
|
+
name: "Guest Type",
|
|
41
|
+
description: "Show only QEMU VMs or only LXC containers",
|
|
42
|
+
required: false,
|
|
43
|
+
type: ComponentInputType.Dropdown,
|
|
44
|
+
id: "guestTypeFilter",
|
|
45
|
+
section: ProxmoxFiltersSection,
|
|
46
|
+
dropdownOptions: [
|
|
47
|
+
{ label: "All", value: "" },
|
|
48
|
+
{ label: "QEMU VMs only", value: "qemu" },
|
|
49
|
+
{ label: "LXC containers only", value: "lxc" },
|
|
50
|
+
],
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
args.push({
|
|
54
|
+
name: "Status",
|
|
55
|
+
description: "Quick filter by guest run state",
|
|
56
|
+
required: false,
|
|
57
|
+
type: ComponentInputType.Dropdown,
|
|
58
|
+
id: "statusFilter",
|
|
59
|
+
section: ProxmoxFiltersSection,
|
|
60
|
+
dropdownOptions: [
|
|
61
|
+
{ label: "All", value: "" },
|
|
62
|
+
{ label: "Running only", value: "running" },
|
|
63
|
+
{ label: "Stopped only", value: "stopped" },
|
|
64
|
+
],
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
return args;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import DashboardProxmoxNodeListComponent from "../../../Types/Dashboard/DashboardComponents/DashboardProxmoxNodeListComponent";
|
|
2
|
+
import { ObjectType } from "../../../Types/JSON";
|
|
3
|
+
import ObjectID from "../../../Types/ObjectID";
|
|
4
|
+
import DashboardBaseComponentUtil from "./DashboardBaseComponent";
|
|
5
|
+
import {
|
|
6
|
+
ComponentArgument,
|
|
7
|
+
ComponentInputType,
|
|
8
|
+
} from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
9
|
+
import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
|
|
10
|
+
import {
|
|
11
|
+
ProxmoxFiltersSection,
|
|
12
|
+
getProxmoxCommonArguments,
|
|
13
|
+
} from "./DashboardProxmoxResourceListShared";
|
|
14
|
+
|
|
15
|
+
export default class DashboardProxmoxNodeListComponentUtil extends DashboardBaseComponentUtil {
|
|
16
|
+
public static override getDefaultComponent(): DashboardProxmoxNodeListComponent {
|
|
17
|
+
return {
|
|
18
|
+
_type: ObjectType.DashboardComponent,
|
|
19
|
+
componentType: DashboardComponentType.ProxmoxNodeList,
|
|
20
|
+
widthInDashboardUnits: 6,
|
|
21
|
+
heightInDashboardUnits: 4,
|
|
22
|
+
topInDashboardUnits: 0,
|
|
23
|
+
leftInDashboardUnits: 0,
|
|
24
|
+
componentId: ObjectID.generate(),
|
|
25
|
+
minHeightInDashboardUnits: 3,
|
|
26
|
+
minWidthInDashboardUnits: 6,
|
|
27
|
+
arguments: {
|
|
28
|
+
maxRows: 25,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public static override getComponentConfigArguments(): Array<
|
|
34
|
+
ComponentArgument<DashboardProxmoxNodeListComponent>
|
|
35
|
+
> {
|
|
36
|
+
const args: Array<ComponentArgument<DashboardProxmoxNodeListComponent>> =
|
|
37
|
+
getProxmoxCommonArguments<DashboardProxmoxNodeListComponent>();
|
|
38
|
+
|
|
39
|
+
args.push({
|
|
40
|
+
name: "Status",
|
|
41
|
+
description: "Quick filter by node availability",
|
|
42
|
+
required: false,
|
|
43
|
+
type: ComponentInputType.Dropdown,
|
|
44
|
+
id: "statusFilter",
|
|
45
|
+
section: ProxmoxFiltersSection,
|
|
46
|
+
dropdownOptions: [
|
|
47
|
+
{ label: "All", value: "" },
|
|
48
|
+
{ label: "Online only", value: "online" },
|
|
49
|
+
{ label: "Offline only", value: "offline" },
|
|
50
|
+
],
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
return args;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ComponentArgument,
|
|
3
|
+
ComponentArgumentSection,
|
|
4
|
+
ComponentInputType,
|
|
5
|
+
EntityFilterModelType,
|
|
6
|
+
} from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
7
|
+
import DashboardBaseComponent from "../../../Types/Dashboard/DashboardComponents/DashboardBaseComponent";
|
|
8
|
+
import { getViewModeArgument } from "./DashboardListSharedArgs";
|
|
9
|
+
|
|
10
|
+
export const ProxmoxDisplaySection: ComponentArgumentSection = {
|
|
11
|
+
name: "Display Options",
|
|
12
|
+
description: "Configure the widget title and row limit",
|
|
13
|
+
order: 1,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const ProxmoxFiltersSection: ComponentArgumentSection = {
|
|
17
|
+
name: "Filters",
|
|
18
|
+
description: "Narrow down which resources are shown",
|
|
19
|
+
order: 2,
|
|
20
|
+
defaultCollapsed: true,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export function getProxmoxCommonArguments<
|
|
24
|
+
T extends DashboardBaseComponent,
|
|
25
|
+
>(): Array<ComponentArgument<T>> {
|
|
26
|
+
const args: Array<ComponentArgument<T>> = [];
|
|
27
|
+
|
|
28
|
+
args.push({
|
|
29
|
+
name: "Title",
|
|
30
|
+
description: "Header shown above the list",
|
|
31
|
+
required: false,
|
|
32
|
+
type: ComponentInputType.Text,
|
|
33
|
+
id: "title" as keyof T["arguments"],
|
|
34
|
+
section: ProxmoxDisplaySection,
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
args.push({
|
|
38
|
+
name: "Max Rows",
|
|
39
|
+
description: "Maximum number of rows to show",
|
|
40
|
+
required: false,
|
|
41
|
+
type: ComponentInputType.Number,
|
|
42
|
+
id: "maxRows" as keyof T["arguments"],
|
|
43
|
+
placeholder: "25",
|
|
44
|
+
section: ProxmoxDisplaySection,
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
args.push(getViewModeArgument<T>(ProxmoxDisplaySection));
|
|
48
|
+
|
|
49
|
+
args.push({
|
|
50
|
+
name: "Clusters",
|
|
51
|
+
description: "Show only resources from the selected Proxmox clusters",
|
|
52
|
+
required: false,
|
|
53
|
+
type: ComponentInputType.EntityMultiSelectDropdown,
|
|
54
|
+
id: "proxmoxClusterIds" as keyof T["arguments"],
|
|
55
|
+
placeholder: "All clusters",
|
|
56
|
+
section: ProxmoxFiltersSection,
|
|
57
|
+
entityFilterModelType: EntityFilterModelType.ProxmoxCluster,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
return args;
|
|
61
|
+
}
|
|
@@ -3,6 +3,8 @@ import DashboardBaseComponent from "../../../Types/Dashboard/DashboardComponents
|
|
|
3
3
|
import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
|
|
4
4
|
import BadDataException from "../../../Types/Exception/BadDataException";
|
|
5
5
|
import DashboardAlertListComponentUtil from "./DashboardAlertListComponent";
|
|
6
|
+
import DashboardCephOsdListComponentUtil from "./DashboardCephOsdListComponent";
|
|
7
|
+
import DashboardCephPoolListComponentUtil from "./DashboardCephPoolListComponent";
|
|
6
8
|
import DashboardChartComponentUtil from "./DashboardChartComponent";
|
|
7
9
|
import DashboardDockerContainerListComponentUtil from "./DashboardDockerContainerListComponent";
|
|
8
10
|
import DashboardDockerHostListComponentUtil from "./DashboardDockerHostListComponent";
|
|
@@ -22,6 +24,15 @@ import DashboardKubernetesPodListComponentUtil from "./DashboardKubernetesPodLis
|
|
|
22
24
|
import DashboardKubernetesStatefulSetListComponentUtil from "./DashboardKubernetesStatefulSetListComponent";
|
|
23
25
|
import DashboardLogStreamComponentUtil from "./DashboardLogStreamComponent";
|
|
24
26
|
import DashboardMonitorListComponentUtil from "./DashboardMonitorListComponent";
|
|
27
|
+
import DashboardPodmanContainerListComponentUtil from "./DashboardPodmanContainerListComponent";
|
|
28
|
+
import DashboardPodmanHostListComponentUtil from "./DashboardPodmanHostListComponent";
|
|
29
|
+
import DashboardPodmanImageListComponentUtil from "./DashboardPodmanImageListComponent";
|
|
30
|
+
import DashboardPodmanNetworkListComponentUtil from "./DashboardPodmanNetworkListComponent";
|
|
31
|
+
import DashboardPodmanVolumeListComponentUtil from "./DashboardPodmanVolumeListComponent";
|
|
32
|
+
import DashboardProxmoxGuestListComponentUtil from "./DashboardProxmoxGuestListComponent";
|
|
33
|
+
import DashboardProxmoxNodeListComponentUtil from "./DashboardProxmoxNodeListComponent";
|
|
34
|
+
import DashboardDockerSwarmNodeListComponentUtil from "./DashboardDockerSwarmNodeListComponent";
|
|
35
|
+
import DashboardDockerSwarmServiceListComponentUtil from "./DashboardDockerSwarmServiceListComponent";
|
|
25
36
|
import DashboardTableComponentUtil from "./DashboardTableComponent";
|
|
26
37
|
import DashboardTextComponentUtil from "./DashboardTextComponent";
|
|
27
38
|
import DashboardTraceChartComponentUtil from "./DashboardTraceChartComponent";
|
|
@@ -187,12 +198,80 @@ export default class DashboardComponentsUtil {
|
|
|
187
198
|
>;
|
|
188
199
|
}
|
|
189
200
|
|
|
201
|
+
if (dashboardComponentType === DashboardComponentType.PodmanHostList) {
|
|
202
|
+
return DashboardPodmanHostListComponentUtil.getComponentConfigArguments() as Array<
|
|
203
|
+
ComponentArgument<DashboardBaseComponent>
|
|
204
|
+
>;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (dashboardComponentType === DashboardComponentType.PodmanContainerList) {
|
|
208
|
+
return DashboardPodmanContainerListComponentUtil.getComponentConfigArguments() as Array<
|
|
209
|
+
ComponentArgument<DashboardBaseComponent>
|
|
210
|
+
>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (dashboardComponentType === DashboardComponentType.PodmanImageList) {
|
|
214
|
+
return DashboardPodmanImageListComponentUtil.getComponentConfigArguments() as Array<
|
|
215
|
+
ComponentArgument<DashboardBaseComponent>
|
|
216
|
+
>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (dashboardComponentType === DashboardComponentType.PodmanNetworkList) {
|
|
220
|
+
return DashboardPodmanNetworkListComponentUtil.getComponentConfigArguments() as Array<
|
|
221
|
+
ComponentArgument<DashboardBaseComponent>
|
|
222
|
+
>;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (dashboardComponentType === DashboardComponentType.PodmanVolumeList) {
|
|
226
|
+
return DashboardPodmanVolumeListComponentUtil.getComponentConfigArguments() as Array<
|
|
227
|
+
ComponentArgument<DashboardBaseComponent>
|
|
228
|
+
>;
|
|
229
|
+
}
|
|
230
|
+
|
|
190
231
|
if (dashboardComponentType === DashboardComponentType.HostList) {
|
|
191
232
|
return DashboardHostListComponentUtil.getComponentConfigArguments() as Array<
|
|
192
233
|
ComponentArgument<DashboardBaseComponent>
|
|
193
234
|
>;
|
|
194
235
|
}
|
|
195
236
|
|
|
237
|
+
if (dashboardComponentType === DashboardComponentType.ProxmoxNodeList) {
|
|
238
|
+
return DashboardProxmoxNodeListComponentUtil.getComponentConfigArguments() as Array<
|
|
239
|
+
ComponentArgument<DashboardBaseComponent>
|
|
240
|
+
>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (dashboardComponentType === DashboardComponentType.ProxmoxGuestList) {
|
|
244
|
+
return DashboardProxmoxGuestListComponentUtil.getComponentConfigArguments() as Array<
|
|
245
|
+
ComponentArgument<DashboardBaseComponent>
|
|
246
|
+
>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
if (dashboardComponentType === DashboardComponentType.DockerSwarmNodeList) {
|
|
250
|
+
return DashboardDockerSwarmNodeListComponentUtil.getComponentConfigArguments() as Array<
|
|
251
|
+
ComponentArgument<DashboardBaseComponent>
|
|
252
|
+
>;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (
|
|
256
|
+
dashboardComponentType === DashboardComponentType.DockerSwarmServiceList
|
|
257
|
+
) {
|
|
258
|
+
return DashboardDockerSwarmServiceListComponentUtil.getComponentConfigArguments() as Array<
|
|
259
|
+
ComponentArgument<DashboardBaseComponent>
|
|
260
|
+
>;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (dashboardComponentType === DashboardComponentType.CephOsdList) {
|
|
264
|
+
return DashboardCephOsdListComponentUtil.getComponentConfigArguments() as Array<
|
|
265
|
+
ComponentArgument<DashboardBaseComponent>
|
|
266
|
+
>;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (dashboardComponentType === DashboardComponentType.CephPoolList) {
|
|
270
|
+
return DashboardCephPoolListComponentUtil.getComponentConfigArguments() as Array<
|
|
271
|
+
ComponentArgument<DashboardBaseComponent>
|
|
272
|
+
>;
|
|
273
|
+
}
|
|
274
|
+
|
|
196
275
|
throw new BadDataException(
|
|
197
276
|
`Unknown dashboard component type: ${dashboardComponentType}`,
|
|
198
277
|
);
|