@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.
Files changed (139) hide show
  1. package/Models/DatabaseModels/DockerResource.ts +497 -0
  2. package/Models/DatabaseModels/Index.ts +2 -0
  3. package/Models/DatabaseModels/Monitor.ts +83 -0
  4. package/Server/API/MonitorTemplateAPI.ts +182 -0
  5. package/Server/Infrastructure/Postgres/SchemaMigrations/1777933061000-MigrationName.ts +41 -0
  6. package/Server/Infrastructure/Postgres/SchemaMigrations/1777972687018-MigrationName.ts +69 -0
  7. package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +4 -0
  8. package/Server/Services/BillingInvoiceService.ts +18 -29
  9. package/Server/Services/DockerResourceService.ts +310 -0
  10. package/Server/Services/MonitorTemplateService.ts +367 -0
  11. package/Server/Utils/VM/VMRunner.ts +62 -0
  12. package/Types/Dashboard/DashboardComponentType.ts +13 -0
  13. package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +16 -0
  14. package/Types/Dashboard/DashboardComponents/DashboardAlertListComponent.ts +4 -0
  15. package/Types/Dashboard/DashboardComponents/DashboardDockerContainerListComponent.ts +15 -0
  16. package/Types/Dashboard/DashboardComponents/DashboardDockerHostListComponent.ts +14 -0
  17. package/Types/Dashboard/DashboardComponents/DashboardDockerImageListComponent.ts +15 -0
  18. package/Types/Dashboard/DashboardComponents/DashboardDockerNetworkListComponent.ts +14 -0
  19. package/Types/Dashboard/DashboardComponents/DashboardDockerVolumeListComponent.ts +14 -0
  20. package/Types/Dashboard/DashboardComponents/DashboardIncidentListComponent.ts +4 -0
  21. package/Types/Dashboard/DashboardComponents/DashboardKubernetesCronJobListComponent.ts +15 -0
  22. package/Types/Dashboard/DashboardComponents/DashboardKubernetesDaemonSetListComponent.ts +15 -0
  23. package/Types/Dashboard/DashboardComponents/DashboardKubernetesDeploymentListComponent.ts +15 -0
  24. package/Types/Dashboard/DashboardComponents/DashboardKubernetesJobListComponent.ts +15 -0
  25. package/Types/Dashboard/DashboardComponents/DashboardKubernetesNamespaceListComponent.ts +14 -0
  26. package/Types/Dashboard/DashboardComponents/DashboardKubernetesNodeListComponent.ts +15 -0
  27. package/Types/Dashboard/DashboardComponents/DashboardKubernetesPodListComponent.ts +16 -0
  28. package/Types/Dashboard/DashboardComponents/DashboardKubernetesStatefulSetListComponent.ts +15 -0
  29. package/Types/Dashboard/DashboardComponents/DashboardMonitorListComponent.ts +3 -0
  30. package/Types/Docker/DockerInventoryExtractor.ts +343 -0
  31. package/Utils/Dashboard/Components/DashboardAlertListComponent.ts +47 -2
  32. package/Utils/Dashboard/Components/DashboardDockerContainerListComponent.ts +93 -0
  33. package/Utils/Dashboard/Components/DashboardDockerHostListComponent.ts +83 -0
  34. package/Utils/Dashboard/Components/DashboardDockerImageListComponent.ts +92 -0
  35. package/Utils/Dashboard/Components/DashboardDockerNetworkListComponent.ts +82 -0
  36. package/Utils/Dashboard/Components/DashboardDockerVolumeListComponent.ts +82 -0
  37. package/Utils/Dashboard/Components/DashboardIncidentListComponent.ts +47 -2
  38. package/Utils/Dashboard/Components/DashboardKubernetesCronJobListComponent.ts +36 -0
  39. package/Utils/Dashboard/Components/DashboardKubernetesDaemonSetListComponent.ts +36 -0
  40. package/Utils/Dashboard/Components/DashboardKubernetesDeploymentListComponent.ts +36 -0
  41. package/Utils/Dashboard/Components/DashboardKubernetesJobListComponent.ts +34 -0
  42. package/Utils/Dashboard/Components/DashboardKubernetesNamespaceListComponent.ts +36 -0
  43. package/Utils/Dashboard/Components/DashboardKubernetesNodeListComponent.ts +57 -0
  44. package/Utils/Dashboard/Components/DashboardKubernetesPodListComponent.ts +60 -0
  45. package/Utils/Dashboard/Components/DashboardKubernetesResourceListShared.ts +75 -0
  46. package/Utils/Dashboard/Components/DashboardKubernetesStatefulSetListComponent.ts +36 -0
  47. package/Utils/Dashboard/Components/DashboardMonitorListComponent.ts +59 -2
  48. package/Utils/Dashboard/Components/Index.ts +102 -0
  49. package/build/dist/Models/DatabaseModels/DockerResource.js +525 -0
  50. package/build/dist/Models/DatabaseModels/DockerResource.js.map +1 -0
  51. package/build/dist/Models/DatabaseModels/Index.js +2 -0
  52. package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
  53. package/build/dist/Models/DatabaseModels/Monitor.js +82 -0
  54. package/build/dist/Models/DatabaseModels/Monitor.js.map +1 -1
  55. package/build/dist/Server/API/MonitorTemplateAPI.js +108 -0
  56. package/build/dist/Server/API/MonitorTemplateAPI.js.map +1 -0
  57. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1777933061000-MigrationName.js +20 -0
  58. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1777933061000-MigrationName.js.map +1 -0
  59. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1777972687018-MigrationName.js +30 -0
  60. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1777972687018-MigrationName.js.map +1 -0
  61. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +4 -0
  62. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
  63. package/build/dist/Server/Services/BillingInvoiceService.js +22 -25
  64. package/build/dist/Server/Services/BillingInvoiceService.js.map +1 -1
  65. package/build/dist/Server/Services/DockerResourceService.js +196 -0
  66. package/build/dist/Server/Services/DockerResourceService.js.map +1 -0
  67. package/build/dist/Server/Services/MonitorTemplateService.js +297 -0
  68. package/build/dist/Server/Services/MonitorTemplateService.js.map +1 -1
  69. package/build/dist/Server/Utils/VM/VMRunner.js +61 -0
  70. package/build/dist/Server/Utils/VM/VMRunner.js.map +1 -1
  71. package/build/dist/Types/Dashboard/DashboardComponentType.js +13 -0
  72. package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
  73. package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +15 -0
  74. package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js.map +1 -1
  75. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerContainerListComponent.js +2 -0
  76. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerContainerListComponent.js.map +1 -0
  77. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerHostListComponent.js +2 -0
  78. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerHostListComponent.js.map +1 -0
  79. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerImageListComponent.js +2 -0
  80. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerImageListComponent.js.map +1 -0
  81. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerNetworkListComponent.js +2 -0
  82. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerNetworkListComponent.js.map +1 -0
  83. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerVolumeListComponent.js +2 -0
  84. package/build/dist/Types/Dashboard/DashboardComponents/DashboardDockerVolumeListComponent.js.map +1 -0
  85. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesCronJobListComponent.js +2 -0
  86. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesCronJobListComponent.js.map +1 -0
  87. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesDaemonSetListComponent.js +2 -0
  88. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesDaemonSetListComponent.js.map +1 -0
  89. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesDeploymentListComponent.js +2 -0
  90. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesDeploymentListComponent.js.map +1 -0
  91. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesJobListComponent.js +2 -0
  92. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesJobListComponent.js.map +1 -0
  93. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesNamespaceListComponent.js +2 -0
  94. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesNamespaceListComponent.js.map +1 -0
  95. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesNodeListComponent.js +2 -0
  96. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesNodeListComponent.js.map +1 -0
  97. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesPodListComponent.js +2 -0
  98. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesPodListComponent.js.map +1 -0
  99. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesStatefulSetListComponent.js +2 -0
  100. package/build/dist/Types/Dashboard/DashboardComponents/DashboardKubernetesStatefulSetListComponent.js.map +1 -0
  101. package/build/dist/Types/Docker/DockerInventoryExtractor.js +293 -0
  102. package/build/dist/Types/Docker/DockerInventoryExtractor.js.map +1 -0
  103. package/build/dist/Utils/Dashboard/Components/DashboardAlertListComponent.js +43 -3
  104. package/build/dist/Utils/Dashboard/Components/DashboardAlertListComponent.js.map +1 -1
  105. package/build/dist/Utils/Dashboard/Components/DashboardDockerContainerListComponent.js +75 -0
  106. package/build/dist/Utils/Dashboard/Components/DashboardDockerContainerListComponent.js.map +1 -0
  107. package/build/dist/Utils/Dashboard/Components/DashboardDockerHostListComponent.js +69 -0
  108. package/build/dist/Utils/Dashboard/Components/DashboardDockerHostListComponent.js.map +1 -0
  109. package/build/dist/Utils/Dashboard/Components/DashboardDockerImageListComponent.js +75 -0
  110. package/build/dist/Utils/Dashboard/Components/DashboardDockerImageListComponent.js.map +1 -0
  111. package/build/dist/Utils/Dashboard/Components/DashboardDockerNetworkListComponent.js +66 -0
  112. package/build/dist/Utils/Dashboard/Components/DashboardDockerNetworkListComponent.js.map +1 -0
  113. package/build/dist/Utils/Dashboard/Components/DashboardDockerVolumeListComponent.js +66 -0
  114. package/build/dist/Utils/Dashboard/Components/DashboardDockerVolumeListComponent.js.map +1 -0
  115. package/build/dist/Utils/Dashboard/Components/DashboardIncidentListComponent.js +43 -3
  116. package/build/dist/Utils/Dashboard/Components/DashboardIncidentListComponent.js.map +1 -1
  117. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesCronJobListComponent.js +29 -0
  118. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesCronJobListComponent.js.map +1 -0
  119. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesDaemonSetListComponent.js +29 -0
  120. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesDaemonSetListComponent.js.map +1 -0
  121. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesDeploymentListComponent.js +29 -0
  122. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesDeploymentListComponent.js.map +1 -0
  123. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesJobListComponent.js +29 -0
  124. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesJobListComponent.js.map +1 -0
  125. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesNamespaceListComponent.js +29 -0
  126. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesNamespaceListComponent.js.map +1 -0
  127. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesNodeListComponent.js +44 -0
  128. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesNodeListComponent.js.map +1 -0
  129. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesPodListComponent.js +47 -0
  130. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesPodListComponent.js.map +1 -0
  131. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesResourceListShared.js +55 -0
  132. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesResourceListShared.js.map +1 -0
  133. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesStatefulSetListComponent.js +29 -0
  134. package/build/dist/Utils/Dashboard/Components/DashboardKubernetesStatefulSetListComponent.js.map +1 -0
  135. package/build/dist/Utils/Dashboard/Components/DashboardMonitorListComponent.js +46 -3
  136. package/build/dist/Utils/Dashboard/Components/DashboardMonitorListComponent.js.map +1 -1
  137. package/build/dist/Utils/Dashboard/Components/Index.js +53 -0
  138. package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
  139. package/package.json +1 -1
