namirasoft-infra 1.4.2 → 1.4.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/dist/NamirasoftInfraServer.js +1 -1
- package/dist/command/AlertCreateCommand.js +1 -1
- package/dist/command/AlertCreateCommand.js.map +1 -1
- package/dist/command/AlertUpdateCommand.js +1 -1
- package/dist/command/AlertUpdateCommand.js.map +1 -1
- package/dist/command/CloudCreateCommand.js +1 -1
- package/dist/command/CloudCreateCommand.js.map +1 -1
- package/dist/command/CloudUpdateCommand.js +1 -1
- package/dist/command/CloudUpdateCommand.js.map +1 -1
- package/dist/command/DatabaseCreateCommand.js +1 -1
- package/dist/command/DatabaseCreateCommand.js.map +1 -1
- package/dist/command/DatabaseUpdateCommand.js +1 -1
- package/dist/command/DatabaseUpdateCommand.js.map +1 -1
- package/dist/command/EnvironmentCreateCommand.js +1 -1
- package/dist/command/EnvironmentCreateCommand.js.map +1 -1
- package/dist/command/EnvironmentUpdateCommand.js +1 -1
- package/dist/command/EnvironmentUpdateCommand.js.map +1 -1
- package/dist/command/InMemoryStoreCreateCommand.js +1 -1
- package/dist/command/InMemoryStoreCreateCommand.js.map +1 -1
- package/dist/command/InMemoryStoreUpdateCommand.js +1 -1
- package/dist/command/InMemoryStoreUpdateCommand.js.map +1 -1
- package/dist/command/IncidentCreateCommand.js +1 -1
- package/dist/command/IncidentCreateCommand.js.map +1 -1
- package/dist/command/IncidentUpdateCommand.js +1 -1
- package/dist/command/IncidentUpdateCommand.js.map +1 -1
- package/dist/command/KubernetesCreateCommand.js +19 -1
- package/dist/command/KubernetesCreateCommand.js.map +1 -1
- package/dist/command/KubernetesUpdateCommand.js +19 -1
- package/dist/command/KubernetesUpdateCommand.js.map +1 -1
- package/dist/command/MessageBrokerCreateCommand.js +1 -1
- package/dist/command/MessageBrokerCreateCommand.js.map +1 -1
- package/dist/command/MessageBrokerUpdateCommand.js +1 -1
- package/dist/command/MessageBrokerUpdateCommand.js.map +1 -1
- package/dist/command/MetricCreateCommand.js +4 -13
- package/dist/command/MetricCreateCommand.js.map +1 -1
- package/dist/command/MetricUpdateCommand.js +4 -13
- package/dist/command/MetricUpdateCommand.js.map +1 -1
- package/dist/command/MonitorCreateCommand.js +5 -14
- package/dist/command/MonitorCreateCommand.js.map +1 -1
- package/dist/command/MonitorUpdateCommand.js +5 -14
- package/dist/command/MonitorUpdateCommand.js.map +1 -1
- package/dist/command/ProjectCreateCommand.js +1 -1
- package/dist/command/ProjectCreateCommand.js.map +1 -1
- package/dist/command/ProjectUpdateCommand.js +1 -1
- package/dist/command/ProjectUpdateCommand.js.map +1 -1
- package/dist/command/ServerCreateCommand.js +10 -1
- package/dist/command/ServerCreateCommand.js.map +1 -1
- package/dist/command/ServerUpdateCommand.js +10 -1
- package/dist/command/ServerUpdateCommand.js.map +1 -1
- package/dist/enum/CloudType.d.ts +6 -0
- package/dist/enum/CloudType.js +11 -0
- package/dist/enum/CloudType.js.map +1 -0
- package/dist/enum/KubernetesCloud.d.ts +6 -0
- package/dist/enum/KubernetesCloud.js +11 -0
- package/dist/enum/KubernetesCloud.js.map +1 -0
- package/dist/enum/ServerCloud.d.ts +6 -0
- package/dist/enum/ServerCloud.js +11 -0
- package/dist/enum/ServerCloud.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/AlertMetaTable.js +1 -1
- package/dist/meta/AlertMetaTable.js.map +1 -1
- package/dist/meta/CloudMetaTable.js +2 -2
- package/dist/meta/CloudMetaTable.js.map +1 -1
- package/dist/meta/DatabaseMetaTable.js +1 -1
- package/dist/meta/DatabaseMetaTable.js.map +1 -1
- package/dist/meta/EnvironmentMetaTable.js +1 -1
- package/dist/meta/EnvironmentMetaTable.js.map +1 -1
- package/dist/meta/InMemoryStoreMetaTable.js +1 -1
- package/dist/meta/InMemoryStoreMetaTable.js.map +1 -1
- package/dist/meta/IncidentMetaTable.js +1 -1
- package/dist/meta/IncidentMetaTable.js.map +1 -1
- package/dist/meta/KubernetesMetaTable.d.ts +2 -0
- package/dist/meta/KubernetesMetaTable.js +3 -1
- package/dist/meta/KubernetesMetaTable.js.map +1 -1
- package/dist/meta/MessageBrokerMetaTable.js +1 -1
- package/dist/meta/MessageBrokerMetaTable.js.map +1 -1
- package/dist/meta/MetricMetaTable.d.ts +1 -2
- package/dist/meta/MetricMetaTable.js +1 -2
- package/dist/meta/MetricMetaTable.js.map +1 -1
- package/dist/meta/MonitorMetaTable.d.ts +1 -2
- package/dist/meta/MonitorMetaTable.js +2 -3
- package/dist/meta/MonitorMetaTable.js.map +1 -1
- package/dist/meta/ProjectMetaTable.js +1 -1
- package/dist/meta/ProjectMetaTable.js.map +1 -1
- package/dist/meta/ServerMetaTable.d.ts +1 -0
- package/dist/meta/ServerMetaTable.js +2 -1
- package/dist/meta/ServerMetaTable.js.map +1 -1
- package/dist/row/AlertInputRow.d.ts +1 -1
- package/dist/row/AlertRow.d.ts +1 -1
- package/dist/row/CloudInputRow.d.ts +3 -2
- package/dist/row/CloudRow.d.ts +3 -2
- package/dist/row/DatabaseInputRow.d.ts +1 -1
- package/dist/row/DatabaseRow.d.ts +1 -1
- package/dist/row/EnvironmentInputRow.d.ts +1 -1
- package/dist/row/EnvironmentRow.d.ts +1 -1
- package/dist/row/InMemoryStoreInputRow.d.ts +1 -1
- package/dist/row/InMemoryStoreRow.d.ts +1 -1
- package/dist/row/IncidentInputRow.d.ts +1 -1
- package/dist/row/IncidentRow.d.ts +1 -1
- package/dist/row/KubernetesInputRow.d.ts +4 -1
- package/dist/row/KubernetesRow.d.ts +4 -1
- package/dist/row/MessageBrokerInputRow.d.ts +1 -1
- package/dist/row/MessageBrokerRow.d.ts +1 -1
- package/dist/row/MetricInputRow.d.ts +1 -3
- package/dist/row/MetricRow.d.ts +1 -3
- package/dist/row/MonitorInputRow.d.ts +2 -4
- package/dist/row/MonitorRow.d.ts +2 -4
- package/dist/row/ProjectInputRow.d.ts +1 -1
- package/dist/row/ProjectRow.d.ts +1 -1
- package/dist/row/ServerInputRow.d.ts +3 -1
- package/dist/row/ServerRow.d.ts +3 -1
- package/package.json +1 -1
- package/src/NamirasoftInfraServer.ts +1 -1
- package/src/command/AlertCreateCommand.ts +1 -1
- package/src/command/AlertUpdateCommand.ts +1 -1
- package/src/command/CloudCreateCommand.ts +1 -1
- package/src/command/CloudUpdateCommand.ts +1 -1
- package/src/command/DatabaseCreateCommand.ts +1 -1
- package/src/command/DatabaseUpdateCommand.ts +1 -1
- package/src/command/EnvironmentCreateCommand.ts +1 -1
- package/src/command/EnvironmentUpdateCommand.ts +1 -1
- package/src/command/InMemoryStoreCreateCommand.ts +1 -1
- package/src/command/InMemoryStoreUpdateCommand.ts +1 -1
- package/src/command/IncidentCreateCommand.ts +1 -1
- package/src/command/IncidentUpdateCommand.ts +1 -1
- package/src/command/KubernetesCreateCommand.ts +19 -1
- package/src/command/KubernetesUpdateCommand.ts +19 -1
- package/src/command/MessageBrokerCreateCommand.ts +1 -1
- package/src/command/MessageBrokerUpdateCommand.ts +1 -1
- package/src/command/MetricCreateCommand.ts +4 -13
- package/src/command/MetricUpdateCommand.ts +4 -13
- package/src/command/MonitorCreateCommand.ts +5 -14
- package/src/command/MonitorUpdateCommand.ts +5 -14
- package/src/command/ProjectCreateCommand.ts +1 -1
- package/src/command/ProjectUpdateCommand.ts +1 -1
- package/src/command/ServerCreateCommand.ts +10 -1
- package/src/command/ServerUpdateCommand.ts +10 -1
- package/src/enum/{MetricIntervalUnit.ts → CloudType.ts} +5 -4
- package/src/enum/{MonitorHeartbeatIntervalUnit.ts → KubernetesCloud.ts} +5 -4
- package/src/enum/ServerCloud.ts +27 -0
- package/src/index.ts +3 -2
- package/src/meta/AlertMetaTable.ts +1 -1
- package/src/meta/CloudMetaTable.ts +2 -2
- package/src/meta/DatabaseMetaTable.ts +1 -1
- package/src/meta/EnvironmentMetaTable.ts +1 -1
- package/src/meta/InMemoryStoreMetaTable.ts +1 -1
- package/src/meta/IncidentMetaTable.ts +1 -1
- package/src/meta/KubernetesMetaTable.ts +5 -1
- package/src/meta/MessageBrokerMetaTable.ts +1 -1
- package/src/meta/MetricMetaTable.ts +2 -4
- package/src/meta/MonitorMetaTable.ts +3 -5
- package/src/meta/ProjectMetaTable.ts +1 -1
- package/src/meta/ServerMetaTable.ts +3 -1
- package/src/row/AlertInputRow.ts +1 -1
- package/src/row/AlertRow.ts +1 -1
- package/src/row/CloudInputRow.ts +4 -2
- package/src/row/CloudRow.ts +4 -2
- package/src/row/DatabaseInputRow.ts +1 -1
- package/src/row/DatabaseRow.ts +1 -1
- package/src/row/EnvironmentInputRow.ts +1 -1
- package/src/row/EnvironmentRow.ts +1 -1
- package/src/row/InMemoryStoreInputRow.ts +1 -1
- package/src/row/InMemoryStoreRow.ts +1 -1
- package/src/row/IncidentInputRow.ts +1 -1
- package/src/row/IncidentRow.ts +1 -1
- package/src/row/KubernetesInputRow.ts +5 -1
- package/src/row/KubernetesRow.ts +5 -1
- package/src/row/MessageBrokerInputRow.ts +1 -1
- package/src/row/MessageBrokerRow.ts +1 -1
- package/src/row/MetricInputRow.ts +1 -3
- package/src/row/MetricRow.ts +1 -3
- package/src/row/MonitorInputRow.ts +2 -4
- package/src/row/MonitorRow.ts +2 -4
- package/src/row/ProjectInputRow.ts +1 -1
- package/src/row/ProjectRow.ts +1 -1
- package/src/row/ServerInputRow.ts +3 -1
- package/src/row/ServerRow.ts +3 -1
- package/dist/enum/MetricIntervalUnit.d.ts +0 -5
- package/dist/enum/MetricIntervalUnit.js +0 -10
- package/dist/enum/MetricIntervalUnit.js.map +0 -1
- package/dist/enum/MonitorHeartbeatIntervalUnit.d.ts +0 -5
- package/dist/enum/MonitorHeartbeatIntervalUnit.js +0 -10
- package/dist/enum/MonitorHeartbeatIntervalUnit.js.map +0 -1
package/dist/row/ServerRow.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ServerCloud } from "../enum/ServerCloud";
|
|
1
2
|
import { ServerMetricRetentionUnit } from "../enum/ServerMetricRetentionUnit";
|
|
2
3
|
export type ServerRow = {
|
|
3
4
|
id: string;
|
|
@@ -8,10 +9,11 @@ export type ServerRow = {
|
|
|
8
9
|
project_id: string;
|
|
9
10
|
environment_id: string;
|
|
10
11
|
log_group_id: (string | null);
|
|
12
|
+
cloud: ServerCloud;
|
|
11
13
|
name: string;
|
|
12
14
|
metric_retention_unit: ServerMetricRetentionUnit;
|
|
13
15
|
metric_retention_value: number;
|
|
14
|
-
description: string;
|
|
16
|
+
description: (string | null);
|
|
15
17
|
hash: string;
|
|
16
18
|
ip_public: string;
|
|
17
19
|
ip_private: string;
|
package/package.json
CHANGED
|
@@ -129,7 +129,7 @@ export class NamirasoftInfraServer extends NSABaseServer
|
|
|
129
129
|
cloud: NamirasoftInfraServerCloud;
|
|
130
130
|
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void)
|
|
131
131
|
{
|
|
132
|
-
super(base_url, `1.4.
|
|
132
|
+
super(base_url, `1.4.4`, token_manager, onError);
|
|
133
133
|
this.healthz = new NamirasoftInfraServerHealthz(this);
|
|
134
134
|
this.health = new NamirasoftInfraServerHealth(this);
|
|
135
135
|
this.metrics = new NamirasoftInfraServerMetrics(this);
|
|
@@ -128,7 +128,7 @@ export class AlertCreateCommand extends BaseFinalCommand
|
|
|
128
128
|
name: "description",
|
|
129
129
|
short: "",
|
|
130
130
|
description: "Provides the value of 'description' in body",
|
|
131
|
-
optional:
|
|
131
|
+
optional: true,
|
|
132
132
|
args: ["description"],
|
|
133
133
|
defaults: [""]
|
|
134
134
|
}
|
|
@@ -128,7 +128,7 @@ export class AlertUpdateCommand extends BaseFinalCommand
|
|
|
128
128
|
name: "description",
|
|
129
129
|
short: "",
|
|
130
130
|
description: "Provides the value of 'description' in body",
|
|
131
|
-
optional:
|
|
131
|
+
optional: true,
|
|
132
132
|
args: ["description"],
|
|
133
133
|
defaults: [""]
|
|
134
134
|
}
|
|
@@ -112,7 +112,7 @@ export class DatabaseCreateCommand extends BaseFinalCommand
|
|
|
112
112
|
name: "description",
|
|
113
113
|
short: "",
|
|
114
114
|
description: "Provides the value of 'description' in body",
|
|
115
|
-
optional:
|
|
115
|
+
optional: true,
|
|
116
116
|
args: ["description"],
|
|
117
117
|
defaults: [""]
|
|
118
118
|
}
|
|
@@ -112,7 +112,7 @@ export class DatabaseUpdateCommand extends BaseFinalCommand
|
|
|
112
112
|
name: "description",
|
|
113
113
|
short: "",
|
|
114
114
|
description: "Provides the value of 'description' in body",
|
|
115
|
-
optional:
|
|
115
|
+
optional: true,
|
|
116
116
|
args: ["description"],
|
|
117
117
|
defaults: [""]
|
|
118
118
|
}
|
|
@@ -112,7 +112,7 @@ export class InMemoryStoreCreateCommand extends BaseFinalCommand
|
|
|
112
112
|
name: "description",
|
|
113
113
|
short: "",
|
|
114
114
|
description: "Provides the value of 'description' in body",
|
|
115
|
-
optional:
|
|
115
|
+
optional: true,
|
|
116
116
|
args: ["description"],
|
|
117
117
|
defaults: [""]
|
|
118
118
|
}
|
|
@@ -112,7 +112,7 @@ export class InMemoryStoreUpdateCommand extends BaseFinalCommand
|
|
|
112
112
|
name: "description",
|
|
113
113
|
short: "",
|
|
114
114
|
description: "Provides the value of 'description' in body",
|
|
115
|
-
optional:
|
|
115
|
+
optional: true,
|
|
116
116
|
args: ["description"],
|
|
117
117
|
defaults: [""]
|
|
118
118
|
}
|
|
@@ -76,6 +76,22 @@ export class KubernetesCreateCommand extends BaseFinalCommand
|
|
|
76
76
|
args: ["log_group_id"],
|
|
77
77
|
defaults: [""]
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
name: "kubctl_on_server_id",
|
|
81
|
+
short: "",
|
|
82
|
+
description: "Provides the value of 'kubctl_on_server_id' in body",
|
|
83
|
+
optional: false,
|
|
84
|
+
args: ["kubctl_on_server_id"],
|
|
85
|
+
defaults: [""]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "cloud",
|
|
89
|
+
short: "",
|
|
90
|
+
description: "Provides the value of 'cloud' in body",
|
|
91
|
+
optional: false,
|
|
92
|
+
args: ["cloud"],
|
|
93
|
+
defaults: [""]
|
|
94
|
+
},
|
|
79
95
|
{
|
|
80
96
|
name: "name",
|
|
81
97
|
short: "",
|
|
@@ -88,7 +104,7 @@ export class KubernetesCreateCommand extends BaseFinalCommand
|
|
|
88
104
|
name: "description",
|
|
89
105
|
short: "",
|
|
90
106
|
description: "Provides the value of 'description' in body",
|
|
91
|
-
optional:
|
|
107
|
+
optional: true,
|
|
92
108
|
args: ["description"],
|
|
93
109
|
defaults: [""]
|
|
94
110
|
},
|
|
@@ -135,6 +151,8 @@ export class KubernetesCreateCommand extends BaseFinalCommand
|
|
|
135
151
|
project_id: this.option_values.project_id,
|
|
136
152
|
environment_id: this.option_values.environment_id,
|
|
137
153
|
log_group_id: this.option_values.log_group_id,
|
|
154
|
+
kubctl_on_server_id: this.option_values.kubctl_on_server_id,
|
|
155
|
+
cloud: this.option_values.cloud,
|
|
138
156
|
name: this.option_values.name,
|
|
139
157
|
description: this.option_values.description,
|
|
140
158
|
hash: this.option_values.hash,
|
|
@@ -76,6 +76,22 @@ export class KubernetesUpdateCommand extends BaseFinalCommand
|
|
|
76
76
|
args: ["log_group_id"],
|
|
77
77
|
defaults: [""]
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
name: "kubctl_on_server_id",
|
|
81
|
+
short: "",
|
|
82
|
+
description: "Provides the value of 'kubctl_on_server_id' in body",
|
|
83
|
+
optional: false,
|
|
84
|
+
args: ["kubctl_on_server_id"],
|
|
85
|
+
defaults: [""]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "cloud",
|
|
89
|
+
short: "",
|
|
90
|
+
description: "Provides the value of 'cloud' in body",
|
|
91
|
+
optional: false,
|
|
92
|
+
args: ["cloud"],
|
|
93
|
+
defaults: [""]
|
|
94
|
+
},
|
|
79
95
|
{
|
|
80
96
|
name: "name",
|
|
81
97
|
short: "",
|
|
@@ -88,7 +104,7 @@ export class KubernetesUpdateCommand extends BaseFinalCommand
|
|
|
88
104
|
name: "description",
|
|
89
105
|
short: "",
|
|
90
106
|
description: "Provides the value of 'description' in body",
|
|
91
|
-
optional:
|
|
107
|
+
optional: true,
|
|
92
108
|
args: ["description"],
|
|
93
109
|
defaults: [""]
|
|
94
110
|
},
|
|
@@ -135,6 +151,8 @@ export class KubernetesUpdateCommand extends BaseFinalCommand
|
|
|
135
151
|
project_id: this.option_values.project_id,
|
|
136
152
|
environment_id: this.option_values.environment_id,
|
|
137
153
|
log_group_id: this.option_values.log_group_id,
|
|
154
|
+
kubctl_on_server_id: this.option_values.kubctl_on_server_id,
|
|
155
|
+
cloud: this.option_values.cloud,
|
|
138
156
|
name: this.option_values.name,
|
|
139
157
|
description: this.option_values.description,
|
|
140
158
|
hash: this.option_values.hash,
|
|
@@ -112,7 +112,7 @@ export class MessageBrokerCreateCommand extends BaseFinalCommand
|
|
|
112
112
|
name: "description",
|
|
113
113
|
short: "",
|
|
114
114
|
description: "Provides the value of 'description' in body",
|
|
115
|
-
optional:
|
|
115
|
+
optional: true,
|
|
116
116
|
args: ["description"],
|
|
117
117
|
defaults: [""]
|
|
118
118
|
}
|
|
@@ -112,7 +112,7 @@ export class MessageBrokerUpdateCommand extends BaseFinalCommand
|
|
|
112
112
|
name: "description",
|
|
113
113
|
short: "",
|
|
114
114
|
description: "Provides the value of 'description' in body",
|
|
115
|
-
optional:
|
|
115
|
+
optional: true,
|
|
116
116
|
args: ["description"],
|
|
117
117
|
defaults: [""]
|
|
118
118
|
}
|
|
@@ -93,19 +93,11 @@ export class MetricCreateCommand extends BaseFinalCommand
|
|
|
93
93
|
defaults: [""]
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
name: "
|
|
96
|
+
name: "interval_scheduler_id",
|
|
97
97
|
short: "",
|
|
98
|
-
description: "Provides the value of '
|
|
98
|
+
description: "Provides the value of 'interval_scheduler_id' in body",
|
|
99
99
|
optional: false,
|
|
100
|
-
args: ["
|
|
101
|
-
defaults: [""]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: "interval_unit",
|
|
105
|
-
short: "",
|
|
106
|
-
description: "Provides the value of 'interval_unit' in body",
|
|
107
|
-
optional: false,
|
|
108
|
-
args: ["interval_unit"],
|
|
100
|
+
args: ["interval_scheduler_id"],
|
|
109
101
|
defaults: [""]
|
|
110
102
|
},
|
|
111
103
|
{
|
|
@@ -137,8 +129,7 @@ export class MetricCreateCommand extends BaseFinalCommand
|
|
|
137
129
|
caller_server_id: this.option_values.caller_server_id,
|
|
138
130
|
caller_kubernetes_id: this.option_values.caller_kubernetes_id,
|
|
139
131
|
url: this.option_values.url,
|
|
140
|
-
|
|
141
|
-
interval_unit: this.option_values.interval_unit,
|
|
132
|
+
interval_scheduler_id: this.option_values.interval_scheduler_id,
|
|
142
133
|
description: this.option_values.description
|
|
143
134
|
});
|
|
144
135
|
this.app.logger.success(JSON.stringify(ans));
|
|
@@ -93,19 +93,11 @@ export class MetricUpdateCommand extends BaseFinalCommand
|
|
|
93
93
|
defaults: [""]
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
name: "
|
|
96
|
+
name: "interval_scheduler_id",
|
|
97
97
|
short: "",
|
|
98
|
-
description: "Provides the value of '
|
|
98
|
+
description: "Provides the value of 'interval_scheduler_id' in body",
|
|
99
99
|
optional: false,
|
|
100
|
-
args: ["
|
|
101
|
-
defaults: [""]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: "interval_unit",
|
|
105
|
-
short: "",
|
|
106
|
-
description: "Provides the value of 'interval_unit' in body",
|
|
107
|
-
optional: false,
|
|
108
|
-
args: ["interval_unit"],
|
|
100
|
+
args: ["interval_scheduler_id"],
|
|
109
101
|
defaults: [""]
|
|
110
102
|
},
|
|
111
103
|
{
|
|
@@ -137,8 +129,7 @@ export class MetricUpdateCommand extends BaseFinalCommand
|
|
|
137
129
|
caller_server_id: this.option_values.caller_server_id,
|
|
138
130
|
caller_kubernetes_id: this.option_values.caller_kubernetes_id,
|
|
139
131
|
url: this.option_values.url,
|
|
140
|
-
|
|
141
|
-
interval_unit: this.option_values.interval_unit,
|
|
132
|
+
interval_scheduler_id: this.option_values.interval_scheduler_id,
|
|
142
133
|
description: this.option_values.description
|
|
143
134
|
});
|
|
144
135
|
this.app.logger.success(JSON.stringify(ans));
|
|
@@ -101,19 +101,11 @@ export class MonitorCreateCommand extends BaseFinalCommand
|
|
|
101
101
|
defaults: [""]
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
name: "
|
|
104
|
+
name: "heartbeat_interval_scheduler_id",
|
|
105
105
|
short: "",
|
|
106
|
-
description: "Provides the value of '
|
|
106
|
+
description: "Provides the value of 'heartbeat_interval_scheduler_id' in body",
|
|
107
107
|
optional: false,
|
|
108
|
-
args: ["
|
|
109
|
-
defaults: [""]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: "heartbeat_interval_unit",
|
|
113
|
-
short: "",
|
|
114
|
-
description: "Provides the value of 'heartbeat_interval_unit' in body",
|
|
115
|
-
optional: false,
|
|
116
|
-
args: ["heartbeat_interval_unit"],
|
|
108
|
+
args: ["heartbeat_interval_scheduler_id"],
|
|
117
109
|
defaults: [""]
|
|
118
110
|
},
|
|
119
111
|
{
|
|
@@ -328,7 +320,7 @@ export class MonitorCreateCommand extends BaseFinalCommand
|
|
|
328
320
|
name: "description",
|
|
329
321
|
short: "",
|
|
330
322
|
description: "Provides the value of 'description' in body",
|
|
331
|
-
optional:
|
|
323
|
+
optional: true,
|
|
332
324
|
args: ["description"],
|
|
333
325
|
defaults: [""]
|
|
334
326
|
}
|
|
@@ -354,8 +346,7 @@ export class MonitorCreateCommand extends BaseFinalCommand
|
|
|
354
346
|
caller_server_id: this.option_values.caller_server_id,
|
|
355
347
|
caller_kubernetes_id: this.option_values.caller_kubernetes_id,
|
|
356
348
|
up_side_down: this.option_values.up_side_down,
|
|
357
|
-
|
|
358
|
-
heartbeat_interval_unit: this.option_values.heartbeat_interval_unit,
|
|
349
|
+
heartbeat_interval_scheduler_id: this.option_values.heartbeat_interval_scheduler_id,
|
|
359
350
|
retries: this.option_values.retries,
|
|
360
351
|
heartbeat_retry_interval_value: this.option_values.heartbeat_retry_interval_value,
|
|
361
352
|
heartbeat_retry_interval_unit: this.option_values.heartbeat_retry_interval_unit,
|
|
@@ -101,19 +101,11 @@ export class MonitorUpdateCommand extends BaseFinalCommand
|
|
|
101
101
|
defaults: [""]
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
name: "
|
|
104
|
+
name: "heartbeat_interval_scheduler_id",
|
|
105
105
|
short: "",
|
|
106
|
-
description: "Provides the value of '
|
|
106
|
+
description: "Provides the value of 'heartbeat_interval_scheduler_id' in body",
|
|
107
107
|
optional: false,
|
|
108
|
-
args: ["
|
|
109
|
-
defaults: [""]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: "heartbeat_interval_unit",
|
|
113
|
-
short: "",
|
|
114
|
-
description: "Provides the value of 'heartbeat_interval_unit' in body",
|
|
115
|
-
optional: false,
|
|
116
|
-
args: ["heartbeat_interval_unit"],
|
|
108
|
+
args: ["heartbeat_interval_scheduler_id"],
|
|
117
109
|
defaults: [""]
|
|
118
110
|
},
|
|
119
111
|
{
|
|
@@ -328,7 +320,7 @@ export class MonitorUpdateCommand extends BaseFinalCommand
|
|
|
328
320
|
name: "description",
|
|
329
321
|
short: "",
|
|
330
322
|
description: "Provides the value of 'description' in body",
|
|
331
|
-
optional:
|
|
323
|
+
optional: true,
|
|
332
324
|
args: ["description"],
|
|
333
325
|
defaults: [""]
|
|
334
326
|
}
|
|
@@ -354,8 +346,7 @@ export class MonitorUpdateCommand extends BaseFinalCommand
|
|
|
354
346
|
caller_server_id: this.option_values.caller_server_id,
|
|
355
347
|
caller_kubernetes_id: this.option_values.caller_kubernetes_id,
|
|
356
348
|
up_side_down: this.option_values.up_side_down,
|
|
357
|
-
|
|
358
|
-
heartbeat_interval_unit: this.option_values.heartbeat_interval_unit,
|
|
349
|
+
heartbeat_interval_scheduler_id: this.option_values.heartbeat_interval_scheduler_id,
|
|
359
350
|
retries: this.option_values.retries,
|
|
360
351
|
heartbeat_retry_interval_value: this.option_values.heartbeat_retry_interval_value,
|
|
361
352
|
heartbeat_retry_interval_unit: this.option_values.heartbeat_retry_interval_unit,
|
|
@@ -76,6 +76,14 @@ export class ServerCreateCommand extends BaseFinalCommand
|
|
|
76
76
|
args: ["log_group_id"],
|
|
77
77
|
defaults: [""]
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
name: "cloud",
|
|
81
|
+
short: "",
|
|
82
|
+
description: "Provides the value of 'cloud' in body",
|
|
83
|
+
optional: false,
|
|
84
|
+
args: ["cloud"],
|
|
85
|
+
defaults: [""]
|
|
86
|
+
},
|
|
79
87
|
{
|
|
80
88
|
name: "name",
|
|
81
89
|
short: "",
|
|
@@ -104,7 +112,7 @@ export class ServerCreateCommand extends BaseFinalCommand
|
|
|
104
112
|
name: "description",
|
|
105
113
|
short: "",
|
|
106
114
|
description: "Provides the value of 'description' in body",
|
|
107
|
-
optional:
|
|
115
|
+
optional: true,
|
|
108
116
|
args: ["description"],
|
|
109
117
|
defaults: [""]
|
|
110
118
|
}
|
|
@@ -127,6 +135,7 @@ export class ServerCreateCommand extends BaseFinalCommand
|
|
|
127
135
|
project_id: this.option_values.project_id,
|
|
128
136
|
environment_id: this.option_values.environment_id,
|
|
129
137
|
log_group_id: this.option_values.log_group_id,
|
|
138
|
+
cloud: this.option_values.cloud,
|
|
130
139
|
name: this.option_values.name,
|
|
131
140
|
metric_retention_unit: this.option_values.metric_retention_unit,
|
|
132
141
|
metric_retention_value: this.option_values.metric_retention_value,
|
|
@@ -76,6 +76,14 @@ export class ServerUpdateCommand extends BaseFinalCommand
|
|
|
76
76
|
args: ["log_group_id"],
|
|
77
77
|
defaults: [""]
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
name: "cloud",
|
|
81
|
+
short: "",
|
|
82
|
+
description: "Provides the value of 'cloud' in body",
|
|
83
|
+
optional: false,
|
|
84
|
+
args: ["cloud"],
|
|
85
|
+
defaults: [""]
|
|
86
|
+
},
|
|
79
87
|
{
|
|
80
88
|
name: "name",
|
|
81
89
|
short: "",
|
|
@@ -104,7 +112,7 @@ export class ServerUpdateCommand extends BaseFinalCommand
|
|
|
104
112
|
name: "description",
|
|
105
113
|
short: "",
|
|
106
114
|
description: "Provides the value of 'description' in body",
|
|
107
|
-
optional:
|
|
115
|
+
optional: true,
|
|
108
116
|
args: ["description"],
|
|
109
117
|
defaults: [""]
|
|
110
118
|
}
|
|
@@ -127,6 +135,7 @@ export class ServerUpdateCommand extends BaseFinalCommand
|
|
|
127
135
|
project_id: this.option_values.project_id,
|
|
128
136
|
environment_id: this.option_values.environment_id,
|
|
129
137
|
log_group_id: this.option_values.log_group_id,
|
|
138
|
+
cloud: this.option_values.cloud,
|
|
130
139
|
name: this.option_values.name,
|
|
131
140
|
metric_retention_unit: this.option_values.metric_retention_unit,
|
|
132
141
|
metric_retention_value: this.option_values.metric_retention_value,
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
export enum
|
|
21
|
+
export enum CloudType
|
|
22
22
|
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
AWS = "AWS",
|
|
24
|
+
Azure = "Azure",
|
|
25
|
+
GCP = "GCP",
|
|
26
|
+
Other = "Other",
|
|
26
27
|
}
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
export enum
|
|
21
|
+
export enum KubernetesCloud
|
|
22
22
|
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
AWS = "AWS",
|
|
24
|
+
Azure = "Azure",
|
|
25
|
+
GCP = "GCP",
|
|
26
|
+
Other = "Other",
|
|
26
27
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
export enum ServerCloud
|
|
22
|
+
{
|
|
23
|
+
AWS = "AWS",
|
|
24
|
+
Azure = "Azure",
|
|
25
|
+
GCP = "GCP",
|
|
26
|
+
Other = "Other",
|
|
27
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -361,23 +361,24 @@ export * from "./command/ValueCommand";
|
|
|
361
361
|
export * from "./command/ValueListCommand";
|
|
362
362
|
export * from "./enum/AlertTriggerAggregator";
|
|
363
363
|
export * from "./enum/AlertTriggerOperator";
|
|
364
|
+
export * from "./enum/CloudType";
|
|
364
365
|
export * from "./enum/DatabaseConnectType";
|
|
365
366
|
export * from "./enum/DatabaseType";
|
|
366
367
|
export * from "./enum/InMemoryStoreConnectType";
|
|
367
368
|
export * from "./enum/InMemoryStoreType";
|
|
368
369
|
export * from "./enum/IncidentStatus";
|
|
370
|
+
export * from "./enum/KubernetesCloud";
|
|
369
371
|
export * from "./enum/MessageBrokerConnectType";
|
|
370
372
|
export * from "./enum/MessageBrokerType";
|
|
371
373
|
export * from "./enum/MetricCallerType";
|
|
372
|
-
export * from "./enum/MetricIntervalUnit";
|
|
373
374
|
export * from "./enum/MonitorCallerType";
|
|
374
375
|
export * from "./enum/MonitorDockerContainerConnectionType";
|
|
375
376
|
export * from "./enum/MonitorHTTPBodyEncoding";
|
|
376
|
-
export * from "./enum/MonitorHeartbeatIntervalUnit";
|
|
377
377
|
export * from "./enum/MonitorHeartbeatRetryIntervalUnit";
|
|
378
378
|
export * from "./enum/MonitorKubernetesPodControllerType";
|
|
379
379
|
export * from "./enum/MonitorRequestTimeoutUnit";
|
|
380
380
|
export * from "./enum/MonitorType";
|
|
381
|
+
export * from "./enum/ServerCloud";
|
|
381
382
|
export * from "./enum/ServerMetricRetentionUnit";
|
|
382
383
|
export * from "./meta/AlertCategoryMetaTable";
|
|
383
384
|
export * from "./meta/AlertFieldMetaTable";
|
|
@@ -63,7 +63,7 @@ export class AlertMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, Alert
|
|
|
63
63
|
trigger_aggregator: new BaseMetaColumn(this, "trigger_aggregator", "Trigger Aggregator", "Enum", true),
|
|
64
64
|
trigger_operator: new BaseMetaColumn(this, "trigger_operator", "Trigger Operator", "Enum", true),
|
|
65
65
|
threshold: new BaseMetaColumn(this, "threshold", "Threshold", "String", true),
|
|
66
|
-
description: new BaseMetaColumn(this, "description", "Description", "String",
|
|
66
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
67
67
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
68
68
|
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
69
69
|
};
|
|
@@ -46,8 +46,8 @@ export class CloudMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, Cloud
|
|
|
46
46
|
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
47
47
|
ctl_on_server_id: new BaseMetaColumn(this, "ctl_on_server_id", "Ctl On Server ID", "String", true),
|
|
48
48
|
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
49
|
-
type: new BaseMetaColumn(this, "type", "Type", "
|
|
50
|
-
description: new BaseMetaColumn(this, "description", "Description", "String",
|
|
49
|
+
type: new BaseMetaColumn(this, "type", "Type", "Enum", true),
|
|
50
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
51
51
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
52
52
|
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
53
53
|
};
|
|
@@ -59,7 +59,7 @@ export class DatabaseMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, Da
|
|
|
59
59
|
connect_type: new BaseMetaColumn(this, "connect_type", "Connect Type", "Enum", true),
|
|
60
60
|
connect_server_id: new BaseMetaColumn(this, "connect_server_id", "Connect Server ID", "String", false),
|
|
61
61
|
connect_kubernetes_id: new BaseMetaColumn(this, "connect_kubernetes_id", "Connect Kubernetes ID", "String", false),
|
|
62
|
-
description: new BaseMetaColumn(this, "description", "Description", "String",
|
|
62
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
63
63
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
64
64
|
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
65
65
|
};
|
|
@@ -45,7 +45,7 @@ export class EnvironmentMetaTable extends NSBaseMetaTable<NamirasoftInfraServer,
|
|
|
45
45
|
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
46
46
|
project_id: new BaseMetaColumn(this, "project_id", "Project ID", "String", true),
|
|
47
47
|
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
48
|
-
description: new BaseMetaColumn(this, "description", "Description", "String",
|
|
48
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
49
49
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
50
50
|
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
51
51
|
};
|