@oneuptime/common 10.0.93 → 10.0.96
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/DockerResource.ts +497 -0
- package/Models/DatabaseModels/Index.ts +2 -0
- package/Models/DatabaseModels/Monitor.ts +83 -0
- package/Server/API/MonitorTemplateAPI.ts +182 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1777933061000-MigrationName.ts +41 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1777972687018-MigrationName.ts +69 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +4 -0
- package/Server/Services/BillingInvoiceService.ts +18 -29
- package/Server/Services/DockerResourceService.ts +310 -0
- package/Server/Services/MonitorTemplateService.ts +367 -0
- package/Server/Utils/VM/VMRunner.ts +62 -0
- package/Types/Dashboard/DashboardComponentType.ts +13 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +16 -0
- package/Types/Dashboard/DashboardComponents/DashboardAlertListComponent.ts +4 -0
- package/Types/Dashboard/DashboardComponents/DashboardDockerContainerListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardDockerHostListComponent.ts +14 -0
- package/Types/Dashboard/DashboardComponents/DashboardDockerImageListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardDockerNetworkListComponent.ts +14 -0
- package/Types/Dashboard/DashboardComponents/DashboardDockerVolumeListComponent.ts +14 -0
- package/Types/Dashboard/DashboardComponents/DashboardIncidentListComponent.ts +4 -0
- package/Types/Dashboard/DashboardComponents/DashboardKubernetesCronJobListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardKubernetesDaemonSetListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardKubernetesDeploymentListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardKubernetesJobListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardKubernetesNamespaceListComponent.ts +14 -0
- package/Types/Dashboard/DashboardComponents/DashboardKubernetesNodeListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardKubernetesPodListComponent.ts +16 -0
- package/Types/Dashboard/DashboardComponents/DashboardKubernetesStatefulSetListComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardMonitorListComponent.ts +3 -0
- package/Types/Docker/DockerInventoryExtractor.ts +343 -0
- package/Utils/Dashboard/Components/DashboardAlertListComponent.ts +47 -2
- package/Utils/Dashboard/Components/DashboardDockerContainerListComponent.ts +93 -0
- package/Utils/Dashboard/Components/DashboardDockerHostListComponent.ts +83 -0
- package/Utils/Dashboard/Components/DashboardDockerImageListComponent.ts +92 -0
- package/Utils/Dashboard/Components/DashboardDockerNetworkListComponent.ts +82 -0
- package/Utils/Dashboard/Components/DashboardDockerVolumeListComponent.ts +82 -0
- package/Utils/Dashboard/Components/DashboardIncidentListComponent.ts +47 -2
- package/Utils/Dashboard/Components/DashboardKubernetesCronJobListComponent.ts +36 -0
- package/Utils/Dashboard/Components/DashboardKubernetesDaemonSetListComponent.ts +36 -0
- package/Utils/Dashboard/Components/DashboardKubernetesDeploymentListComponent.ts +36 -0
- package/Utils/Dashboard/Components/DashboardKubernetesJobListComponent.ts +34 -0
- package/Utils/Dashboard/Components/DashboardKubernetesNamespaceListComponent.ts +36 -0
- package/Utils/Dashboard/Components/DashboardKubernetesNodeListComponent.ts +57 -0
- package/Utils/Dashboard/Components/DashboardKubernetesPodListComponent.ts +60 -0
- package/Utils/Dashboard/Components/DashboardKubernetesResourceListShared.ts +75 -0
- package/Utils/Dashboard/Components/DashboardKubernetesStatefulSetListComponent.ts +36 -0
- package/Utils/Dashboard/Components/DashboardMonitorListComponent.ts +59 -2
- package/Utils/Dashboard/Components/Index.ts +102 -0
- package/build/dist/Models/DatabaseModels/DockerResource.js +525 -0
- package/build/dist/Models/DatabaseModels/DockerResource.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Index.js +2 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Monitor.js +82 -0
- package/build/dist/Models/DatabaseModels/Monitor.js.map +1 -1
- package/build/dist/Server/API/MonitorTemplateAPI.js +108 -0
- package/build/dist/Server/API/MonitorTemplateAPI.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1777933061000-MigrationName.js +20 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1777933061000-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1777972687018-MigrationName.js +30 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1777972687018-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +4 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Services/BillingInvoiceService.js +22 -25
- package/build/dist/Server/Services/BillingInvoiceService.js.map +1 -1
- package/build/dist/Server/Services/DockerResourceService.js +196 -0
- package/build/dist/Server/Services/DockerResourceService.js.map +1 -0
- package/build/dist/Server/Services/MonitorTemplateService.js +297 -0
- package/build/dist/Server/Services/MonitorTemplateService.js.map +1 -1
- package/build/dist/Server/Utils/VM/VMRunner.js +61 -0
- package/build/dist/Server/Utils/VM/VMRunner.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponentType.js +13 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +15 -0
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerContainerListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerContainerListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerHostListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerHostListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerImageListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerImageListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerNetworkListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerNetworkListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerVolumeListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerVolumeListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesCronJobListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesCronJobListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesDaemonSetListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesDaemonSetListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesDeploymentListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesDeploymentListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesJobListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesJobListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesNamespaceListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesNamespaceListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesNodeListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesNodeListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesPodListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesPodListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesStatefulSetListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesStatefulSetListComponent.js.map +1 -0
- package/build/dist/Types/Docker/DockerInventoryExtractor.js +293 -0
- package/build/dist/Types/Docker/DockerInventoryExtractor.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardAlertListComponent.js +43 -3
- package/build/dist/Utils/Dashboard/Components/DashboardAlertListComponent.js.map +1 -1
- package/build/dist/Utils/Dashboard/Components/DashboardDockerContainerListComponent.js +75 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerContainerListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerHostListComponent.js +69 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerHostListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerImageListComponent.js +75 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerImageListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerNetworkListComponent.js +66 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerNetworkListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerVolumeListComponent.js +66 -0
- package/build/dist/Utils/Dashboard/Components/DashboardDockerVolumeListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardIncidentListComponent.js +43 -3
- package/build/dist/Utils/Dashboard/Components/DashboardIncidentListComponent.js.map +1 -1
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesCronJobListComponent.js +29 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesCronJobListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesDaemonSetListComponent.js +29 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesDaemonSetListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesDeploymentListComponent.js +29 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesDeploymentListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesJobListComponent.js +29 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesJobListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesNamespaceListComponent.js +29 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesNamespaceListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesNodeListComponent.js +44 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesNodeListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesPodListComponent.js +47 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesPodListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesResourceListShared.js +55 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesResourceListShared.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesStatefulSetListComponent.js +29 -0
- package/build/dist/Utils/Dashboard/Components/DashboardKubernetesStatefulSetListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardMonitorListComponent.js +46 -3
- package/build/dist/Utils/Dashboard/Components/DashboardMonitorListComponent.js.map +1 -1
- package/build/dist/Utils/Dashboard/Components/Index.js +53 -0
- package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,14 @@ import {
|
|
|
6
6
|
ComponentArgument,
|
|
7
7
|
ComponentArgumentSection,
|
|
8
8
|
ComponentInputType,
|
|
9
|
+
EntityFilterModelType,
|
|
9
10
|
} from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
10
11
|
import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
|
|
12
|
+
import {
|
|
13
|
+
MonitorTypeHelper,
|
|
14
|
+
MonitorTypeProps,
|
|
15
|
+
} from "../../../Types/Monitor/MonitorType";
|
|
16
|
+
import { DropdownOption } from "../../../UI/Components/Dropdown/Dropdown";
|
|
11
17
|
|
|
12
18
|
const DisplaySection: ComponentArgumentSection = {
|
|
13
19
|
name: "Display Options",
|
|
@@ -22,6 +28,24 @@ const FiltersSection: ComponentArgumentSection = {
|
|
|
22
28
|
defaultCollapsed: true,
|
|
23
29
|
};
|
|
24
30
|
|
|
31
|
+
function getMonitorTypeDropdownOptions(): Array<DropdownOption> {
|
|
32
|
+
const options: Array<DropdownOption> =
|
|
33
|
+
MonitorTypeHelper.getAllMonitorTypeProps().map(
|
|
34
|
+
(props: MonitorTypeProps) => {
|
|
35
|
+
return {
|
|
36
|
+
label: props.title,
|
|
37
|
+
value: props.monitorType,
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
options.sort((a: DropdownOption, b: DropdownOption) => {
|
|
43
|
+
return (a.label as string).localeCompare(b.label as string);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return options;
|
|
47
|
+
}
|
|
48
|
+
|
|
25
49
|
export default class DashboardMonitorListComponentUtil extends DashboardBaseComponentUtil {
|
|
26
50
|
public static override getDefaultComponent(): DashboardMonitorListComponent {
|
|
27
51
|
return {
|
|
@@ -67,8 +91,8 @@ export default class DashboardMonitorListComponentUtil extends DashboardBaseComp
|
|
|
67
91
|
});
|
|
68
92
|
|
|
69
93
|
componentArguments.push({
|
|
70
|
-
name: "Status",
|
|
71
|
-
description: "
|
|
94
|
+
name: "Operational Status",
|
|
95
|
+
description: "Quick filter by operational state",
|
|
72
96
|
required: false,
|
|
73
97
|
type: ComponentInputType.Dropdown,
|
|
74
98
|
id: "statusFilter",
|
|
@@ -80,6 +104,39 @@ export default class DashboardMonitorListComponentUtil extends DashboardBaseComp
|
|
|
80
104
|
],
|
|
81
105
|
});
|
|
82
106
|
|
|
107
|
+
componentArguments.push({
|
|
108
|
+
name: "Status",
|
|
109
|
+
description: "Show only monitors with the selected statuses",
|
|
110
|
+
required: false,
|
|
111
|
+
type: ComponentInputType.EntityMultiSelectDropdown,
|
|
112
|
+
id: "monitorStatusIds",
|
|
113
|
+
placeholder: "All statuses",
|
|
114
|
+
section: FiltersSection,
|
|
115
|
+
entityFilterModelType: EntityFilterModelType.MonitorStatus,
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
componentArguments.push({
|
|
119
|
+
name: "Monitor Type",
|
|
120
|
+
description: "Show only monitors of the selected types",
|
|
121
|
+
required: false,
|
|
122
|
+
type: ComponentInputType.MultiSelectDropdown,
|
|
123
|
+
id: "monitorTypes",
|
|
124
|
+
placeholder: "All monitor types",
|
|
125
|
+
section: FiltersSection,
|
|
126
|
+
dropdownOptions: getMonitorTypeDropdownOptions(),
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
componentArguments.push({
|
|
130
|
+
name: "Labels",
|
|
131
|
+
description: "Show only monitors tagged with the selected labels",
|
|
132
|
+
required: false,
|
|
133
|
+
type: ComponentInputType.EntityMultiSelectDropdown,
|
|
134
|
+
id: "labelIds",
|
|
135
|
+
placeholder: "All labels",
|
|
136
|
+
section: FiltersSection,
|
|
137
|
+
entityFilterModelType: EntityFilterModelType.Label,
|
|
138
|
+
});
|
|
139
|
+
|
|
83
140
|
return componentArguments;
|
|
84
141
|
}
|
|
85
142
|
}
|
|
@@ -4,8 +4,21 @@ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentT
|
|
|
4
4
|
import BadDataException from "../../../Types/Exception/BadDataException";
|
|
5
5
|
import DashboardAlertListComponentUtil from "./DashboardAlertListComponent";
|
|
6
6
|
import DashboardChartComponentUtil from "./DashboardChartComponent";
|
|
7
|
+
import DashboardDockerContainerListComponentUtil from "./DashboardDockerContainerListComponent";
|
|
8
|
+
import DashboardDockerHostListComponentUtil from "./DashboardDockerHostListComponent";
|
|
9
|
+
import DashboardDockerImageListComponentUtil from "./DashboardDockerImageListComponent";
|
|
10
|
+
import DashboardDockerNetworkListComponentUtil from "./DashboardDockerNetworkListComponent";
|
|
11
|
+
import DashboardDockerVolumeListComponentUtil from "./DashboardDockerVolumeListComponent";
|
|
7
12
|
import DashboardGaugeComponentUtil from "./DashboardGaugeComponent";
|
|
8
13
|
import DashboardIncidentListComponentUtil from "./DashboardIncidentListComponent";
|
|
14
|
+
import DashboardKubernetesCronJobListComponentUtil from "./DashboardKubernetesCronJobListComponent";
|
|
15
|
+
import DashboardKubernetesDaemonSetListComponentUtil from "./DashboardKubernetesDaemonSetListComponent";
|
|
16
|
+
import DashboardKubernetesDeploymentListComponentUtil from "./DashboardKubernetesDeploymentListComponent";
|
|
17
|
+
import DashboardKubernetesJobListComponentUtil from "./DashboardKubernetesJobListComponent";
|
|
18
|
+
import DashboardKubernetesNamespaceListComponentUtil from "./DashboardKubernetesNamespaceListComponent";
|
|
19
|
+
import DashboardKubernetesNodeListComponentUtil from "./DashboardKubernetesNodeListComponent";
|
|
20
|
+
import DashboardKubernetesPodListComponentUtil from "./DashboardKubernetesPodListComponent";
|
|
21
|
+
import DashboardKubernetesStatefulSetListComponentUtil from "./DashboardKubernetesStatefulSetListComponent";
|
|
9
22
|
import DashboardLogStreamComponentUtil from "./DashboardLogStreamComponent";
|
|
10
23
|
import DashboardMonitorListComponentUtil from "./DashboardMonitorListComponent";
|
|
11
24
|
import DashboardTableComponentUtil from "./DashboardTableComponent";
|
|
@@ -77,6 +90,95 @@ export default class DashboardComponentsUtil {
|
|
|
77
90
|
>;
|
|
78
91
|
}
|
|
79
92
|
|
|
93
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesPodList) {
|
|
94
|
+
return DashboardKubernetesPodListComponentUtil.getComponentConfigArguments() as Array<
|
|
95
|
+
ComponentArgument<DashboardBaseComponent>
|
|
96
|
+
>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesNodeList) {
|
|
100
|
+
return DashboardKubernetesNodeListComponentUtil.getComponentConfigArguments() as Array<
|
|
101
|
+
ComponentArgument<DashboardBaseComponent>
|
|
102
|
+
>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (
|
|
106
|
+
dashboardComponentType === DashboardComponentType.KubernetesNamespaceList
|
|
107
|
+
) {
|
|
108
|
+
return DashboardKubernetesNamespaceListComponentUtil.getComponentConfigArguments() as Array<
|
|
109
|
+
ComponentArgument<DashboardBaseComponent>
|
|
110
|
+
>;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (
|
|
114
|
+
dashboardComponentType === DashboardComponentType.KubernetesDeploymentList
|
|
115
|
+
) {
|
|
116
|
+
return DashboardKubernetesDeploymentListComponentUtil.getComponentConfigArguments() as Array<
|
|
117
|
+
ComponentArgument<DashboardBaseComponent>
|
|
118
|
+
>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (
|
|
122
|
+
dashboardComponentType ===
|
|
123
|
+
DashboardComponentType.KubernetesStatefulSetList
|
|
124
|
+
) {
|
|
125
|
+
return DashboardKubernetesStatefulSetListComponentUtil.getComponentConfigArguments() as Array<
|
|
126
|
+
ComponentArgument<DashboardBaseComponent>
|
|
127
|
+
>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (
|
|
131
|
+
dashboardComponentType === DashboardComponentType.KubernetesDaemonSetList
|
|
132
|
+
) {
|
|
133
|
+
return DashboardKubernetesDaemonSetListComponentUtil.getComponentConfigArguments() as Array<
|
|
134
|
+
ComponentArgument<DashboardBaseComponent>
|
|
135
|
+
>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesJobList) {
|
|
139
|
+
return DashboardKubernetesJobListComponentUtil.getComponentConfigArguments() as Array<
|
|
140
|
+
ComponentArgument<DashboardBaseComponent>
|
|
141
|
+
>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (
|
|
145
|
+
dashboardComponentType === DashboardComponentType.KubernetesCronJobList
|
|
146
|
+
) {
|
|
147
|
+
return DashboardKubernetesCronJobListComponentUtil.getComponentConfigArguments() as Array<
|
|
148
|
+
ComponentArgument<DashboardBaseComponent>
|
|
149
|
+
>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (dashboardComponentType === DashboardComponentType.DockerHostList) {
|
|
153
|
+
return DashboardDockerHostListComponentUtil.getComponentConfigArguments() as Array<
|
|
154
|
+
ComponentArgument<DashboardBaseComponent>
|
|
155
|
+
>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (dashboardComponentType === DashboardComponentType.DockerContainerList) {
|
|
159
|
+
return DashboardDockerContainerListComponentUtil.getComponentConfigArguments() as Array<
|
|
160
|
+
ComponentArgument<DashboardBaseComponent>
|
|
161
|
+
>;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (dashboardComponentType === DashboardComponentType.DockerImageList) {
|
|
165
|
+
return DashboardDockerImageListComponentUtil.getComponentConfigArguments() as Array<
|
|
166
|
+
ComponentArgument<DashboardBaseComponent>
|
|
167
|
+
>;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (dashboardComponentType === DashboardComponentType.DockerNetworkList) {
|
|
171
|
+
return DashboardDockerNetworkListComponentUtil.getComponentConfigArguments() as Array<
|
|
172
|
+
ComponentArgument<DashboardBaseComponent>
|
|
173
|
+
>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (dashboardComponentType === DashboardComponentType.DockerVolumeList) {
|
|
177
|
+
return DashboardDockerVolumeListComponentUtil.getComponentConfigArguments() as Array<
|
|
178
|
+
ComponentArgument<DashboardBaseComponent>
|
|
179
|
+
>;
|
|
180
|
+
}
|
|
181
|
+
|
|
80
182
|
throw new BadDataException(
|
|
81
183
|
`Unknown dashboard component type: ${dashboardComponentType}`,
|
|
82
184
|
);
|