@@ -17,6 +17,67 @@ import vm, { Context } from "vm";
17
17
  */
18
18
  const PROXY_TARGET_SYMBOL: unique symbol = Symbol("sandboxProxyTarget");
19
19
 
20
+ /**
21
+ * Hardening prelude injected before user code in `runCodeInNodeVM`.
22
+ *
23
+ * Node's `vm` module is not a security boundary. The published PoC for
24
+ * GHSA-g9cp-35m2-fjv6 forces a stack-overflow `RangeError`, walks
25
+ * `e.__proto__.__proto__.__proto__` to `Object.prototype`, then reads
26
+ * `.toString.constructor` to obtain a `Function` constructor that compiles
27
+ * code in a realm where `process.binding('spawn_sync')` is reachable.
28
+ *
29
+ * This prelude closes that path by:
30
+ * - severing `Error.prototype`'s link to `Object.prototype` so the 3-level
31
+ * walk lands on `null` instead of `Object.prototype`;
32
+ * - deleting `.constructor` from every built-in prototype, so even a
33
+ * different walk (e.g. `(0).constructor.constructor`) cannot resolve to a
34
+ * function constructor;
35
+ * - clearing `Function` / `eval` from the sandbox global;
36
+ * - freezing the affected prototypes so user code cannot reattach them.
37
+ *
38
+ * This is a hotfix for the public PoC. The durable fix is to drop
39
+ * `runCodeInNodeVM` in favor of running synthetic monitor scripts in an
40
+ * out-of-process sandbox (tracked on the `probe-runner` branch).
41
+ */
42
+ const VM_HARDENING_PRELUDE: string = `(() => {
43
+ const _ctors = [
44
+ Object, Function, Array, String, Number, Boolean, RegExp,
45
+ Error, RangeError, TypeError, SyntaxError, ReferenceError, EvalError, URIError,
46
+ Symbol, Date, Map, Set, WeakMap, WeakSet, Promise, Proxy,
47
+ ArrayBuffer, DataView,
48
+ Int8Array, Uint8Array, Uint8ClampedArray,
49
+ Int16Array, Uint16Array, Int32Array, Uint32Array,
50
+ Float32Array, Float64Array,
51
+ ];
52
+ if (typeof BigInt !== 'undefined') _ctors.push(BigInt);
53
+
54
+ for (const C of _ctors) {
55
+ try { if (C && C.prototype) delete C.prototype.constructor; } catch (_) {}
56
+ }
57
+
58
+ // Generator / async-function prototypes have no named global — reach via syntax.
59
+ try { delete Object.getPrototypeOf(function*(){}).constructor; } catch (_) {}
60
+ try { delete Object.getPrototypeOf(async function(){}).constructor; } catch (_) {}
61
+ try { delete Object.getPrototypeOf(async function*(){}).constructor; } catch (_) {}
62
+
63
+ try { Object.setPrototypeOf(Error.prototype, null); } catch (_) {}
64
+
65
+ try {
66
+ Object.defineProperty(globalThis, 'Function', {
67
+ value: undefined, writable: false, configurable: false,
68
+ });
69
+ } catch (_) {}
70
+ try {
71
+ Object.defineProperty(globalThis, 'eval', {
72
+ value: undefined, writable: false, configurable: false,
73
+ });
74
+ } catch (_) {}
75
+
76
+ for (const C of _ctors) {
77
+ try { if (C && C.prototype) Object.freeze(C.prototype); } catch (_) {}
78
+ }
79
+ })();`;
80
+
20
81
  /** Properties blocked on every host-realm object exposed to the sandbox. */
