@oneuptime/common 10.0.92 → 10.0.94
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/Models/DatabaseModels/TeamMember.ts +0 -2
- package/Server/API/MonitorTemplateAPI.ts +182 -0
- package/Server/API/TeamMemberAPI.ts +116 -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 +359 -0
- package/Server/Types/Database/Permissions/TenantPermission.ts +82 -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/Types/Monitor/CustomCodeMonitor/CustomCodeMonitorResponse.ts +12 -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/Models/DatabaseModels/TeamMember.js +0 -1
- package/build/dist/Models/DatabaseModels/TeamMember.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/API/TeamMemberAPI.js +66 -0
- package/build/dist/Server/API/TeamMemberAPI.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 +290 -0
- package/build/dist/Server/Services/MonitorTemplateService.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.js +54 -0
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.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
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ObjectType } from "../../../Types/JSON";
|
|
2
2
|
import ObjectID from "../../../Types/ObjectID";
|
|
3
3
|
import DashboardBaseComponentUtil from "./DashboardBaseComponent";
|
|
4
|
-
import { ComponentInputType, } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
4
|
+
import { ComponentInputType, EntityFilterModelType, } from "../../../Types/Dashboard/DashboardComponents/ComponentArgument";
|
|
5
5
|
import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentType";
|
|
6
|
+
import { MonitorTypeHelper, } from "../../../Types/Monitor/MonitorType";
|
|
6
7
|
const DisplaySection = {
|
|
7
8
|
name: "Display Options",
|
|
8
9
|
description: "Configure the widget title and row limit",
|
|
@@ -14,6 +15,18 @@ const FiltersSection = {
|
|
|
14
15
|
order: 2,
|
|
15
16
|
defaultCollapsed: true,
|
|
16
17
|
};
|
|
18
|
+
function getMonitorTypeDropdownOptions() {
|
|
19
|
+
const options = MonitorTypeHelper.getAllMonitorTypeProps().map((props) => {
|
|
20
|
+
return {
|
|
21
|
+
label: props.title,
|
|
22
|
+
value: props.monitorType,
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
options.sort((a, b) => {
|
|
26
|
+
return a.label.localeCompare(b.label);
|
|
27
|
+
});
|
|
28
|
+
return options;
|
|
29
|
+
}
|
|
17
30
|
export default class DashboardMonitorListComponentUtil extends DashboardBaseComponentUtil {
|
|
18
31
|
static getDefaultComponent() {
|
|
19
32
|
return {
|
|
@@ -51,8 +64,8 @@ export default class DashboardMonitorListComponentUtil extends DashboardBaseComp
|
|
|
51
64
|
section: DisplaySection,
|
|
52
65
|
});
|
|
53
66
|
componentArguments.push({
|
|
54
|
-
name: "Status",
|
|
55
|
-
description: "
|
|
67
|
+
name: "Operational Status",
|
|
68
|
+
description: "Quick filter by operational state",
|
|
56
69
|
required: false,
|
|
57
70
|
type: ComponentInputType.Dropdown,
|
|
58
71
|
id: "statusFilter",
|
|
@@ -63,6 +76,36 @@ export default class DashboardMonitorListComponentUtil extends DashboardBaseComp
|
|
|
63
76
|
{ label: "Not operational only", value: "non-operational" },
|
|
64
77
|
],
|
|
65
78
|
});
|
|
79
|
+
componentArguments.push({
|
|
80
|
+
name: "Status",
|
|
81
|
+
description: "Show only monitors with the selected statuses",
|
|
82
|
+
required: false,
|
|
83
|
+
type: ComponentInputType.EntityMultiSelectDropdown,
|
|
84
|
+
id: "monitorStatusIds",
|
|
85
|
+
placeholder: "All statuses",
|
|
86
|
+
section: FiltersSection,
|
|
87
|
+
entityFilterModelType: EntityFilterModelType.MonitorStatus,
|
|
88
|
+
});
|
|
89
|
+
componentArguments.push({
|
|
90
|
+
name: "Monitor Type",
|
|
91
|
+
description: "Show only monitors of the selected types",
|
|
92
|
+
required: false,
|
|
93
|
+
type: ComponentInputType.MultiSelectDropdown,
|
|
94
|
+
id: "monitorTypes",
|
|
95
|
+
placeholder: "All monitor types",
|
|
96
|
+
section: FiltersSection,
|
|
97
|
+
dropdownOptions: getMonitorTypeDropdownOptions(),
|
|
98
|
+
});
|
|
99
|
+
componentArguments.push({
|
|
100
|
+
name: "Labels",
|
|
101
|
+
description: "Show only monitors tagged with the selected labels",
|
|
102
|
+
required: false,
|
|
103
|
+
type: ComponentInputType.EntityMultiSelectDropdown,
|
|
104
|
+
id: "labelIds",
|
|
105
|
+
placeholder: "All labels",
|
|
106
|
+
section: FiltersSection,
|
|
107
|
+
entityFilterModelType: EntityFilterModelType.Label,
|
|
108
|
+
});
|
|
66
109
|
return componentArguments;
|
|
67
110
|
}
|
|
68
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardMonitorListComponent.js","sourceRoot":"","sources":["../../../../../Utils/Dashboard/Components/DashboardMonitorListComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,0BAA0B,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAGL,kBAAkB,
|
|
1
|
+
{"version":3,"file":"DashboardMonitorListComponent.js","sourceRoot":"","sources":["../../../../../Utils/Dashboard/Components/DashboardMonitorListComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,0BAA0B,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAGL,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,gEAAgE,CAAC;AACxE,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AACrF,OAAO,EACL,iBAAiB,GAElB,MAAM,oCAAoC,CAAC;AAG5C,MAAM,cAAc,GAA6B;IAC/C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,0CAA0C;IACvD,KAAK,EAAE,CAAC;CACT,CAAC;AAEF,MAAM,cAAc,GAA6B;IAC/C,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,sCAAsC;IACnD,KAAK,EAAE,CAAC;IACR,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEF,SAAS,6BAA6B;IACpC,MAAM,OAAO,GACX,iBAAiB,CAAC,sBAAsB,EAAE,CAAC,GAAG,CAC5C,CAAC,KAAuB,EAAE,EAAE;QAC1B,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,KAAK,EAAE,KAAK,CAAC,WAAW;SACzB,CAAC;IACJ,CAAC,CACF,CAAC;IAEJ,OAAO,CAAC,IAAI,CAAC,CAAC,CAAiB,EAAE,CAAiB,EAAE,EAAE;QACpD,OAAQ,CAAC,CAAC,KAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,KAAe,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,iCAAkC,SAAQ,0BAA0B;IAChF,MAAM,CAAU,mBAAmB;QACxC,OAAO;YACL,KAAK,EAA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,KAAK,EAAE,iBAAiB,EAAE;aAC5D;SACF,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,+CAA+C;YAC5D,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,yBAAyB;YAClD,EAAE,EAAE,kBAAkB;YACtB,WAAW,EAAE,cAAc;YAC3B,OAAO,EAAE,cAAc;YACvB,qBAAqB,EAAE,qBAAqB,CAAC,aAAa;SAC3D,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,mBAAmB;YAC5C,EAAE,EAAE,cAAc;YAClB,WAAW,EAAE,mBAAmB;YAChC,OAAO,EAAE,cAAc;YACvB,eAAe,EAAE,6BAA6B,EAAE;SACjD,CAAC,CAAC;QAEH,kBAAkB,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oDAAoD;YACjE,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,kBAAkB,CAAC,yBAAyB;YAClD,EAAE,EAAE,UAAU;YACd,WAAW,EAAE,YAAY;YACzB,OAAO,EAAE,cAAc;YACvB,qBAAqB,EAAE,qBAAqB,CAAC,KAAK;SACnD,CAAC,CAAC;QAEH,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
|
|
@@ -2,8 +2,21 @@ import DashboardComponentType from "../../../Types/Dashboard/DashboardComponentT
|
|
|
2
2
|
import BadDataException from "../../../Types/Exception/BadDataException";
|
|
3
3
|
import DashboardAlertListComponentUtil from "./DashboardAlertListComponent";
|
|
4
4
|
import DashboardChartComponentUtil from "./DashboardChartComponent";
|
|
5
|
+
import DashboardDockerContainerListComponentUtil from "./DashboardDockerContainerListComponent";
|
|
6
|
+
import DashboardDockerHostListComponentUtil from "./DashboardDockerHostListComponent";
|
|
7
|
+
import DashboardDockerImageListComponentUtil from "./DashboardDockerImageListComponent";
|
|
8
|
+
import DashboardDockerNetworkListComponentUtil from "./DashboardDockerNetworkListComponent";
|
|
9
|
+
import DashboardDockerVolumeListComponentUtil from "./DashboardDockerVolumeListComponent";
|
|
5
10
|
import DashboardGaugeComponentUtil from "./DashboardGaugeComponent";
|
|
6
11
|
import DashboardIncidentListComponentUtil from "./DashboardIncidentListComponent";
|
|
12
|
+
import DashboardKubernetesCronJobListComponentUtil from "./DashboardKubernetesCronJobListComponent";
|
|
13
|
+
import DashboardKubernetesDaemonSetListComponentUtil from "./DashboardKubernetesDaemonSetListComponent";
|
|
14
|
+
import DashboardKubernetesDeploymentListComponentUtil from "./DashboardKubernetesDeploymentListComponent";
|
|
15
|
+
import DashboardKubernetesJobListComponentUtil from "./DashboardKubernetesJobListComponent";
|
|
16
|
+
import DashboardKubernetesNamespaceListComponentUtil from "./DashboardKubernetesNamespaceListComponent";
|
|
17
|
+
import DashboardKubernetesNodeListComponentUtil from "./DashboardKubernetesNodeListComponent";
|
|
18
|
+
import DashboardKubernetesPodListComponentUtil from "./DashboardKubernetesPodListComponent";
|
|
19
|
+
import DashboardKubernetesStatefulSetListComponentUtil from "./DashboardKubernetesStatefulSetListComponent";
|
|
7
20
|
import DashboardLogStreamComponentUtil from "./DashboardLogStreamComponent";
|
|
8
21
|
import DashboardMonitorListComponentUtil from "./DashboardMonitorListComponent";
|
|
9
22
|
import DashboardTableComponentUtil from "./DashboardTableComponent";
|
|
@@ -42,6 +55,46 @@ export default class DashboardComponentsUtil {
|
|
|
42
55
|
if (dashboardComponentType === DashboardComponentType.MonitorList) {
|
|
43
56
|
return DashboardMonitorListComponentUtil.getComponentConfigArguments();
|
|
44
57
|
}
|
|
58
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesPodList) {
|
|
59
|
+
return DashboardKubernetesPodListComponentUtil.getComponentConfigArguments();
|
|
60
|
+
}
|
|
61
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesNodeList) {
|
|
62
|
+
return DashboardKubernetesNodeListComponentUtil.getComponentConfigArguments();
|
|
63
|
+
}
|
|
64
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesNamespaceList) {
|
|
65
|
+
return DashboardKubernetesNamespaceListComponentUtil.getComponentConfigArguments();
|
|
66
|
+
}
|
|
67
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesDeploymentList) {
|
|
68
|
+
return DashboardKubernetesDeploymentListComponentUtil.getComponentConfigArguments();
|
|
69
|
+
}
|
|
70
|
+
if (dashboardComponentType ===
|
|
71
|
+
DashboardComponentType.KubernetesStatefulSetList) {
|
|
72
|
+
return DashboardKubernetesStatefulSetListComponentUtil.getComponentConfigArguments();
|
|
73
|
+
}
|
|
74
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesDaemonSetList) {
|
|
75
|
+
return DashboardKubernetesDaemonSetListComponentUtil.getComponentConfigArguments();
|
|
76
|
+
}
|
|
77
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesJobList) {
|
|
78
|
+
return DashboardKubernetesJobListComponentUtil.getComponentConfigArguments();
|
|
79
|
+
}
|
|
80
|
+
if (dashboardComponentType === DashboardComponentType.KubernetesCronJobList) {
|
|
81
|
+
return DashboardKubernetesCronJobListComponentUtil.getComponentConfigArguments();
|
|
82
|
+
}
|
|
83
|
+
if (dashboardComponentType === DashboardComponentType.DockerHostList) {
|
|
84
|
+
return DashboardDockerHostListComponentUtil.getComponentConfigArguments();
|
|
85
|
+
}
|
|
86
|
+
if (dashboardComponentType === DashboardComponentType.DockerContainerList) {
|
|
87
|
+
return DashboardDockerContainerListComponentUtil.getComponentConfigArguments();
|
|
88
|
+
}
|
|
89
|
+
if (dashboardComponentType === DashboardComponentType.DockerImageList) {
|
|
90
|
+
return DashboardDockerImageListComponentUtil.getComponentConfigArguments();
|
|
91
|
+
}
|
|
92
|
+
if (dashboardComponentType === DashboardComponentType.DockerNetworkList) {
|
|
93
|
+
return DashboardDockerNetworkListComponentUtil.getComponentConfigArguments();
|
|
94
|
+
}
|
|
95
|
+
if (dashboardComponentType === DashboardComponentType.DockerVolumeList) {
|
|
96
|
+
return DashboardDockerVolumeListComponentUtil.getComponentConfigArguments();
|
|
97
|
+
}
|
|
45
98
|
throw new BadDataException(`Unknown dashboard component type: ${dashboardComponentType}`);
|
|
46
99
|
}
|
|
47
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Index.js","sourceRoot":"","sources":["../../../../../Utils/Dashboard/Components/Index.ts"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,MAAM,iDAAiD,CAAC;AACrF,OAAO,gBAAgB,MAAM,2CAA2C,CAAC;AACzE,OAAO,+BAA+B,MAAM,+BAA+B,CAAC;AAC5E,OAAO,2BAA2B,MAAM,2BAA2B,CAAC;AACpE,OAAO,2BAA2B,MAAM,2BAA2B,CAAC;AACpE,OAAO,kCAAkC,MAAM,kCAAkC,CAAC;AAClF,OAAO,+BAA+B,MAAM,+BAA+B,CAAC;AAC5E,OAAO,iCAAiC,MAAM,iCAAiC,CAAC;AAChF,OAAO,2BAA2B,MAAM,2BAA2B,CAAC;AACpE,OAAO,0BAA0B,MAAM,0BAA0B,CAAC;AAClE,OAAO,+BAA+B,MAAM,+BAA+B,CAAC;AAC5E,OAAO,2BAA2B,MAAM,2BAA2B,CAAC;AAEpE,MAAM,CAAC,OAAO,OAAO,uBAAuB;IACnC,MAAM,CAAC,6BAA6B,CACzC,sBAA8C;QAE9C,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,KAAK,EAAE,CAAC;YAC5D,OAAO,2BAA2B,CAAC,2BAA2B,EAE7D,CAAC;QACJ,CAAC;QAED,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,IAAI,EAAE,CAAC;YAC3D,OAAO,0BAA0B,CAAC,2BAA2B,EAE5D,CAAC;QACJ,CAAC;QAED,IAAI,sBAAsB,KAAK,sBAAsB,CAAC,KAAK,EAAE,CAA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