@oneuptime/common 11.0.0 → 11.0.2
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 +110 -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/Host.ts +64 -0
- package/Models/DatabaseModels/Incident.ts +110 -0
- package/Models/DatabaseModels/Index.ts +24 -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 +110 -0
- package/Server/API/BillingInvoiceAPI.ts +47 -7
- package/Server/API/CephResourceAPI.ts +134 -0
- package/Server/API/DashboardAPI.ts +46 -0
- package/Server/API/ProjectAPI.ts +15 -0
- package/Server/API/ProxmoxResourceAPI.ts +132 -0
- package/Server/API/ResellerPlanAPI.ts +17 -0
- package/Server/Infrastructure/GlobalCache.ts +8 -2
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781500000000-AddProxmoxAndCephClusterTables.ts +163 -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 +8 -0
- package/Server/Infrastructure/Redis.ts +40 -12
- 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/ExceptionAggregationService.ts +2 -0
- package/Server/Services/HostService.ts +11 -3
- package/Server/Services/Index.ts +24 -0
- package/Server/Services/KubernetesClusterService.ts +11 -3
- package/Server/Services/LogAggregationService.ts +2 -0
- package/Server/Services/MetricAggregationService.ts +2 -0
- package/Server/Services/OpenTelemetryIngestService.ts +36 -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/ServerlessFunctionService.ts +11 -3
- package/Server/Services/TelemetryUsageBillingService.ts +41 -3
- package/Server/Services/TraceAggregationService.ts +2 -0
- package/Server/Types/AnalyticsDatabase/AggregateBy.ts +8 -23
- package/Server/Utils/Monitor/MonitorAlert.ts +45 -0
- package/Server/Utils/Monitor/MonitorClusterContext.ts +129 -0
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +344 -4
- package/Server/Utils/Monitor/MonitorIncident.ts +130 -7
- package/Server/Utils/Monitor/MonitorMaintenanceSuppression.ts +39 -6
- package/Server/Utils/Monitor/MonitorTemplateUtil.ts +3 -1
- package/Server/Utils/Monitor/SeriesResourceLabels.ts +33 -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/TelemetryEntity.ts +85 -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 +13 -0
- package/Tests/Server/Utils/Telemetry/ProxmoxCephSnapshotScan.test.ts +879 -0
- package/Tests/Server/Utils/Telemetry/TelemetryEntity.test.ts +196 -0
- package/Tests/Types/Monitor/CephAlertTemplates.test.ts +1231 -0
- package/Tests/Types/Monitor/ProxmoxAlertTemplates.test.ts +732 -0
- package/Tests/Utils/ModelImportExport.test.ts +366 -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 +4 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardCephOsdListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardCephPoolListComponent.ts +14 -0
- package/Types/Dashboard/DashboardComponents/DashboardProxmoxGuestListComponent.ts +17 -0
- package/Types/Dashboard/DashboardComponents/DashboardProxmoxNodeListComponent.ts +16 -0
- package/Types/Dashboard/DashboardTemplates.ts +446 -0
- package/Types/Icon/IconProp.ts +2 -0
- package/Types/Monitor/CephAlertTemplates.ts +1647 -0
- package/Types/Monitor/CephMetricCatalog.ts +409 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.ts +44 -0
- package/Types/Monitor/MonitorStep.ts +64 -0
- package/Types/Monitor/MonitorStepCephMonitor.ts +57 -0
- package/Types/Monitor/MonitorStepProxmoxMonitor.ts +81 -0
- package/Types/Monitor/MonitorType.ts +29 -1
- package/Types/Monitor/ProxmoxAlertTemplates.ts +899 -0
- package/Types/Monitor/ProxmoxMetricCatalog.ts +382 -0
- package/Types/Permission.ts +464 -0
- package/Types/Telemetry/EntityType.ts +11 -0
- package/Types/Telemetry/ServiceType.ts +2 -0
- package/UI/Components/Icon/Icon.tsx +84 -0
- package/UI/Components/ImportExport/ExportModelCard.tsx +90 -0
- package/UI/Components/ImportExport/ImportModelsModal.tsx +239 -0
- package/UI/Components/ModelTable/ModelTable.tsx +294 -143
- package/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.ts +9 -5
- package/UI/Utils/ModelImportExport.ts +207 -0
- package/UI/Utils/Telemetry/Telemetry.ts +16 -21
- package/UI/Utils/TelemetryService.ts +7 -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/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 +28 -0
- package/Utils/ModelImportExport.ts +369 -0
- package/Utils/Telemetry/EntityKey.ts +35 -0
- package/Utils/Telemetry/EntityRelationship.ts +6 -0
- package/Utils/Telemetry/HeartbeatAvailability.ts +262 -0
- package/build/dist/Models/DatabaseModels/Alert.js +108 -0
- package/build/dist/Models/DatabaseModels/Alert.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/Host.js +63 -0
- package/build/dist/Models/DatabaseModels/Host.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Incident.js +108 -0
- package/build/dist/Models/DatabaseModels/Incident.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +24 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- 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 +108 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenance.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 +46 -0
- package/build/dist/Server/API/DashboardAPI.js.map +1 -1
- 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/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/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 +8 -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/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/ExceptionAggregationService.js +2 -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/Index.js +24 -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 +2 -0
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/MetricAggregationService.js +2 -0
- package/build/dist/Server/Services/MetricAggregationService.js.map +1 -1
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +37 -7
- package/build/dist/Server/Services/OpenTelemetryIngestService.js.map +1 -1
- 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/ServerlessFunctionService.js +10 -2
- package/build/dist/Server/Services/ServerlessFunctionService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryUsageBillingService.js +30 -3
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/TraceAggregationService.js +2 -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/Utils/Monitor/MonitorAlert.js +36 -0
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js +90 -0
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +228 -4
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +103 -8
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js +23 -6
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js +3 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js +23 -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/TelemetryEntity.js +62 -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 +4 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +2 -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/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 +394 -0
- package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -1
- package/build/dist/Types/Icon/IconProp.js +2 -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/MonitorStep.js +46 -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/MonitorStepProxmoxMonitor.js +36 -0
- package/build/dist/Types/Monitor/MonitorStepProxmoxMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorType.js +27 -1
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- 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 +408 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Telemetry/EntityType.js +11 -0
- package/build/dist/Types/Telemetry/EntityType.js.map +1 -1
- package/build/dist/Types/Telemetry/ServiceType.js +2 -0
- package/build/dist/Types/Telemetry/ServiceType.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +33 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/ImportExport/ExportModelCard.js +50 -0
- package/build/dist/UI/Components/ImportExport/ExportModelCard.js.map +1 -0
- package/build/dist/UI/Components/ImportExport/ImportModelsModal.js +115 -0
- package/build/dist/UI/Components/ImportExport/ImportModelsModal.js.map +1 -0
- package/build/dist/UI/Components/ModelTable/ModelTable.js +166 -74
- package/build/dist/UI/Components/ModelTable/ModelTable.js.map +1 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js +5 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js.map +1 -1
- package/build/dist/UI/Utils/ModelImportExport.js +142 -0
- package/build/dist/UI/Utils/ModelImportExport.js.map +1 -0
- 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 +5 -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/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 +16 -0
- package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
- package/build/dist/Utils/ModelImportExport.js +257 -0
- package/build/dist/Utils/ModelImportExport.js.map +1 -0
- package/build/dist/Utils/Telemetry/EntityKey.js +27 -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
|
@@ -8,6 +8,8 @@ import {
|
|
|
8
8
|
keyForHost,
|
|
9
9
|
keyForService,
|
|
10
10
|
keyForKubernetesCluster,
|
|
11
|
+
keyForProxmoxCluster,
|
|
12
|
+
keyForCephCluster,
|
|
11
13
|
} from "../../../../Utils/Telemetry/EntityKey";
|
|
12
14
|
import logger from "../../../../Server/Utils/Logger";
|
|
13
15
|
import { describe, expect, test } from "@jest/globals";
|
|
@@ -234,6 +236,86 @@ describe("TelemetryEntity.extractEntities — per type", () => {
|
|
|
234
236
|
});
|
|
235
237
|
});
|
|
236
238
|
|
|
239
|
+
test("proxmox.cluster: keyed on proxmox.cluster.name", () => {
|
|
240
|
+
const e: ExtractedEntity | undefined = entityOfType(
|
|
241
|
+
{ "proxmox.cluster.name": "pve-prod" },
|
|
242
|
+
EntityType.ProxmoxCluster,
|
|
243
|
+
);
|
|
244
|
+
expect(e!.identifyingAttributes).toEqual({
|
|
245
|
+
"proxmox.cluster.name": "pve-prod",
|
|
246
|
+
});
|
|
247
|
+
expect(e!.entityKey).toBe(
|
|
248
|
+
expectedKey(PROJECT, EntityType.ProxmoxCluster, {
|
|
249
|
+
"proxmox.cluster.name": "pve-prod",
|
|
250
|
+
}),
|
|
251
|
+
);
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
test("proxmox: no entities without identifying proxmox attributes", () => {
|
|
255
|
+
expect(typesFor({ "proxmox.guest.name": "web-vm" })).not.toContain(
|
|
256
|
+
EntityType.ProxmoxGuest,
|
|
257
|
+
);
|
|
258
|
+
expect(typesFor({ "proxmox.guest.type": "qemu" })).toEqual([]);
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
test("proxmox.node: composes cluster + node identity", () => {
|
|
262
|
+
const e: ExtractedEntity | undefined = entityOfType(
|
|
263
|
+
{ "proxmox.cluster.name": "pve-prod", "proxmox.node.name": "pve-1" },
|
|
264
|
+
EntityType.ProxmoxNode,
|
|
265
|
+
);
|
|
266
|
+
expect(e!.identifyingAttributes).toEqual({
|
|
267
|
+
"proxmox.cluster.name": "pve-prod",
|
|
268
|
+
"proxmox.node.name": "pve-1",
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
test("proxmox.guest: composes cluster + vmid; numeric vmid coerces to string identity", () => {
|
|
273
|
+
const e: ExtractedEntity | undefined = entityOfType(
|
|
274
|
+
{ "proxmox.cluster.name": "pve-prod", "proxmox.guest.vmid": 100 },
|
|
275
|
+
EntityType.ProxmoxGuest,
|
|
276
|
+
);
|
|
277
|
+
expect(e!.identifyingAttributes).toEqual({
|
|
278
|
+
"proxmox.cluster.name": "pve-prod",
|
|
279
|
+
"proxmox.guest.vmid": "100",
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
test("proxmox.guest: node name is not identity (live migration keeps the key)", () => {
|
|
284
|
+
const beforeMigration: ExtractedEntity | undefined = entityOfType(
|
|
285
|
+
{
|
|
286
|
+
"proxmox.cluster.name": "pve-prod",
|
|
287
|
+
"proxmox.node.name": "pve-1",
|
|
288
|
+
"proxmox.guest.vmid": "100",
|
|
289
|
+
},
|
|
290
|
+
EntityType.ProxmoxGuest,
|
|
291
|
+
);
|
|
292
|
+
const afterMigration: ExtractedEntity | undefined = entityOfType(
|
|
293
|
+
{
|
|
294
|
+
"proxmox.cluster.name": "pve-prod",
|
|
295
|
+
"proxmox.node.name": "pve-2",
|
|
296
|
+
"proxmox.guest.vmid": "100",
|
|
297
|
+
},
|
|
298
|
+
EntityType.ProxmoxGuest,
|
|
299
|
+
);
|
|
300
|
+
expect(afterMigration!.entityKey).toBe(beforeMigration!.entityKey);
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
test("ceph.cluster: keyed on name only, ignoring fsid (read side is name-based)", () => {
|
|
304
|
+
const e: ExtractedEntity | undefined = entityOfType(
|
|
305
|
+
{ "ceph.cluster.fsid": "f-1", "ceph.cluster.name": "ceph-prod" },
|
|
306
|
+
EntityType.CephCluster,
|
|
307
|
+
);
|
|
308
|
+
expect(e!.identifyingAttributes).toEqual({
|
|
309
|
+
"ceph.cluster.name": "ceph-prod",
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
test("ceph.cluster: no cluster entity from fsid alone", () => {
|
|
314
|
+
expect(typesFor({ "ceph.cluster.fsid": "f-1" })).not.toContain(
|
|
315
|
+
EntityType.CephCluster,
|
|
316
|
+
);
|
|
317
|
+
});
|
|
318
|
+
|
|
237
319
|
test("container & process flow as membership keys", () => {
|
|
238
320
|
const types: Array<EntityType> = typesFor({
|
|
239
321
|
"container.id": "c-1",
|
|
@@ -308,6 +390,23 @@ describe("TelemetryEntity.extractEntities — composition & safety", () => {
|
|
|
308
390
|
);
|
|
309
391
|
});
|
|
310
392
|
|
|
393
|
+
test("a full proxmox resource yields the whole entity set", () => {
|
|
394
|
+
const types: Array<EntityType> = typesFor({
|
|
395
|
+
"proxmox.cluster.name": "pve-prod",
|
|
396
|
+
"proxmox.node.name": "pve-1",
|
|
397
|
+
"proxmox.guest.vmid": "100",
|
|
398
|
+
"proxmox.guest.name": "web-vm",
|
|
399
|
+
"proxmox.guest.type": "qemu",
|
|
400
|
+
});
|
|
401
|
+
expect(new Set(types)).toEqual(
|
|
402
|
+
new Set([
|
|
403
|
+
EntityType.ProxmoxCluster,
|
|
404
|
+
EntityType.ProxmoxNode,
|
|
405
|
+
EntityType.ProxmoxGuest,
|
|
406
|
+
]),
|
|
407
|
+
);
|
|
408
|
+
});
|
|
409
|
+
|
|
311
410
|
test("extractEntityKeys is sorted, deduped, and a superset of the primary", () => {
|
|
312
411
|
const attrs: EntityAttributes = {
|
|
313
412
|
"service.name": "checkout",
|
|
@@ -346,6 +445,26 @@ describe("TelemetryEntity.extractEntities — composition & safety", () => {
|
|
|
346
445
|
});
|
|
347
446
|
expect(clusterA).not.toBe(clusterB);
|
|
348
447
|
});
|
|
448
|
+
|
|
449
|
+
test("same vmid in two proxmox clusters does not collide", () => {
|
|
450
|
+
const clusterA: string = TelemetryEntity.computeEntityKey({
|
|
451
|
+
projectId: PROJECT,
|
|
452
|
+
entityType: EntityType.ProxmoxGuest,
|
|
453
|
+
identifyingAttributes: {
|
|
454
|
+
"proxmox.cluster.name": "pve-us",
|
|
455
|
+
"proxmox.guest.vmid": "100",
|
|
456
|
+
},
|
|
457
|
+
});
|
|
458
|
+
const clusterB: string = TelemetryEntity.computeEntityKey({
|
|
459
|
+
projectId: PROJECT,
|
|
460
|
+
entityType: EntityType.ProxmoxGuest,
|
|
461
|
+
identifyingAttributes: {
|
|
462
|
+
"proxmox.cluster.name": "pve-eu",
|
|
463
|
+
"proxmox.guest.vmid": "100",
|
|
464
|
+
},
|
|
465
|
+
});
|
|
466
|
+
expect(clusterA).not.toBe(clusterB);
|
|
467
|
+
});
|
|
349
468
|
});
|
|
350
469
|
|
|
351
470
|
describe("read-side keyFor* helpers match ingest-side extraction", () => {
|
|
@@ -410,6 +529,41 @@ describe("read-side keyFor* helpers match ingest-side extraction", () => {
|
|
|
410
529
|
stamped!.entityKey,
|
|
411
530
|
);
|
|
412
531
|
});
|
|
532
|
+
|
|
533
|
+
test("keyForProxmoxCluster matches the cluster entity stamped from proxmox.cluster.name", () => {
|
|
534
|
+
const stamped: ExtractedEntity | undefined = entityOfType(
|
|
535
|
+
{ "proxmox.cluster.name": "pve-prod" },
|
|
536
|
+
EntityType.ProxmoxCluster,
|
|
537
|
+
);
|
|
538
|
+
expect(keyForProxmoxCluster(PROJECT, "pve-prod")).toBe(stamped!.entityKey);
|
|
539
|
+
});
|
|
540
|
+
|
|
541
|
+
test("keyForProxmoxCluster canonicalizes casing/whitespace like ingest", () => {
|
|
542
|
+
const stamped: ExtractedEntity | undefined = entityOfType(
|
|
543
|
+
{ "proxmox.cluster.name": "PVE-Prod" },
|
|
544
|
+
EntityType.ProxmoxCluster,
|
|
545
|
+
);
|
|
546
|
+
expect(keyForProxmoxCluster(PROJECT, "pve-prod")).toBe(stamped!.entityKey);
|
|
547
|
+
expect(keyForProxmoxCluster(PROJECT, " PVE-PROD ")).toBe(
|
|
548
|
+
stamped!.entityKey,
|
|
549
|
+
);
|
|
550
|
+
});
|
|
551
|
+
|
|
552
|
+
test("keyForCephCluster matches the cluster entity stamped from ceph.cluster.name", () => {
|
|
553
|
+
const stamped: ExtractedEntity | undefined = entityOfType(
|
|
554
|
+
{ "ceph.cluster.name": "ceph-prod" },
|
|
555
|
+
EntityType.CephCluster,
|
|
556
|
+
);
|
|
557
|
+
expect(keyForCephCluster(PROJECT, "ceph-prod")).toBe(stamped!.entityKey);
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
test("keyForCephCluster still matches when the resource also carries a fsid", () => {
|
|
561
|
+
const stamped: ExtractedEntity | undefined = entityOfType(
|
|
562
|
+
{ "ceph.cluster.fsid": "f-1", "ceph.cluster.name": "ceph-prod" },
|
|
563
|
+
EntityType.CephCluster,
|
|
564
|
+
);
|
|
565
|
+
expect(keyForCephCluster(PROJECT, "ceph-prod")).toBe(stamped!.entityKey);
|
|
566
|
+
});
|
|
413
567
|
});
|
|
414
568
|
|
|
415
569
|
describe("descriptive attributes & labels (never identity-bearing)", () => {
|
|
@@ -499,6 +653,48 @@ describe("descriptive attributes & labels (never identity-bearing)", () => {
|
|
|
499
653
|
});
|
|
500
654
|
});
|
|
501
655
|
|
|
656
|
+
test("proxmox.guest: name/type descriptive attributes are emitted, key unchanged", () => {
|
|
657
|
+
const bare: ExtractedEntity | undefined = entityOfType(
|
|
658
|
+
{ "proxmox.cluster.name": "pve-prod", "proxmox.guest.vmid": "100" },
|
|
659
|
+
EntityType.ProxmoxGuest,
|
|
660
|
+
);
|
|
661
|
+
const decorated: ExtractedEntity | undefined = entityOfType(
|
|
662
|
+
{
|
|
663
|
+
"proxmox.cluster.name": "pve-prod",
|
|
664
|
+
"proxmox.guest.vmid": "100",
|
|
665
|
+
"proxmox.guest.name": "web-vm",
|
|
666
|
+
"proxmox.guest.type": "qemu",
|
|
667
|
+
},
|
|
668
|
+
EntityType.ProxmoxGuest,
|
|
669
|
+
);
|
|
670
|
+
|
|
671
|
+
expect(decorated!.entityKey).toBe(bare!.entityKey);
|
|
672
|
+
expect(decorated!.identifyingAttributes).toEqual(
|
|
673
|
+
bare!.identifyingAttributes,
|
|
674
|
+
);
|
|
675
|
+
expect(decorated!.descriptiveAttributes).toEqual({
|
|
676
|
+
"proxmox.guest.name": "web-vm",
|
|
677
|
+
"proxmox.guest.type": "qemu",
|
|
678
|
+
});
|
|
679
|
+
expect(bare!.descriptiveAttributes).toBeUndefined();
|
|
680
|
+
});
|
|
681
|
+
|
|
682
|
+
test("ceph.cluster: fsid descriptive when present, key unchanged", () => {
|
|
683
|
+
const bare: ExtractedEntity | undefined = entityOfType(
|
|
684
|
+
{ "ceph.cluster.name": "ceph-prod" },
|
|
685
|
+
EntityType.CephCluster,
|
|
686
|
+
);
|
|
687
|
+
const decorated: ExtractedEntity | undefined = entityOfType(
|
|
688
|
+
{ "ceph.cluster.name": "ceph-prod", "ceph.cluster.fsid": "f-1" },
|
|
689
|
+
EntityType.CephCluster,
|
|
690
|
+
);
|
|
691
|
+
|
|
692
|
+
expect(decorated!.entityKey).toBe(bare!.entityKey);
|
|
693
|
+
expect(decorated!.descriptiveAttributes).toEqual({
|
|
694
|
+
"ceph.cluster.fsid": "f-1",
|
|
695
|
+
});
|
|
696
|
+
});
|
|
697
|
+
|
|
502
698
|
test("the full membership key set is byte-identical with and without descriptive attrs / labels", () => {
|
|
503
699
|
const identityOnly: EntityAttributes = {
|
|
504
700
|
"service.name": "checkout",
|