21
82
  const BLOCKED_SANDBOX_PROPERTIES: ReadonlySet<string> = new Set([
22
83
  "constructor",
@@ -465,6 +526,7 @@ export default class VMRunner {
465
526
  });
466
527
 
467
528
  const script: string = `(async()=>{
529
+ ${VM_HARDENING_PRELUDE}
468
530
  ${code}
469
531
  })()`;
470
532
 
@@ -9,6 +9,19 @@ enum DashboardComponentType {
9
9
  IncidentList = `IncidentList`,
10
10
  AlertList = `AlertList`,
11
11
  MonitorList = `MonitorList`,
12
+ KubernetesPodList = `KubernetesPodList`,
13
+ KubernetesNodeList = `KubernetesNodeList`,
14
+ KubernetesNamespaceList = `KubernetesNamespaceList`,
15
+ KubernetesDeploymentList = `KubernetesDeploymentList`,
16
+ KubernetesStatefulSetList = `KubernetesStatefulSetList`,
17
+ KubernetesDaemonSetList = `KubernetesDaemonSetList`,
18
+ KubernetesJobList = `KubernetesJobList`,
19
+ KubernetesCronJobList = `KubernetesCronJobList`,
20
+ DockerHostList = `DockerHostList`,
21
+ DockerContainerList = `DockerContainerList`,
22
+ DockerImageList = `DockerImageList`,
23
+ DockerNetworkList = `DockerNetworkList`,
24
+ DockerVolumeList = `DockerVolumeList`,
12
25
  }
13
26
 
14
27
  export default DashboardComponentType;
@@ -12,6 +12,21 @@ export enum ComponentInputType {
12
12
  MetricsQueryConfigs = "MetricsQueryConfigs",
13
13
  LongText = "Long Text",
14
14
  Dropdown = "Dropdown",
15
+ MultiSelectDropdown = "MultiSelectDropdown",
16
+ EntityDropdown = "EntityDropdown",
17
+ EntityMultiSelectDropdown = "EntityMultiSelectDropdown",
18
+ }
19
+
20
+ export enum EntityFilterModelType {
21
+ IncidentSeverity = "IncidentSeverity",
22
+ AlertSeverity = "AlertSeverity",
23
+ IncidentState = "IncidentState",
24
+ AlertState = "AlertState",
25
+ MonitorStatus = "MonitorStatus",
26
+ Monitor = "Monitor",
27
+ Label = "Label",
28
+ KubernetesCluster = "KubernetesCluster",
29
+ DockerHost = "DockerHost",
15
30
  }
16
31
 
17
32
  export interface ComponentArgumentSection {
@@ -32,4 +47,5 @@ export interface ComponentArgument<T extends DashboardBaseComponent> {
32
47
  placeholder?: string | undefined;
33
48
  dropdownOptions?: Array<DropdownOption> | undefined;
34
49
  section?: ComponentArgumentSection | undefined;
50
+ entityFilterModelType?: EntityFilterModelType | undefined;
35
51
  }
@@ -9,5 +9,9 @@ export default interface DashboardAlertListComponent extends BaseComponent {
9
9
  title?: string | undefined;
10
10
  maxRows?: number | undefined;
11
11
  stateFilter?: string | undefined;
12
+ severityIds?: Array<string> | undefined;
13
+ stateIds?: Array<string> | undefined;
14
+ monitorIds?: Array<string> | undefined;
15
+ labelIds?: Array<string> | undefined;
12
16
  };
13
17
  }
@@ -0,0 +1,15 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardDockerContainerListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.DockerContainerList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ dockerHostIds?: Array<string> | undefined;
13
+ imageName?: string | undefined;
14
+ };
15
+ }
@@ -0,0 +1,14 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardDockerHostListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.DockerHostList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ statusFilter?: string | undefined;
13
+ };
14
+ }
@@ -0,0 +1,15 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardDockerImageListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.DockerImageList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ dockerHostIds?: Array<string> | undefined;
13
+ nameSearch?: string | undefined;
14
+ };
15
+ }
@@ -0,0 +1,14 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardDockerNetworkListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.DockerNetworkList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ dockerHostIds?: Array<string> | undefined;
13
+ };
14
+ }
@@ -0,0 +1,14 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardDockerVolumeListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.DockerVolumeList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ dockerHostIds?: Array<string> | undefined;
13
+ };
14
+ }
@@ -9,5 +9,9 @@ export default interface DashboardIncidentListComponent extends BaseComponent {
9
9
  title?: string | undefined;
10
10
  maxRows?: number | undefined;
11
11
  stateFilter?: string | undefined;
12
+ severityIds?: Array<string> | undefined;
13
+ stateIds?: Array<string> | undefined;
14
+ monitorIds?: Array<string> | undefined;
15
+ labelIds?: Array<string> | undefined;
12
16
  };
