namirasoft-infra 1.4.2 → 1.4.3

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 (185) hide show
  1. package/dist/NamirasoftInfraServer.js +1 -1
  2. package/dist/command/AlertCreateCommand.js +1 -1
  3. package/dist/command/AlertCreateCommand.js.map +1 -1
  4. package/dist/command/AlertUpdateCommand.js +1 -1
  5. package/dist/command/AlertUpdateCommand.js.map +1 -1
  6. package/dist/command/CloudCreateCommand.js +1 -1
  7. package/dist/command/CloudCreateCommand.js.map +1 -1
  8. package/dist/command/CloudUpdateCommand.js +1 -1
  9. package/dist/command/CloudUpdateCommand.js.map +1 -1
  10. package/dist/command/DatabaseCreateCommand.js +1 -1
  11. package/dist/command/DatabaseCreateCommand.js.map +1 -1
  12. package/dist/command/DatabaseUpdateCommand.js +1 -1
  13. package/dist/command/DatabaseUpdateCommand.js.map +1 -1
  14. package/dist/command/EnvironmentCreateCommand.js +1 -1
  15. package/dist/command/EnvironmentCreateCommand.js.map +1 -1
  16. package/dist/command/EnvironmentUpdateCommand.js +1 -1
  17. package/dist/command/EnvironmentUpdateCommand.js.map +1 -1
  18. package/dist/command/InMemoryStoreCreateCommand.js +1 -1
  19. package/dist/command/InMemoryStoreCreateCommand.js.map +1 -1
  20. package/dist/command/InMemoryStoreUpdateCommand.js +1 -1
  21. package/dist/command/InMemoryStoreUpdateCommand.js.map +1 -1
  22. package/dist/command/IncidentCreateCommand.js +1 -1
  23. package/dist/command/IncidentCreateCommand.js.map +1 -1
  24. package/dist/command/IncidentUpdateCommand.js +1 -1
  25. package/dist/command/IncidentUpdateCommand.js.map +1 -1
  26. package/dist/command/KubernetesCreateCommand.js +19 -1
  27. package/dist/command/KubernetesCreateCommand.js.map +1 -1
  28. package/dist/command/KubernetesUpdateCommand.js +19 -1
  29. package/dist/command/KubernetesUpdateCommand.js.map +1 -1
  30. package/dist/command/MessageBrokerCreateCommand.js +1 -1
  31. package/dist/command/MessageBrokerCreateCommand.js.map +1 -1
  32. package/dist/command/MessageBrokerUpdateCommand.js +1 -1
  33. package/dist/command/MessageBrokerUpdateCommand.js.map +1 -1
  34. package/dist/command/MetricCreateCommand.js +4 -13
  35. package/dist/command/MetricCreateCommand.js.map +1 -1
  36. package/dist/command/MetricUpdateCommand.js +4 -13
  37. package/dist/command/MetricUpdateCommand.js.map +1 -1
  38. package/dist/command/MonitorCreateCommand.js +5 -14
  39. package/dist/command/MonitorCreateCommand.js.map +1 -1
  40. package/dist/command/MonitorUpdateCommand.js +5 -14
  41. package/dist/command/MonitorUpdateCommand.js.map +1 -1
  42. package/dist/command/ProjectCreateCommand.js +1 -1
  43. package/dist/command/ProjectCreateCommand.js.map +1 -1
  44. package/dist/command/ProjectUpdateCommand.js +1 -1
  45. package/dist/command/ProjectUpdateCommand.js.map +1 -1
  46. package/dist/command/ServerCreateCommand.js +10 -1
  47. package/dist/command/ServerCreateCommand.js.map +1 -1
  48. package/dist/command/ServerUpdateCommand.js +10 -1
  49. package/dist/command/ServerUpdateCommand.js.map +1 -1
  50. package/dist/enum/CloudType.d.ts +6 -0
  51. package/dist/enum/CloudType.js +11 -0
  52. package/dist/enum/CloudType.js.map +1 -0
  53. package/dist/enum/KubernetesCloud.d.ts +6 -0
  54. package/dist/enum/KubernetesCloud.js +11 -0
  55. package/dist/enum/KubernetesCloud.js.map +1 -0
  56. package/dist/enum/ServerCloud.d.ts +6 -0
  57. package/dist/enum/ServerCloud.js +11 -0
  58. package/dist/enum/ServerCloud.js.map +1 -0
  59. package/dist/index.d.ts +3 -2
  60. package/dist/index.js +3 -2
  61. package/dist/index.js.map +1 -1
  62. package/dist/meta/AlertMetaTable.js +1 -1
  63. package/dist/meta/AlertMetaTable.js.map +1 -1
  64. package/dist/meta/CloudMetaTable.js +2 -2
  65. package/dist/meta/CloudMetaTable.js.map +1 -1
  66. package/dist/meta/DatabaseMetaTable.js +1 -1
  67. package/dist/meta/DatabaseMetaTable.js.map +1 -1
  68. package/dist/meta/EnvironmentMetaTable.js +1 -1
  69. package/dist/meta/EnvironmentMetaTable.js.map +1 -1
  70. package/dist/meta/InMemoryStoreMetaTable.js +1 -1
  71. package/dist/meta/InMemoryStoreMetaTable.js.map +1 -1
  72. package/dist/meta/IncidentMetaTable.js +1 -1
  73. package/dist/meta/IncidentMetaTable.js.map +1 -1
  74. package/dist/meta/KubernetesMetaTable.d.ts +2 -0
  75. package/dist/meta/KubernetesMetaTable.js +3 -1
  76. package/dist/meta/KubernetesMetaTable.js.map +1 -1
  77. package/dist/meta/MessageBrokerMetaTable.js +1 -1
  78. package/dist/meta/MessageBrokerMetaTable.js.map +1 -1
  79. package/dist/meta/MetricMetaTable.d.ts +1 -2
  80. package/dist/meta/MetricMetaTable.js +1 -2
  81. package/dist/meta/MetricMetaTable.js.map +1 -1
  82. package/dist/meta/MonitorMetaTable.d.ts +1 -2
  83. package/dist/meta/MonitorMetaTable.js +2 -3
  84. package/dist/meta/MonitorMetaTable.js.map +1 -1
  85. package/dist/meta/ProjectMetaTable.js +1 -1
  86. package/dist/meta/ProjectMetaTable.js.map +1 -1
  87. package/dist/meta/ServerMetaTable.d.ts +1 -0
  88. package/dist/meta/ServerMetaTable.js +2 -1
  89. package/dist/meta/ServerMetaTable.js.map +1 -1
  90. package/dist/row/AlertInputRow.d.ts +1 -1
  91. package/dist/row/AlertRow.d.ts +1 -1
  92. package/dist/row/CloudInputRow.d.ts +3 -2
  93. package/dist/row/CloudRow.d.ts +3 -2
  94. package/dist/row/DatabaseInputRow.d.ts +1 -1
  95. package/dist/row/DatabaseRow.d.ts +1 -1
  96. package/dist/row/EnvironmentInputRow.d.ts +1 -1
  97. package/dist/row/EnvironmentRow.d.ts +1 -1
  98. package/dist/row/InMemoryStoreInputRow.d.ts +1 -1
  99. package/dist/row/InMemoryStoreRow.d.ts +1 -1
  100. package/dist/row/IncidentInputRow.d.ts +1 -1
  101. package/dist/row/IncidentRow.d.ts +1 -1
  102. package/dist/row/KubernetesInputRow.d.ts +4 -1
  103. package/dist/row/KubernetesRow.d.ts +4 -1
  104. package/dist/row/MessageBrokerInputRow.d.ts +1 -1
  105. package/dist/row/MessageBrokerRow.d.ts +1 -1
  106. package/dist/row/MetricInputRow.d.ts +1 -3
  107. package/dist/row/MetricRow.d.ts +1 -3
  108. package/dist/row/MonitorInputRow.d.ts +2 -4
  109. package/dist/row/MonitorRow.d.ts +2 -4
  110. package/dist/row/ProjectInputRow.d.ts +1 -1
  111. package/dist/row/ProjectRow.d.ts +1 -1
  112. package/dist/row/ServerInputRow.d.ts +3 -1
  113. package/dist/row/ServerRow.d.ts +3 -1
  114. package/package.json +1 -1
  115. package/src/NamirasoftInfraServer.ts +1 -1
  116. package/src/command/AlertCreateCommand.ts +1 -1
  117. package/src/command/AlertUpdateCommand.ts +1 -1
  118. package/src/command/CloudCreateCommand.ts +1 -1
  119. package/src/command/CloudUpdateCommand.ts +1 -1
  120. package/src/command/DatabaseCreateCommand.ts +1 -1
  121. package/src/command/DatabaseUpdateCommand.ts +1 -1
  122. package/src/command/EnvironmentCreateCommand.ts +1 -1
  123. package/src/command/EnvironmentUpdateCommand.ts +1 -1
  124. package/src/command/InMemoryStoreCreateCommand.ts +1 -1
  125. package/src/command/InMemoryStoreUpdateCommand.ts +1 -1
  126. package/src/command/IncidentCreateCommand.ts +1 -1
  127. package/src/command/IncidentUpdateCommand.ts +1 -1
  128. package/src/command/KubernetesCreateCommand.ts +19 -1
  129. package/src/command/KubernetesUpdateCommand.ts +19 -1
  130. package/src/command/MessageBrokerCreateCommand.ts +1 -1
  131. package/src/command/MessageBrokerUpdateCommand.ts +1 -1
  132. package/src/command/MetricCreateCommand.ts +4 -13
  133. package/src/command/MetricUpdateCommand.ts +4 -13
  134. package/src/command/MonitorCreateCommand.ts +5 -14
  135. package/src/command/MonitorUpdateCommand.ts +5 -14
  136. package/src/command/ProjectCreateCommand.ts +1 -1
  137. package/src/command/ProjectUpdateCommand.ts +1 -1
  138. package/src/command/ServerCreateCommand.ts +10 -1
  139. package/src/command/ServerUpdateCommand.ts +10 -1
  140. package/src/enum/{MetricIntervalUnit.ts → CloudType.ts} +5 -4
  141. package/src/enum/{MonitorHeartbeatIntervalUnit.ts → KubernetesCloud.ts} +5 -4
  142. package/src/enum/ServerCloud.ts +27 -0
  143. package/src/index.ts +3 -2
  144. package/src/meta/AlertMetaTable.ts +1 -1
  145. package/src/meta/CloudMetaTable.ts +2 -2
  146. package/src/meta/DatabaseMetaTable.ts +1 -1
  147. package/src/meta/EnvironmentMetaTable.ts +1 -1
  148. package/src/meta/InMemoryStoreMetaTable.ts +1 -1
  149. package/src/meta/IncidentMetaTable.ts +1 -1
  150. package/src/meta/KubernetesMetaTable.ts +5 -1
  151. package/src/meta/MessageBrokerMetaTable.ts +1 -1
  152. package/src/meta/MetricMetaTable.ts +2 -4
  153. package/src/meta/MonitorMetaTable.ts +3 -5
  154. package/src/meta/ProjectMetaTable.ts +1 -1
  155. package/src/meta/ServerMetaTable.ts +3 -1
  156. package/src/row/AlertInputRow.ts +1 -1
  157. package/src/row/AlertRow.ts +1 -1
  158. package/src/row/CloudInputRow.ts +4 -2
  159. package/src/row/CloudRow.ts +4 -2
  160. package/src/row/DatabaseInputRow.ts +1 -1
  161. package/src/row/DatabaseRow.ts +1 -1
  162. package/src/row/EnvironmentInputRow.ts +1 -1
  163. package/src/row/EnvironmentRow.ts +1 -1
  164. package/src/row/InMemoryStoreInputRow.ts +1 -1
  165. package/src/row/InMemoryStoreRow.ts +1 -1
  166. package/src/row/IncidentInputRow.ts +1 -1
  167. package/src/row/IncidentRow.ts +1 -1
  168. package/src/row/KubernetesInputRow.ts +5 -1
  169. package/src/row/KubernetesRow.ts +5 -1
  170. package/src/row/MessageBrokerInputRow.ts +1 -1
  171. package/src/row/MessageBrokerRow.ts +1 -1
  172. package/src/row/MetricInputRow.ts +1 -3
  173. package/src/row/MetricRow.ts +1 -3
  174. package/src/row/MonitorInputRow.ts +2 -4
  175. package/src/row/MonitorRow.ts +2 -4
  176. package/src/row/ProjectInputRow.ts +1 -1
  177. package/src/row/ProjectRow.ts +1 -1
  178. package/src/row/ServerInputRow.ts +3 -1
  179. package/src/row/ServerRow.ts +3 -1
  180. package/dist/enum/MetricIntervalUnit.d.ts +0 -5
  181. package/dist/enum/MetricIntervalUnit.js +0 -10
  182. package/dist/enum/MetricIntervalUnit.js.map +0 -1
  183. package/dist/enum/MonitorHeartbeatIntervalUnit.d.ts +0 -5
  184. package/dist/enum/MonitorHeartbeatIntervalUnit.js +0 -10
  185. package/dist/enum/MonitorHeartbeatIntervalUnit.js.map +0 -1
