@oneuptime/common 11.0.2 → 11.0.4
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 +166 -0
- package/Models/DatabaseModels/AlertLabelRule.ts +38 -0
- package/Models/DatabaseModels/AlertOwnerRule.ts +38 -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/GlobalConfig.ts +19 -0
- package/Models/DatabaseModels/GlobalOidc.ts +351 -0
- package/Models/DatabaseModels/GlobalOidcProject.ts +265 -0
- package/Models/DatabaseModels/GlobalSso.ts +312 -0
- package/Models/DatabaseModels/GlobalSsoProject.ts +268 -0
- package/Models/DatabaseModels/Incident.ts +166 -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 +32 -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/Project.ts +31 -0
- package/Models/DatabaseModels/ScheduledMaintenance.ts +110 -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/StatusPage.ts +82 -0
- package/Models/DatabaseModels/TelemetryException.ts +2 -0
- package/Server/API/DashboardAPI.ts +89 -0
- package/Server/API/DockerSwarmResourceAPI.ts +137 -0
- package/Server/API/StatusPageAPI.ts +2 -0
- package/Server/API/TelemetryAPI.ts +8 -1
- package/Server/Infrastructure/Postgres/SchemaMigrations/1781750000000-MigrationName.ts +3199 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1782000000000-AddGlobalSsoAndOidc.ts +176 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1782100000000-AddStatusPageImageAltText.ts +25 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1782200000000-AddRequireSsoForLoginToGlobalProviders.ts +25 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1782300000000-MoveRequireSsoForLoginToGlobalConfig.ts +38 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1782310000000-MigrationName.ts +299 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1782400000000-RemoveIsTestedFromGlobalSsoAndOidc.ts +21 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +14 -0
- package/Server/Middleware/UserAuthorization.ts +113 -42
- package/Server/Services/AlertLabelRuleEngineService.ts +29 -0
- package/Server/Services/AlertOwnerRuleEngineService.ts +67 -0
- 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 +1 -0
- package/Server/Services/GlobalConfigService.ts +50 -0
- package/Server/Services/GlobalOidcProjectService.ts +85 -0
- package/Server/Services/GlobalOidcService.ts +10 -0
- package/Server/Services/GlobalSsoProjectService.ts +85 -0
- package/Server/Services/GlobalSsoService.ts +10 -0
- 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 +22 -0
- package/Server/Services/LogAggregationService.ts +1 -0
- package/Server/Services/MetricAggregationService.ts +1 -0
- package/Server/Services/OpenTelemetryIngestService.ts +37 -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/ProjectService.ts +44 -1
- package/Server/Services/ScheduledMaintenanceLabelRuleEngineService.ts +29 -0
- package/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.ts +67 -0
- package/Server/Services/TelemetryUsageBillingService.ts +18 -0
- package/Server/Services/TraceAggregationService.ts +1 -0
- package/Server/Types/Database/Permissions/OwnerTableRegistry.ts +13 -0
- package/Server/Utils/Cookie.ts +39 -5
- package/Server/Utils/JsonWebToken.ts +7 -0
- package/Server/Utils/Monitor/MonitorAlert.ts +10 -0
- package/Server/Utils/Monitor/MonitorClusterContext.ts +35 -6
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +306 -0
- package/Server/Utils/Monitor/MonitorIncident.ts +45 -0
- package/Server/Utils/Monitor/MonitorMaintenanceSuppression.ts +17 -0
- package/Server/Utils/Monitor/MonitorTemplateUtil.ts +3 -0
- package/Server/Utils/Monitor/SeriesResourceLabels.ts +26 -0
- package/Server/Utils/Telemetry/ResourceFacetResolver.ts +49 -0
- package/Server/Utils/Telemetry/Telemetry.ts +10 -0
- package/Server/Utils/Telemetry/TelemetryEntity.ts +22 -0
- package/Server/Utils/ValidateGlobalProviderProjectTeams.ts +119 -0
- package/Tests/Server/Middleware/UserAuthorization.test.ts +51 -13
- package/Tests/Server/Middleware/UserAuthorizationSSOProvider.test.ts +163 -0
- package/Tests/Server/Utils/CookieSSOToken.test.ts +130 -0
- package/Tests/Server/Utils/Monitor/MonitorMaintenanceSuppression.test.ts +1 -0
- package/Tests/Types/DockerSwarm/DockerSwarmInventoryExtractor.test.ts +667 -0
- package/Tests/Types/Monitor/DockerSwarmAlertTemplates.test.ts +528 -0
- package/Types/Dashboard/DashboardComponentType.ts +7 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +2 -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/DashboardTemplates.ts +194 -0
- package/Types/DockerSwarm/DockerSwarmInventoryExtractor.ts +452 -0
- package/Types/Icon/IconProp.ts +1 -0
- package/Types/JsonWebTokenData.ts +3 -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 +21 -0
- package/Types/Monitor/MonitorStep.ts +99 -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/MonitorType.ts +42 -0
- package/Types/Monitor/PodmanAlertTemplates.ts +507 -0
- package/Types/Monitor/PodmanMetricCatalog.ts +226 -0
- package/Types/Permission.ts +465 -4
- package/Types/Podman/PodmanInventoryExtractor.ts +343 -0
- package/Types/SSO/SsoProviderType.ts +8 -0
- package/Types/Telemetry/EntityType.ts +12 -0
- package/Types/Telemetry/ServiceType.ts +2 -0
- package/UI/Components/Accordion/Accordion.tsx +5 -1
- package/UI/Components/CardSelect/CardSelect.tsx +6 -1
- package/UI/Components/CategoryCheckbox/Index.tsx +2 -1
- package/UI/Components/CodeEditor/CodeEditor.tsx +2 -0
- package/UI/Components/CollapsibleSection/CollapsibleSection.tsx +8 -1
- package/UI/Components/Dropdown/Dropdown.tsx +2 -0
- package/UI/Components/EntityDropdown/EntityDropdown.tsx +3 -0
- package/UI/Components/FilePicker/FilePicker.tsx +2 -0
- package/UI/Components/Forms/Fields/ColorPicker.tsx +2 -0
- package/UI/Components/Forms/Fields/FieldLabel.tsx +4 -0
- package/UI/Components/Forms/Fields/FormField.tsx +72 -15
- package/UI/Components/Forms/Fields/IconPicker.tsx +2 -0
- package/UI/Components/Forms/Validation.ts +107 -23
- package/UI/Components/Icon/Icon.tsx +57 -0
- package/UI/Components/Input/Input.tsx +4 -0
- package/UI/Components/Link/Link.tsx +23 -0
- package/UI/Components/LogsViewer/LogsViewer.tsx +44 -1
- package/UI/Components/LogsViewer/components/LogsFacetSidebar.tsx +28 -0
- package/UI/Components/Markdown.tsx/MarkdownConverters.ts +0 -0
- package/UI/Components/Markdown.tsx/MarkdownEditor.tsx +3 -0
- package/UI/Components/Markdown.tsx/MarkdownViewer.tsx +63 -2
- package/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.ts +6 -0
- package/UI/Components/Radio/Radio.tsx +2 -0
- package/UI/Components/RadioButtons/GroupRadioButtons.tsx +6 -1
- package/UI/Components/Tabs/Tabs.tsx +63 -0
- package/UI/Components/TextArea/TextArea.tsx +2 -0
- package/UI/Components/TimePicker/TimePicker.tsx +2 -0
- package/UI/Components/Toggle/Toggle.tsx +2 -1
- package/UI/Components/Tooltip/Tooltip.tsx +6 -1
- package/UI/Utils/TelemetryService.ts +1 -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/Index.ts +51 -0
- package/Utils/Telemetry/EntityKey.ts +18 -0
- package/build/dist/Models/DatabaseModels/Alert.js +162 -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/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/GlobalConfig.js +20 -0
- package/build/dist/Models/DatabaseModels/GlobalConfig.js.map +1 -1
- package/build/dist/Models/DatabaseModels/GlobalOidc.js +379 -0
- package/build/dist/Models/DatabaseModels/GlobalOidc.js.map +1 -0
- package/build/dist/Models/DatabaseModels/GlobalOidcProject.js +276 -0
- package/build/dist/Models/DatabaseModels/GlobalOidcProject.js.map +1 -0
- package/build/dist/Models/DatabaseModels/GlobalSso.js +341 -0
- package/build/dist/Models/DatabaseModels/GlobalSso.js.map +1 -0
- package/build/dist/Models/DatabaseModels/GlobalSsoProject.js +279 -0
- package/build/dist/Models/DatabaseModels/GlobalSsoProject.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Incident.js +162 -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 +32 -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/Project.js +32 -0
- package/build/dist/Models/DatabaseModels/Project.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ScheduledMaintenance.js +108 -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/StatusPage.js +84 -0
- package/build/dist/Models/DatabaseModels/StatusPage.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/DashboardAPI.js +89 -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/StatusPageAPI.js +2 -0
- package/build/dist/Server/API/StatusPageAPI.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/Postgres/SchemaMigrations/1781750000000-MigrationName.js +1100 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1781750000000-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782000000000-AddGlobalSsoAndOidc.js +73 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782000000000-AddGlobalSsoAndOidc.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782100000000-AddStatusPageImageAltText.js +14 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782100000000-AddStatusPageImageAltText.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782200000000-AddRequireSsoForLoginToGlobalProviders.js +14 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782200000000-AddRequireSsoForLoginToGlobalProviders.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782300000000-MoveRequireSsoForLoginToGlobalConfig.js +23 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782300000000-MoveRequireSsoForLoginToGlobalConfig.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782310000000-MigrationName.js +106 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782310000000-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782400000000-RemoveIsTestedFromGlobalSsoAndOidc.js +14 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1782400000000-RemoveIsTestedFromGlobalSsoAndOidc.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +14 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Middleware/UserAuthorization.js +77 -34
- package/build/dist/Server/Middleware/UserAuthorization.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/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 +1 -0
- package/build/dist/Server/Services/ExceptionAggregationService.js.map +1 -1
- package/build/dist/Server/Services/GlobalConfigService.js +55 -0
- package/build/dist/Server/Services/GlobalConfigService.js.map +1 -1
- package/build/dist/Server/Services/GlobalOidcProjectService.js +80 -0
- package/build/dist/Server/Services/GlobalOidcProjectService.js.map +1 -0
- package/build/dist/Server/Services/GlobalOidcService.js +9 -0
- package/build/dist/Server/Services/GlobalOidcService.js.map +1 -0
- package/build/dist/Server/Services/GlobalSsoProjectService.js +80 -0
- package/build/dist/Server/Services/GlobalSsoProjectService.js.map +1 -0
- package/build/dist/Server/Services/GlobalSsoService.js +9 -0
- package/build/dist/Server/Services/GlobalSsoService.js.map +1 -0
- 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 +22 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/LogAggregationService.js +1 -0
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/MetricAggregationService.js +1 -0
- package/build/dist/Server/Services/MetricAggregationService.js.map +1 -1
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +43 -13
- 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/ProjectService.js +36 -1
- package/build/dist/Server/Services/ProjectService.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/TelemetryUsageBillingService.js +13 -0
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/TraceAggregationService.js +1 -0
- package/build/dist/Server/Services/TraceAggregationService.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/Cookie.js +32 -3
- package/build/dist/Server/Utils/Cookie.js.map +1 -1
- package/build/dist/Server/Utils/JsonWebToken.js +6 -0
- package/build/dist/Server/Utils/JsonWebToken.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js +8 -0
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js +35 -7
- package/build/dist/Server/Utils/Monitor/MonitorClusterContext.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +194 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +35 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js +9 -0
- package/build/dist/Server/Utils/Monitor/MonitorMaintenanceSuppression.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js +3 -0
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js +16 -0
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js.map +1 -1
- 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 +18 -0
- package/build/dist/Server/Utils/Telemetry/TelemetryEntity.js.map +1 -1
- package/build/dist/Server/Utils/ValidateGlobalProviderProjectTeams.js +66 -0
- package/build/dist/Server/Utils/ValidateGlobalProviderProjectTeams.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js +7 -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/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/DashboardTemplates.js +168 -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 +1 -0
- package/build/dist/Types/Icon/IconProp.js.map +1 -1
- 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 +69 -0
- package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
- 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/MonitorType.js +39 -0
- 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/Permission.js +420 -4
- 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/SSO/SsoProviderType.js +9 -0
- package/build/dist/Types/SSO/SsoProviderType.js.map +1 -0
- package/build/dist/Types/Telemetry/EntityType.js +12 -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/Accordion/Accordion.js +5 -3
- package/build/dist/UI/Components/Accordion/Accordion.js.map +1 -1
- package/build/dist/UI/Components/CardSelect/CardSelect.js +1 -1
- package/build/dist/UI/Components/CardSelect/CardSelect.js.map +1 -1
- package/build/dist/UI/Components/CategoryCheckbox/Index.js +1 -1
- package/build/dist/UI/Components/CategoryCheckbox/Index.js.map +1 -1
- package/build/dist/UI/Components/CodeEditor/CodeEditor.js +1 -1
- package/build/dist/UI/Components/CodeEditor/CodeEditor.js.map +1 -1
- package/build/dist/UI/Components/CollapsibleSection/CollapsibleSection.js +4 -2
- package/build/dist/UI/Components/CollapsibleSection/CollapsibleSection.js.map +1 -1
- package/build/dist/UI/Components/Dropdown/Dropdown.js +1 -1
- package/build/dist/UI/Components/Dropdown/Dropdown.js.map +1 -1
- package/build/dist/UI/Components/EntityDropdown/EntityDropdown.js +2 -2
- package/build/dist/UI/Components/EntityDropdown/EntityDropdown.js.map +1 -1
- package/build/dist/UI/Components/FilePicker/FilePicker.js +1 -1
- package/build/dist/UI/Components/FilePicker/FilePicker.js.map +1 -1
- package/build/dist/UI/Components/Forms/Fields/ColorPicker.js +1 -1
- package/build/dist/UI/Components/Forms/Fields/ColorPicker.js.map +1 -1
- package/build/dist/UI/Components/Forms/Fields/FieldLabel.js +1 -1
- package/build/dist/UI/Components/Forms/Fields/FieldLabel.js.map +1 -1
- package/build/dist/UI/Components/Forms/Fields/FormField.js +58 -22
- package/build/dist/UI/Components/Forms/Fields/FormField.js.map +1 -1
- package/build/dist/UI/Components/Forms/Fields/IconPicker.js +1 -1
- package/build/dist/UI/Components/Forms/Fields/IconPicker.js.map +1 -1
- package/build/dist/UI/Components/Forms/Validation.js +64 -15
- package/build/dist/UI/Components/Forms/Validation.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +16 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/Input/Input.js +1 -1
- package/build/dist/UI/Components/Input/Input.js.map +1 -1
- package/build/dist/UI/Components/Link/Link.js +22 -1
- package/build/dist/UI/Components/Link/Link.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/Markdown.tsx/MarkdownConverters.js +0 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownConverters.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownEditor.js +2 -2
- package/build/dist/UI/Components/Markdown.tsx/MarkdownEditor.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js +46 -2
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js.map +1 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js +6 -0
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js.map +1 -1
- package/build/dist/UI/Components/Radio/Radio.js +1 -1
- package/build/dist/UI/Components/Radio/Radio.js.map +1 -1
- package/build/dist/UI/Components/RadioButtons/GroupRadioButtons.js +1 -1
- package/build/dist/UI/Components/RadioButtons/GroupRadioButtons.js.map +1 -1
- package/build/dist/UI/Components/Tabs/Tabs.js +50 -1
- package/build/dist/UI/Components/Tabs/Tabs.js.map +1 -1
- package/build/dist/UI/Components/TextArea/TextArea.js +1 -1
- package/build/dist/UI/Components/TextArea/TextArea.js.map +1 -1
- package/build/dist/UI/Components/TimePicker/TimePicker.js +1 -1
- package/build/dist/UI/Components/TimePicker/TimePicker.js.map +1 -1
- package/build/dist/UI/Components/Toggle/Toggle.js +1 -1
- package/build/dist/UI/Components/Toggle/Toggle.js.map +1 -1
- package/build/dist/UI/Components/Tooltip/Tooltip.js +6 -1
- package/build/dist/UI/Components/Tooltip/Tooltip.js.map +1 -1
- package/build/dist/UI/Utils/TelemetryService.js +1 -0
- package/build/dist/UI/Utils/TelemetryService.js.map +1 -1
- 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/Index.js +28 -0
- package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
- package/build/dist/Utils/Telemetry/EntityKey.js +14 -0
- package/build/dist/Utils/Telemetry/EntityKey.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import DashboardDockerSwarmServiceListComponent from "../../../Types/Dashboard/DashboardComponents/DashboardDockerSwarmServiceListComponent";
|
|
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
|
+
DockerSwarmFiltersSection,
|
|
12
|
+
getDockerSwarmCommonArguments,
|
|
13
|
+
} from "./DashboardDockerSwarmResourceListShared";
|
|
14
|
+
|
|
15
|
+
export default class DashboardDockerSwarmServiceListComponentUtil extends DashboardBaseComponentUtil {
|
|
16
|
+
public static override getDefaultComponent(): DashboardDockerSwarmServiceListComponent {
|
|
17
|
+
return {
|
|
18
|
+
_type: ObjectType.DashboardComponent,
|
|
19
|
+
componentType: DashboardComponentType.DockerSwarmServiceList,
|
|
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<DashboardDockerSwarmServiceListComponent>
|
|
35
|
+
> {
|
|
36
|
+
const args: Array<
|
|
37
|
+
ComponentArgument<DashboardDockerSwarmServiceListComponent>
|
|
38
|
+
> =
|
|
39
|
+
getDockerSwarmCommonArguments<DashboardDockerSwarmServiceListComponent>();
|
|
40
|
+
|
|
41
|
+
args.push({
|
|
42
|
+
name: "Service Mode",
|
|
43
|
+
description: "Show only replicated services or only global services",
|
|
44
|
+
required: false,
|
|
45
|
+
type: ComponentInputType.Dropdown,
|
|
46
|
+
id: "serviceModeFilter",
|
|
47
|
+
section: DockerSwarmFiltersSection,
|
|
48
|
+
dropdownOptions: [
|
|
49
|
+
{ label: "All", value: "" },
|
|
50
|
+
{ label: "Replicated only", value: "replicated" },
|
|
51
|
+
{ label: "Global only", value: "global" },
|
|
52
|
+
],
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
args.push({
|
|
56
|
+
name: "Status",
|
|
57
|
+
description: "Quick filter by whether the service is fully converged",
|
|
58
|
+
required: false,
|
|
59
|
+
type: ComponentInputType.Dropdown,
|
|
60
|
+
id: "statusFilter",
|
|
61
|
+
section: DockerSwarmFiltersSection,
|
|
62
|
+
dropdownOptions: [
|
|
63
|
+
{ label: "All", value: "" },
|
|
64
|
+
{ label: "Converged only", value: "converged" },
|
|
65
|
+
{ label: "Not converged only", value: "notconverged" },
|
|
66
|
+
],
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
return args;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import DashboardPodmanContainerListComponent from "../../../Types/Dashboard/DashboardComponents/DashboardPodmanContainerListComponent";
|
|
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 containers are shown",
|
|
23
|
+
order: 2,
|
|
24
|
+
defaultCollapsed: true,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default class DashboardPodmanContainerListComponentUtil extends DashboardBaseComponentUtil {
|
|
28
|
+
public static override getDefaultComponent(): DashboardPodmanContainerListComponent {
|
|
29
|
+
return {
|
|
30
|
+
_type: ObjectType.DashboardComponent,
|
|
31
|
+
componentType: DashboardComponentType.PodmanContainerList,
|
|
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<DashboardPodmanContainerListComponent>
|
|
47
|
+
> {
|
|
48
|
+
const args: Array<
|
|
49
|
+
ComponentArgument<DashboardPodmanContainerListComponent>
|
|
50
|
+
> = [];
|
|
51
|
+
|
|
52
|
+
args.push({
|
|
53
|
+
name: "Title",
|
|
54
|
+
description: "Header shown above the container list",
|
|
55
|
+
required: false,
|
|
56
|
+
type: ComponentInputType.Text,
|
|
57
|
+
id: "title",
|
|
58
|
+
section: DisplaySection,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
args.push({
|
|
62
|
+
name: "Max Rows",
|
|
63
|
+
description: "Maximum number of containers to show",
|
|
64
|
+
required: false,
|
|
65
|
+
type: ComponentInputType.Number,
|
|
66
|
+
id: "maxRows",
|
|
67
|
+
placeholder: "25",
|
|
68
|
+
section: DisplaySection,
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
args.push(
|
|
72
|
+
getViewModeArgument<DashboardPodmanContainerListComponent>(
|
|
73
|
+
DisplaySection,
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
args.push({
|
|
78
|
+
name: "Hosts",
|
|
79
|
+
description: "Show only containers from the selected hosts",
|
|
80
|
+
required: false,
|
|
81
|
+
type: ComponentInputType.EntityMultiSelectDropdown,
|
|
82
|
+
id: "podmanHostIds",
|
|
83
|
+
placeholder: "All hosts",
|
|
84
|
+
section: FiltersSection,
|
|
85
|
+
entityFilterModelType: EntityFilterModelType.PodmanHost,
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
args.push({
|
|
89
|
+
name: "Image Name",
|
|
90
|
+
description: "Substring of the container image to match (e.g. nginx)",
|
|
91
|
+
required: false,
|
|
92
|
+
type: ComponentInputType.Text,
|
|
93
|
+
id: "imageName",
|
|
94
|
+
placeholder: "nginx",
|
|
95
|
+
section: FiltersSection,
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
return args;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -24,8 +24,15 @@ import DashboardKubernetesPodListComponentUtil from "./DashboardKubernetesPodLis
|
|
|
24
24
|
import DashboardKubernetesStatefulSetListComponentUtil from "./DashboardKubernetesStatefulSetListComponent";
|
|
25
25
|
import DashboardLogStreamComponentUtil from "./DashboardLogStreamComponent";
|
|
26
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";
|
|
27
32
|
import DashboardProxmoxGuestListComponentUtil from "./DashboardProxmoxGuestListComponent";
|
|
28
33
|
import DashboardProxmoxNodeListComponentUtil from "./DashboardProxmoxNodeListComponent";
|
|
34
|
+
import DashboardDockerSwarmNodeListComponentUtil from "./DashboardDockerSwarmNodeListComponent";
|
|
35
|
+
import DashboardDockerSwarmServiceListComponentUtil from "./DashboardDockerSwarmServiceListComponent";
|
|
29
36
|
import DashboardTableComponentUtil from "./DashboardTableComponent";
|
|
30
37
|
import DashboardTextComponentUtil from "./DashboardTextComponent";
|
|
31
38
|
import DashboardTraceChartComponentUtil from "./DashboardTraceChartComponent";
|
|
@@ -191,6 +198,36 @@ export default class DashboardComponentsUtil {
|
|
|
191
198
|
>;
|
|
192
199
|
}
|
|
193
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
|
+
|
|
194
231
|
if (dashboardComponentType === DashboardComponentType.HostList) {
|
|
195
232
|
return DashboardHostListComponentUtil.getComponentConfigArguments() as Array<
|
|
196
233
|
ComponentArgument<DashboardBaseComponent>
|
|
@@ -209,6 +246,20 @@ export default class DashboardComponentsUtil {
|
|
|
209
246
|
>;
|
|
210
247
|
}
|
|
211
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
|
+
|
|
212
263
|
if (dashboardComponentType === DashboardComponentType.CephOsdList) {
|
|
213
264
|
return DashboardCephOsdListComponentUtil.getComponentConfigArguments() as Array<
|
|
214
265
|
ComponentArgument<DashboardBaseComponent>
|
|
@@ -184,3 +184,21 @@ export function keyForCephCluster(
|
|
|
184
184
|
identifyingAttributes: { "ceph.cluster.name": clusterName },
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* `docker.swarm.cluster.name` is the cluster identity (matches the
|
|
190
|
+
* DockerSwarmCluster row's `name`, the project-unique join key written by
|
|
191
|
+
* `findOrCreateByName`; the ingest resolver is name-only — see
|
|
192
|
+
* `TelemetryEntity` docker.swarm.cluster resolver). Pass
|
|
193
|
+
* `DockerSwarmCluster.name`.
|
|
194
|
+
*/
|
|
195
|
+
export function keyForDockerSwarmCluster(
|
|
196
|
+
projectId: string,
|
|
197
|
+
clusterName: string,
|
|
198
|
+
): string {
|
|
199
|
+
return computeEntityKey({
|
|
200
|
+
projectId,
|
|
201
|
+
entityType: EntityType.DockerSwarmCluster,
|
|
202
|
+
identifyingAttributes: { "docker.swarm.cluster.name": clusterName },
|
|
203
|
+
});
|
|
204
|
+
}
|