13
17
  }
@@ -0,0 +1,15 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardKubernetesCronJobListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.KubernetesCronJobList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ kubernetesClusterIds?: Array<string> | undefined;
13
+ namespaces?: string | undefined;
14
+ };
15
+ }
@@ -0,0 +1,15 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardKubernetesDaemonSetListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.KubernetesDaemonSetList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ kubernetesClusterIds?: Array<string> | undefined;
13
+ namespaces?: string | undefined;
14
+ };
15
+ }
@@ -0,0 +1,15 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardKubernetesDeploymentListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.KubernetesDeploymentList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ kubernetesClusterIds?: Array<string> | undefined;
13
+ namespaces?: string | undefined;
14
+ };
15
+ }
@@ -0,0 +1,15 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardKubernetesJobListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.KubernetesJobList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ kubernetesClusterIds?: Array<string> | undefined;
13
+ namespaces?: string | undefined;
14
+ };
15
+ }
@@ -0,0 +1,14 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardKubernetesNamespaceListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.KubernetesNamespaceList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ kubernetesClusterIds?: Array<string> | undefined;
13
+ };
14
+ }
@@ -0,0 +1,15 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardKubernetesNodeListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.KubernetesNodeList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ kubernetesClusterIds?: Array<string> | undefined;
13
+ readinessFilter?: string | undefined;
14
+ };
15
+ }
@@ -0,0 +1,16 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardKubernetesPodListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.KubernetesPodList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ kubernetesClusterIds?: Array<string> | undefined;
13
+ namespaces?: string | undefined;
14
+ podPhases?: Array<string> | undefined;
15
+ };
16
+ }
@@ -0,0 +1,15 @@
1
+ import ObjectID from "../../ObjectID";
2
+ import DashboardComponentType from "../DashboardComponentType";
3
+ import BaseComponent from "./DashboardBaseComponent";
4
+
5
+ export default interface DashboardKubernetesStatefulSetListComponent
6
+ extends BaseComponent {
7
+ componentType: DashboardComponentType.KubernetesStatefulSetList;
8
+ componentId: ObjectID;
9
+ arguments: {
10
+ title?: string | undefined;
11
+ maxRows?: number | undefined;
12
+ kubernetesClusterIds?: Array<string> | undefined;
13
+ namespaces?: string | undefined;
14
+ };
15
+ }
@@ -9,5 +9,8 @@ export default interface DashboardMonitorListComponent extends BaseComponent {
9
9
  title?: string | undefined;
10
10
  maxRows?: number | undefined;
11
11
  statusFilter?: string | undefined;
12
+ monitorStatusIds?: Array<string> | undefined;
13
+ monitorTypes?: Array<string> | undefined;
14
+ labelIds?: Array<string> | undefined;
12
15
  };
13
16
  }