@@ -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
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.2",
11
+ "version": "1.4.3",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/index.js",
@@ -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.2`, token_manager, onError);
132
+ super(base_url, `1.4.3`, 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: false,
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: false,
131
+ optional: true,
132
132
  args: ["description"],
133
133
  defaults: [""]
134
134
  }
@@ -64,7 +64,7 @@ export class CloudCreateCommand extends BaseFinalCommand
64
64
  name: "description",
65
65
  short: "",
66
66
  description: "Provides the value of 'description' in body",
67
- optional: false,
67
+ optional: true,
68
68
  args: ["description"],
69
69
  defaults: [""]
70
70
  }
@@ -64,7 +64,7 @@ export class CloudUpdateCommand extends BaseFinalCommand
64
64
  name: "description",
65
65
  short: "",
66
66
  description: "Provides the value of 'description' in body",
67
- optional: false,
67
+ optional: true,
68
68
  args: ["description"],
69
69
  defaults: [""]
70
70
  }
@@ -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: false,
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: false,
115
+ optional: true,
116
116
  args: ["description"],
117
117
  defaults: [""]
118
118
  }
@@ -56,7 +56,7 @@ export class EnvironmentCreateCommand extends BaseFinalCommand
56
56
  name: "description",
57
57
  short: "",
58
58
  description: "Provides the value of 'description' in body",
59
- optional: false,
59
+ optional: true,
60
60
  args: ["description"],
61
61
  defaults: [""]
62
62
  }
@@ -56,7 +56,7 @@ export class EnvironmentUpdateCommand extends BaseFinalCommand
56
56
  name: "description",
57
57
  short: "",
58
58
  description: "Provides the value of 'description' in body",
59
- optional: false,
59
+ optional: true,
60
60
  args: ["description"],
61
61
  defaults: [""]
62
62
  }
@@ -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: false,
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: false,
115
+ optional: true,
116
116
  args: ["description"],
117
117
  defaults: [""]
118
118
  }
@@ -96,7 +96,7 @@ export class IncidentCreateCommand extends BaseFinalCommand
96
96
  name: "description",
97
97
  short: "",
98
98
  description: "Provides the value of 'description' in body",
99
- optional: false,
99
+ optional: true,
100
100
  args: ["description"],
101
101
  defaults: [""]
102
102
  }
@@ -96,7 +96,7 @@ export class IncidentUpdateCommand extends BaseFinalCommand
96
96
  name: "description",
97
97
  short: "",
98
98
  description: "Provides the value of 'description' in body",
99
- optional: false,
99
+ optional: true,
100
100
  args: ["description"],
101
101
  defaults: [""]
102
102
  }
@@ -76,6 +76,22 @@ export class KubernetesCreateCommand extends BaseFinalCommand
76
76
  args: ["log_group_id"],
77
77
  defaults: [""]
78
78
  },
79
+ {
80
+ name: "kubrenetes_on_server_id",
81
+ short: "",
82
+ description: "Provides the value of 'kubrenetes_on_server_id' in body",
83
+ optional: false,
84
+ args: ["kubrenetes_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: false,
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
+ kubrenetes_on_server_id: this.option_values.kubrenetes_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: "kubrenetes_on_server_id",
81
+ short: "",
82
+ description: "Provides the value of 'kubrenetes_on_server_id' in body",
83
+ optional: false,
84
+ args: ["kubrenetes_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: false,
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
+ kubrenetes_on_server_id: this.option_values.kubrenetes_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: false,
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: false,
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: "interval_value",
96
+ name: "interval_scheduler_id",
97
97
  short: "",
98
- description: "Provides the value of 'interval_value' in body",
98
+ description: "Provides the value of 'interval_scheduler_id' in body",
99
99
  optional: false,
100
- args: ["interval_value"],
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
- interval_value: this.option_values.interval_value,
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: "interval_value",
96
+ name: "interval_scheduler_id",
97
97
  short: "",
98
- description: "Provides the value of 'interval_value' in body",
98
+ description: "Provides the value of 'interval_scheduler_id' in body",
99
99
  optional: false,
100
- args: ["interval_value"],
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
- interval_value: this.option_values.interval_value,
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: "heartbeat_interval_value",
104
+ name: "heartbeat_interval_scheduler_id",
105
105
  short: "",
106
- description: "Provides the value of 'heartbeat_interval_value' in body",
106
+ description: "Provides the value of 'heartbeat_interval_scheduler_id' in body",
107
107
  optional: false,
108
- args: ["heartbeat_interval_value"],
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: false,
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
- heartbeat_interval_value: this.option_values.heartbeat_interval_value,
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: "heartbeat_interval_value",
104
+ name: "heartbeat_interval_scheduler_id",
105
105
  short: "",
106
- description: "Provides the value of 'heartbeat_interval_value' in body",
106
+ description: "Provides the value of 'heartbeat_interval_scheduler_id' in body",
107
107
  optional: false,
108
- args: ["heartbeat_interval_value"],
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: false,
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
- heartbeat_interval_value: this.option_values.heartbeat_interval_value,
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,
@@ -48,7 +48,7 @@ export class ProjectCreateCommand extends BaseFinalCommand
48
48
  name: "description",
49
49
  short: "",
50
50
  description: "Provides the value of 'description' in body",
51
- optional: false,
51
+ optional: true,
52
52
  args: ["description"],
53
53
  defaults: [""]
54
54
  }
@@ -48,7 +48,7 @@ export class ProjectUpdateCommand extends BaseFinalCommand
48
48
  name: "description",
49
49
  short: "",
50
50
  description: "Provides the value of 'description' in body",
51
- optional: false,
51
+ optional: true,
52
52
  args: ["description"],
53
53
  defaults: [""]
54
54
  }
@@ -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: false,
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: false,
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 MetricIntervalUnit
21
+ export enum CloudType
22
22
  {
23
- Second = "Second",
24
- Minute = "Minute",
25
- Hours = "Hours",
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 MonitorHeartbeatIntervalUnit
21
+ export enum KubernetesCloud
22
22
  {
23
- Second = "Second",
24
- Minute = "Minute",
25
- Hours = "Hours",
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", true),
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", "String", true),
50
- description: new BaseMetaColumn(this, "description", "Description", "String", true),
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", true),
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", true),
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
  };