@hpcc-js/comms 3.15.4 → 3.15.6

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 (130) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +50 -50
  3. package/dist/browser/index.js +1 -1
  4. package/dist/browser/index.js.map +1 -1
  5. package/dist/browser/index.umd.cjs +1 -1
  6. package/dist/browser/index.umd.cjs.map +1 -1
  7. package/dist/node/index.cjs +10 -10
  8. package/dist/node/index.cjs.map +4 -4
  9. package/dist/node/index.js +9 -9
  10. package/dist/node/index.js.map +4 -4
  11. package/package.json +7 -7
  12. package/src/__package__.ts +3 -3
  13. package/src/clienttools/eclMeta.ts +506 -506
  14. package/src/clienttools/eclcc.ts +628 -628
  15. package/src/connection.ts +288 -288
  16. package/src/ecl/activity.ts +82 -82
  17. package/src/ecl/dfuWorkunit.ts +363 -363
  18. package/src/ecl/graph.ts +196 -196
  19. package/src/ecl/logicalFile.ts +196 -196
  20. package/src/ecl/machine.ts +63 -63
  21. package/src/ecl/query.ts +265 -265
  22. package/src/ecl/queryGraph.ts +813 -813
  23. package/src/ecl/resource.ts +39 -39
  24. package/src/ecl/result.ts +245 -245
  25. package/src/ecl/scope.ts +188 -188
  26. package/src/ecl/sourceFile.ts +34 -34
  27. package/src/ecl/store.ts +154 -154
  28. package/src/ecl/targetCluster.ts +149 -149
  29. package/src/ecl/timer.ts +42 -42
  30. package/src/ecl/topology.ts +131 -131
  31. package/src/ecl/workunit.ts +1340 -1340
  32. package/src/ecl/xsdParser.ts +267 -267
  33. package/src/espConnection.ts +164 -164
  34. package/src/index.browser.ts +1 -1
  35. package/src/index.common.ts +40 -40
  36. package/src/index.node.ts +48 -48
  37. package/src/pem/trustwave.ts +909 -909
  38. package/src/services/fileSpray.ts +73 -73
  39. package/src/services/wsAccess.ts +8 -8
  40. package/src/services/wsAccount.ts +27 -27
  41. package/src/services/wsCloud.ts +73 -73
  42. package/src/services/wsCodesign.ts +18 -18
  43. package/src/services/wsDFU.ts +34 -34
  44. package/src/services/wsDFUXRef.ts +121 -121
  45. package/src/services/wsDali.ts +8 -8
  46. package/src/services/wsEcl.ts +123 -123
  47. package/src/services/wsElk.ts +8 -8
  48. package/src/services/wsLogaccess.ts +270 -270
  49. package/src/services/wsMachine.ts +89 -89
  50. package/src/services/wsPackageProcess.ts +8 -8
  51. package/src/services/wsResources.ts +8 -8
  52. package/src/services/wsSMC.ts +80 -80
  53. package/src/services/wsSasha.ts +7 -7
  54. package/src/services/wsStore.ts +32 -32
  55. package/src/services/wsTopology.ts +45 -45
  56. package/src/services/wsWorkunits.ts +151 -151
  57. package/src/services/wsdl/FileSpray/v1.23/FileSpray.ts +1008 -1008
  58. package/src/services/wsdl/FileSpray/v1.25/FileSpray.ts +1040 -1040
  59. package/src/services/wsdl/FileSpray/v1.26/FileSpray.ts +929 -929
  60. package/src/services/wsdl/FileSpray/v1.27/FileSpray.ts +930 -930
  61. package/src/services/wsdl/WsCloud/v1/WsCloud.ts +38 -38
  62. package/src/services/wsdl/WsCloud/v1.02/WsCloud.ts +77 -77
  63. package/src/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.ts +224 -224
  64. package/src/services/wsdl/WsDFUXRef/v1.04/WsDFUXRef.ts +228 -227
  65. package/src/services/wsdl/WsDali/v1.04/WsDali.ts +216 -216
  66. package/src/services/wsdl/WsDali/v1.07/WsDali.ts +72 -72
  67. package/src/services/wsdl/WsDfu/v1.62/WsDfu.ts +1455 -1455
  68. package/src/services/wsdl/WsDfu/v1.63/WsDfu.ts +1465 -1465
  69. package/src/services/wsdl/WsDfu/v1.65/WsDfu.ts +1244 -1244
  70. package/src/services/wsdl/WsDfu/v1.66/WsDfu.ts +1267 -1267
  71. package/src/services/wsdl/WsDfu/v1.67/WsDfu.ts +1268 -1268
  72. package/src/services/wsdl/WsDfu/v1.68/WsDfu.ts +1301 -0
  73. package/src/services/wsdl/WsESDLConfig/v1.5/WsESDLConfig.ts +366 -0
  74. package/src/services/wsdl/WsFileIO/v1.01/WsFileIO.ts +104 -104
  75. package/src/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts +519 -519
  76. package/src/services/wsdl/WsPackageProcess/v1.07/WsPackageProcess.ts +500 -500
  77. package/src/services/wsdl/WsPackageProcess/v1.08/WsPackageProcess.ts +503 -0
  78. package/src/services/wsdl/WsResources/v1.01/WsResources.ts +119 -119
  79. package/src/services/wsdl/WsSMC/v1.24/WsSMC.ts +665 -665
  80. package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +591 -591
  81. package/src/services/wsdl/WsSMC/v1.28/WsSMC.ts +645 -645
  82. package/src/services/wsdl/WsSMC/v1.29/WsSMC.ts +660 -660
  83. package/src/services/wsdl/WsSasha/v1.01/WsSasha.ts +18 -18
  84. package/src/services/wsdl/WsTopology/v1.31/WsTopology.ts +856 -856
  85. package/src/services/wsdl/WsTopology/v1.32/WsTopology.ts +786 -786
  86. package/src/services/wsdl/WsTopology/v1.33/WsTopology.ts +835 -835
  87. package/src/services/wsdl/WsWorkunits/v1.88/WsWorkunits.ts +2944 -2944
  88. package/src/services/wsdl/WsWorkunits/v1.94/WsWorkunits.ts +3072 -3072
  89. package/src/services/wsdl/WsWorkunits/v1.95/WsWorkunits.ts +3073 -3073
  90. package/src/services/wsdl/WsWorkunits/v1.97/WsWorkunits.ts +3134 -3134
  91. package/src/services/wsdl/WsWorkunits/v1.98/WsWorkunits.ts +3182 -3182
  92. package/src/services/wsdl/WsWorkunits/v1.99/WsWorkunits.ts +3162 -3162
  93. package/src/services/wsdl/WsWorkunits/v2/WsWorkunits.ts +3153 -3153
  94. package/src/services/wsdl/WsWorkunits/v2.02/WsWorkunits.ts +3162 -3162
  95. package/src/services/wsdl/WsWorkunits/v2.03/WsWorkunits.ts +3164 -3164
  96. package/src/services/wsdl/WsWorkunits/v2.04/WsWorkunits.ts +3171 -3171
  97. package/src/services/wsdl/WsWorkunits/v2.05/WsWorkunits.ts +3177 -0
  98. package/src/services/wsdl/ws_access/v1.16/ws_access.ts +1086 -1086
  99. package/src/services/wsdl/ws_access/v1.17/ws_access.ts +1023 -1023
  100. package/src/services/wsdl/ws_account/v1.05/ws_account.ts +111 -111
  101. package/src/services/wsdl/ws_account/v1.06/ws_account.ts +109 -109
  102. package/src/services/wsdl/ws_account/v1.07/ws_account.ts +114 -114
  103. package/src/services/wsdl/ws_codesign/v1.1/ws_codesign.ts +95 -95
  104. package/src/services/wsdl/ws_elk/v1/ws_elk.ts +47 -47
  105. package/src/services/wsdl/ws_logaccess/v1/ws_logaccess.ts +83 -83
  106. package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +161 -161
  107. package/src/services/wsdl/ws_logaccess/v1.03/ws_logaccess.ts +190 -190
  108. package/src/services/wsdl/ws_logaccess/v1.04/ws_logaccess.ts +215 -215
  109. package/src/services/wsdl/ws_logaccess/v1.05/ws_logaccess.ts +219 -219
  110. package/src/services/wsdl/ws_logaccess/v1.08/ws_logaccess.ts +267 -267
  111. package/src/services/wsdl/ws_machine/v1.17/ws_machine.ts +567 -567
  112. package/src/services/wsdl/ws_machine/v1.18/ws_machine.ts +497 -497
  113. package/src/services/wsdl/ws_machine/v1.19/ws_machine.ts +497 -497
  114. package/src/services/wsdl/wsstore/v1.02/wsstore.ts +239 -239
  115. package/types/services/wsPackageProcess.d.ts +1 -1
  116. package/types/services/wsWorkunits.d.ts +1 -1
  117. package/types/services/wsdl/FileSpray/v1.27/FileSpray.d.ts +506 -506
  118. package/types/services/wsdl/WsCloud/v1.02/WsCloud.d.ts +18 -18
  119. package/types/services/wsdl/WsDFUXRef/v1.04/WsDFUXRef.d.ts +58 -57
  120. package/types/services/wsdl/WsDali/v1.07/WsDali.d.ts +42 -42
  121. package/types/services/wsdl/WsPackageProcess/{v1.07 → v1.08}/WsPackageProcess.d.ts +121 -118
  122. package/types/services/wsdl/WsSasha/v1.01/WsSasha.d.ts +13 -13
  123. package/types/services/wsdl/WsTopology/v1.33/WsTopology.d.ts +360 -360
  124. package/types/services/wsdl/WsWorkunits/v2.05/WsWorkunits.d.ts +2571 -0
  125. package/types/services/wsdl/ws_access/v1.17/ws_access.d.ts +268 -268
  126. package/types/services/wsdl/ws_account/v1.07/ws_account.d.ts +34 -34
  127. package/types/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts +22 -22
  128. package/types/services/wsdl/ws_elk/v1/ws_elk.d.ts +12 -12
  129. package/types/services/wsdl/wsstore/v1.02/wsstore.d.ts +61 -61
  130. package/types/services/wsdl/WsWorkunits/v2.04/WsWorkunits.d.ts +0 -2565
@@ -1,497 +1,497 @@
1
- import { IConnection, IOptions } from "../../../../connection.ts";
2
- import { Service } from "../../../../espConnection.ts";
3
-
4
- export namespace WsMachine {
5
-
6
- export type int = number;
7
- export type long = number;
8
- export type unsignedInt = number;
9
-
10
- export enum ThresholdType {
11
- THRESHOLD_PERCENTAGE = 0,
12
- THRESHOLD_MB = 1
13
- }
14
-
15
- export enum TpMachineType {
16
- ALLNODES = "ALLNODES",
17
- THORMACHINES = "THORMACHINES",
18
- HOLEMACHINES = "HOLEMACHINES",
19
- ROXIEMACHINES = "ROXIEMACHINES",
20
- MACHINES = "MACHINES",
21
- AVAILABLEMACHINES = "AVAILABLEMACHINES",
22
- DROPZONE = "DROPZONE",
23
- STANDBYNNODE = "STANDBYNNODE",
24
- THORSPARENODES = "THORSPARENODES",
25
- HOLESTANDBYNODES = "HOLESTANDBYNODES"
26
- }
27
-
28
- export interface GetComponentStatusRequest {
29
-
30
- }
31
-
32
- export interface Exception {
33
- Code: string;
34
- Audience: string;
35
- Source: string;
36
- Message: string;
37
- }
38
-
39
- export interface Exceptions {
40
- Source: string;
41
- Exception: Exception[];
42
- }
43
-
44
- export interface StatusReport {
45
- StatusID: int;
46
- Status: string;
47
- StatusDetails: string;
48
- Reporter: string;
49
- TimeReported: long;
50
- TimeReportedStr: string;
51
- TimeCached: string;
52
- URL: string;
53
- }
54
-
55
- export interface StatusReports {
56
- StatusReport: StatusReport[];
57
- }
58
-
59
- export interface ComponentStatus {
60
- ComponentTypeID: int;
61
- ComponentType: string;
62
- EndPoint: string;
63
- StatusID: int;
64
- Status: string;
65
- TimeReported: long;
66
- TimeReportedStr: string;
67
- Reporter: string;
68
- StatusReports: StatusReports;
69
- }
70
-
71
- export interface ComponentStatusList {
72
- ComponentStatus: ComponentStatus[];
73
- }
74
-
75
- export interface GetComponentStatusResponse {
76
- Exceptions: Exceptions;
77
- StatusCode: int;
78
- Status: string;
79
- ComponentType: string;
80
- EndPoint: string;
81
- ComponentStatusID: int;
82
- ComponentStatus: string;
83
- TimeReported: long;
84
- TimeReportedStr: string;
85
- Reporter: string;
86
- StatusReport: StatusReport;
87
- ComponentStatusList: ComponentStatusList;
88
- }
89
-
90
- export interface Component {
91
- Type: string;
92
- Name: string;
93
- }
94
-
95
- export interface Components {
96
- Component: Component[];
97
- }
98
-
99
- export interface GetComponentUsageRequest {
100
- Components?: Components;
101
- BypassCachedResult?: boolean;
102
- }
103
-
104
- export interface DiskUsage {
105
- Name: string;
106
- Path: string;
107
- Description: string;
108
- InUse: long;
109
- Available: long;
110
- PercentAvailable: int;
111
- Exception: string;
112
- }
113
-
114
- export interface DiskUsages {
115
- DiskUsage: DiskUsage[];
116
- }
117
-
118
- export interface MachineUsage {
119
- Name: string;
120
- NetAddress: string;
121
- Description: string;
122
- Exception: string;
123
- DiskUsages: DiskUsages;
124
- }
125
-
126
- export interface MachineUsages {
127
- MachineUsage: MachineUsage[];
128
- }
129
-
130
- export interface ComponentUsage {
131
- Type: string;
132
- Name: string;
133
- Description: string;
134
- Exception: string;
135
- MachineUsages: MachineUsages;
136
- }
137
-
138
- export interface ComponentUsages {
139
- ComponentUsage: ComponentUsage[];
140
- }
141
-
142
- export interface GetComponentUsageResponse {
143
- Exceptions: Exceptions;
144
- ComponentUsages: ComponentUsages;
145
- UsageTime: string;
146
- }
147
-
148
- export interface Addresses {
149
- Item: string[];
150
- }
151
-
152
- export interface GetMachineInfoRequest {
153
- Addresses?: Addresses;
154
- SortBy?: string;
155
- ClusterType?: TpMachineType;
156
- Cluster?: string;
157
- OldIP?: string;
158
- Path?: string;
159
- AddProcessesToFilter?: string;
160
- ApplyProcessFilter?: boolean;
161
- GetProcessorInfo?: boolean;
162
- GetStorageInfo?: boolean;
163
- LocalFileSystemsOnly?: boolean;
164
- GetSoftwareInfo?: boolean;
165
- MemThreshold?: int;
166
- DiskThreshold?: int;
167
- CpuThreshold?: int;
168
- AutoRefresh?: int;
169
- MemThresholdType?: ThresholdType;
170
- DiskThresholdType?: ThresholdType;
171
- UserName?: string;
172
- Password?: string;
173
- SecurityString?: string;
174
- }
175
-
176
- export interface RequestInfo {
177
- Addresses: Addresses;
178
- SortBy: string;
179
- ClusterType: TpMachineType;
180
- Cluster: string;
181
- OldIP: string;
182
- Path: string;
183
- AddProcessesToFilter: string;
184
- ApplyProcessFilter: boolean;
185
- GetProcessorInfo: boolean;
186
- GetStorageInfo: boolean;
187
- LocalFileSystemsOnly: boolean;
188
- GetSoftwareInfo: boolean;
189
- MemThreshold: int;
190
- DiskThreshold: int;
191
- CpuThreshold: int;
192
- AutoRefresh: int;
193
- MemThresholdType: ThresholdType;
194
- DiskThresholdType: ThresholdType;
195
- SecurityString: string;
196
- UserName: string;
197
- Password: string;
198
- EnableSNMP: boolean;
199
- }
200
-
201
- export interface Columns {
202
- Item: string[];
203
- }
204
-
205
- export interface ProcessorInfo {
206
- Type: string;
207
- Load: int;
208
- }
209
-
210
- export interface Processors {
211
- ProcessorInfo: ProcessorInfo[];
212
- }
213
-
214
- export interface StorageInfo {
215
- Description: string;
216
- Type: string;
217
- Available: long;
218
- PercentAvail: int;
219
- Total: long;
220
- Failures: int;
221
- }
222
-
223
- export interface Storage {
224
- StorageInfo: StorageInfo[];
225
- }
226
-
227
- export interface SWRunInfo {
228
- Name: string;
229
- Instances: int;
230
- State: int;
231
- }
232
-
233
- export interface Running {
234
- SWRunInfo: SWRunInfo[];
235
- }
236
-
237
- export interface PhysicalMemory {
238
- Description: string;
239
- Type: string;
240
- Available: long;
241
- PercentAvail: int;
242
- Total: long;
243
- Failures: int;
244
- }
245
-
246
- export interface VirtualMemory {
247
- Description: string;
248
- Type: string;
249
- Available: long;
250
- PercentAvail: int;
251
- Total: long;
252
- Failures: int;
253
- }
254
-
255
- export interface ComponentInfo {
256
- Condition: int;
257
- State: int;
258
- UpTime: string;
259
- }
260
-
261
- export interface MachineInfoEx {
262
- Address: string;
263
- ConfigAddress: string;
264
- Name: string;
265
- ProcessType: string;
266
- DisplayType: string;
267
- Description: string;
268
- AgentVersion: string;
269
- Contact: string;
270
- Location: string;
271
- UpTime: string;
272
- ComponentName: string;
273
- ComponentPath: string;
274
- RoxieState: string;
275
- RoxieStateDetails: string;
276
- OS: int;
277
- ProcessNumber: int;
278
- Channels: unsignedInt;
279
- Processors: Processors;
280
- Storage: Storage;
281
- Running: Running;
282
- PhysicalMemory: PhysicalMemory;
283
- VirtualMemory: VirtualMemory;
284
- ComponentInfo: ComponentInfo;
285
- Exception: string;
286
- }
287
-
288
- export interface Machines {
289
- MachineInfoEx: MachineInfoEx[];
290
- }
291
-
292
- export interface GetMachineInfoResponse {
293
- Exceptions: Exceptions;
294
- RequestInfo: RequestInfo;
295
- Columns: Columns;
296
- Machines: Machines;
297
- TimeStamp: string;
298
- UserName: string;
299
- Password: string;
300
- AcceptLanguage: string;
301
- }
302
-
303
- export interface GetMachineInfoRequestEx {
304
- Addresses: Addresses;
305
- ClusterType: TpMachineType;
306
- }
307
-
308
- export interface GetMachineInfoResponseEx {
309
- Exceptions: Exceptions;
310
- AcceptLanguage: string;
311
- Machines: Machines;
312
- }
313
-
314
- export interface ShowColumns {
315
- Item: string[];
316
- }
317
-
318
- export interface MetricsRequest {
319
- SecurityString?: string;
320
- Addresses?: Addresses;
321
- ShowColumns?: ShowColumns;
322
- AutoRefresh?: int;
323
- SelectAllChecked?: boolean;
324
- Cluster?: string;
325
- AutoUpdate?: boolean;
326
- }
327
-
328
- export interface MetricsResponse {
329
- Exceptions: Exceptions;
330
- FieldInformation: string;
331
- Metrics: string;
332
- AutoRefresh: int;
333
- Cluster: string;
334
- SelectAllChecked: boolean;
335
- AutoUpdate: boolean;
336
- AcceptLanguage: string;
337
- }
338
-
339
- export interface NodeGroups {
340
- Item: string[];
341
- }
342
-
343
- export interface GetNodeGroupUsageRequest {
344
- NodeGroups?: NodeGroups;
345
- BypassCachedResult?: boolean;
346
- }
347
-
348
- export interface NodeGroupUsage {
349
- Name: string;
350
- Description: string;
351
- Exception: string;
352
- ComponentUsages: ComponentUsages;
353
- }
354
-
355
- export interface NodeGroupUsages {
356
- NodeGroupUsage: NodeGroupUsage[];
357
- }
358
-
359
- export interface GetNodeGroupUsageResponse {
360
- Exceptions: Exceptions;
361
- NodeGroupUsages: NodeGroupUsages;
362
- UsageTime: string;
363
- }
364
-
365
- export interface TargetClusters {
366
- Item: string[];
367
- }
368
-
369
- export interface GetTargetClusterInfoRequest {
370
- TargetClusters?: TargetClusters;
371
- AddProcessesToFilter?: string;
372
- ApplyProcessFilter?: boolean;
373
- GetProcessorInfo?: boolean;
374
- GetStorageInfo?: boolean;
375
- LocalFileSystemsOnly?: boolean;
376
- GetSoftwareInfo?: boolean;
377
- MemThreshold?: int;
378
- DiskThreshold?: int;
379
- CpuThreshold?: int;
380
- AutoRefresh?: int;
381
- MemThresholdType?: ThresholdType;
382
- DiskThresholdType?: ThresholdType;
383
- }
384
-
385
- export interface Processes {
386
- MachineInfoEx: MachineInfoEx[];
387
- }
388
-
389
- export interface TargetClusterInfo {
390
- Name: string;
391
- Type: string;
392
- Processes: Processes;
393
- }
394
-
395
- export interface TargetClusterInfoList {
396
- TargetClusterInfo: TargetClusterInfo[];
397
- }
398
-
399
- export interface GetTargetClusterInfoResponse {
400
- Exceptions: Exceptions;
401
- Columns: Columns;
402
- RequestInfo: RequestInfo;
403
- TargetClusterInfoList: TargetClusterInfoList;
404
- TimeStamp: string;
405
- AcceptLanguage: string;
406
- }
407
-
408
- export interface GetTargetClusterUsageRequest {
409
- TargetClusters?: TargetClusters;
410
- BypassCachedResult?: boolean;
411
- }
412
-
413
- export interface TargetClusterUsage {
414
- Name: string;
415
- Description: string;
416
- Exception: string;
417
- ComponentUsages: ComponentUsages;
418
- }
419
-
420
- export interface TargetClusterUsages {
421
- TargetClusterUsage: TargetClusterUsage[];
422
- }
423
-
424
- export interface GetTargetClusterUsageResponse {
425
- Exceptions: Exceptions;
426
- TargetClusterUsages: TargetClusterUsages;
427
- UsageTime: string;
428
- }
429
-
430
- export interface ws_machinePingRequest {
431
-
432
- }
433
-
434
- export interface ws_machinePingResponse {
435
-
436
- }
437
-
438
- export interface UpdateComponentStatusRequest {
439
- Reporter?: string;
440
- ComponentStatusList?: ComponentStatusList;
441
- }
442
-
443
- export interface UpdateComponentStatusResponse {
444
- Exceptions: Exceptions;
445
- StatusCode: int;
446
- Status: string;
447
- }
448
-
449
- }
450
-
451
- export class MachineServiceBase extends Service {
452
-
453
- constructor(optsConnection: IOptions | IConnection) {
454
- super(optsConnection, "ws_machine", "1.18");
455
- }
456
-
457
- GetComponentStatus(request: Partial<WsMachine.GetComponentStatusRequest>): Promise<WsMachine.GetComponentStatusResponse> {
458
- return this._connection.send("GetComponentStatus", request, "json", false, undefined, "GetComponentStatusResponse");
459
- }
460
-
461
- GetComponentUsage(request: Partial<WsMachine.GetComponentUsageRequest>): Promise<WsMachine.GetComponentUsageResponse> {
462
- return this._connection.send("GetComponentUsage", request, "json", false, undefined, "GetComponentUsageResponse");
463
- }
464
-
465
- GetMachineInfo(request: Partial<WsMachine.GetMachineInfoRequest>): Promise<WsMachine.GetMachineInfoResponse> {
466
- return this._connection.send("GetMachineInfo", request, "json", false, undefined, "GetMachineInfoResponse");
467
- }
468
-
469
- GetMachineInfoEx(request: Partial<WsMachine.GetMachineInfoRequestEx>): Promise<WsMachine.GetMachineInfoResponseEx> {
470
- return this._connection.send("GetMachineInfoEx", request, "json", false, undefined, "GetMachineInfoResponseEx");
471
- }
472
-
473
- GetMetrics(request: Partial<WsMachine.MetricsRequest>): Promise<WsMachine.MetricsResponse> {
474
- return this._connection.send("GetMetrics", request, "json", false, undefined, "MetricsResponse");
475
- }
476
-
477
- GetNodeGroupUsage(request: Partial<WsMachine.GetNodeGroupUsageRequest>): Promise<WsMachine.GetNodeGroupUsageResponse> {
478
- return this._connection.send("GetNodeGroupUsage", request, "json", false, undefined, "GetNodeGroupUsageResponse");
479
- }
480
-
481
- GetTargetClusterInfo(request: Partial<WsMachine.GetTargetClusterInfoRequest>): Promise<WsMachine.GetTargetClusterInfoResponse> {
482
- return this._connection.send("GetTargetClusterInfo", request, "json", false, undefined, "GetTargetClusterInfoResponse");
483
- }
484
-
485
- GetTargetClusterUsage(request: Partial<WsMachine.GetTargetClusterUsageRequest>): Promise<WsMachine.GetTargetClusterUsageResponse> {
486
- return this._connection.send("GetTargetClusterUsage", request, "json", false, undefined, "GetTargetClusterUsageResponse");
487
- }
488
-
489
- Ping(request: Partial<WsMachine.ws_machinePingRequest>): Promise<WsMachine.ws_machinePingResponse> {
490
- return this._connection.send("Ping", request, "json", false, undefined, "ws_machinePingResponse");
491
- }
492
-
493
- UpdateComponentStatus(request: Partial<WsMachine.UpdateComponentStatusRequest>): Promise<WsMachine.UpdateComponentStatusResponse> {
494
- return this._connection.send("UpdateComponentStatus", request, "json", false, undefined, "UpdateComponentStatusResponse");
495
- }
496
-
497
- }
1
+ import { IConnection, IOptions } from "../../../../connection.ts";
2
+ import { Service } from "../../../../espConnection.ts";
3
+
4
+ export namespace WsMachine {
5
+
6
+ export type int = number;
7
+ export type long = number;
8
+ export type unsignedInt = number;
9
+
10
+ export enum ThresholdType {
11
+ THRESHOLD_PERCENTAGE = 0,
12
+ THRESHOLD_MB = 1
13
+ }
14
+
15
+ export enum TpMachineType {
16
+ ALLNODES = "ALLNODES",
17
+ THORMACHINES = "THORMACHINES",
18
+ HOLEMACHINES = "HOLEMACHINES",
19
+ ROXIEMACHINES = "ROXIEMACHINES",
20
+ MACHINES = "MACHINES",
21
+ AVAILABLEMACHINES = "AVAILABLEMACHINES",
22
+ DROPZONE = "DROPZONE",
23
+ STANDBYNNODE = "STANDBYNNODE",
24
+ THORSPARENODES = "THORSPARENODES",
25
+ HOLESTANDBYNODES = "HOLESTANDBYNODES"
26
+ }
27
+
28
+ export interface GetComponentStatusRequest {
29
+
30
+ }
31
+
32
+ export interface Exception {
33
+ Code: string;
34
+ Audience: string;
35
+ Source: string;
36
+ Message: string;
37
+ }
38
+
39
+ export interface Exceptions {
40
+ Source: string;
41
+ Exception: Exception[];
42
+ }
43
+
44
+ export interface StatusReport {
45
+ StatusID: int;
46
+ Status: string;
47
+ StatusDetails: string;
48
+ Reporter: string;
49
+ TimeReported: long;
50
+ TimeReportedStr: string;
51
+ TimeCached: string;
52
+ URL: string;
53
+ }
54
+
55
+ export interface StatusReports {
56
+ StatusReport: StatusReport[];
57
+ }
58
+
59
+ export interface ComponentStatus {
60
+ ComponentTypeID: int;
61
+ ComponentType: string;
62
+ EndPoint: string;
63
+ StatusID: int;
64
+ Status: string;
65
+ TimeReported: long;
66
+ TimeReportedStr: string;
67
+ Reporter: string;
68
+ StatusReports: StatusReports;
69
+ }
70
+
71
+ export interface ComponentStatusList {
72
+ ComponentStatus: ComponentStatus[];
73
+ }
74
+
75
+ export interface GetComponentStatusResponse {
76
+ Exceptions: Exceptions;
77
+ StatusCode: int;
78
+ Status: string;
79
+ ComponentType: string;
80
+ EndPoint: string;
81
+ ComponentStatusID: int;
82
+ ComponentStatus: string;
83
+ TimeReported: long;
84
+ TimeReportedStr: string;
85
+ Reporter: string;
86
+ StatusReport: StatusReport;
87
+ ComponentStatusList: ComponentStatusList;
88
+ }
89
+
90
+ export interface Component {
91
+ Type: string;
92
+ Name: string;
93
+ }
94
+
95
+ export interface Components {
96
+ Component: Component[];
97
+ }
98
+
99
+ export interface GetComponentUsageRequest {
100
+ Components?: Components;
101
+ BypassCachedResult?: boolean;
102
+ }
103
+
104
+ export interface DiskUsage {
105
+ Name: string;
106
+ Path: string;
107
+ Description: string;
108
+ InUse: long;
109
+ Available: long;
110
+ PercentAvailable: int;
111
+ Exception: string;
112
+ }
113
+
114
+ export interface DiskUsages {
115
+ DiskUsage: DiskUsage[];
116
+ }
117
+
118
+ export interface MachineUsage {
119
+ Name: string;
120
+ NetAddress: string;
121
+ Description: string;
122
+ Exception: string;
123
+ DiskUsages: DiskUsages;
124
+ }
125
+
126
+ export interface MachineUsages {
127
+ MachineUsage: MachineUsage[];
128
+ }
129
+
130
+ export interface ComponentUsage {
131
+ Type: string;
132
+ Name: string;
133
+ Description: string;
134
+ Exception: string;
135
+ MachineUsages: MachineUsages;
136
+ }
137
+
138
+ export interface ComponentUsages {
139
+ ComponentUsage: ComponentUsage[];
140
+ }
141
+
142
+ export interface GetComponentUsageResponse {
143
+ Exceptions: Exceptions;
144
+ ComponentUsages: ComponentUsages;
145
+ UsageTime: string;
146
+ }
147
+
148
+ export interface Addresses {
149
+ Item: string[];
150
+ }
151
+
152
+ export interface GetMachineInfoRequest {
153
+ Addresses?: Addresses;
154
+ SortBy?: string;
155
+ ClusterType?: TpMachineType;
156
+ Cluster?: string;
157
+ OldIP?: string;
158
+ Path?: string;
159
+ AddProcessesToFilter?: string;
160
+ ApplyProcessFilter?: boolean;
161
+ GetProcessorInfo?: boolean;
162
+ GetStorageInfo?: boolean;
163
+ LocalFileSystemsOnly?: boolean;
164
+ GetSoftwareInfo?: boolean;
165
+ MemThreshold?: int;
166
+ DiskThreshold?: int;
167
+ CpuThreshold?: int;
168
+ AutoRefresh?: int;
169
+ MemThresholdType?: ThresholdType;
170
+ DiskThresholdType?: ThresholdType;
171
+ UserName?: string;
172
+ Password?: string;
173
+ SecurityString?: string;
174
+ }
175
+
176
+ export interface RequestInfo {
177
+ Addresses: Addresses;
178
+ SortBy: string;
179
+ ClusterType: TpMachineType;
180
+ Cluster: string;
181
+ OldIP: string;
182
+ Path: string;
183
+ AddProcessesToFilter: string;
184
+ ApplyProcessFilter: boolean;
185
+ GetProcessorInfo: boolean;
186
+ GetStorageInfo: boolean;
187
+ LocalFileSystemsOnly: boolean;
188
+ GetSoftwareInfo: boolean;
189
+ MemThreshold: int;
190
+ DiskThreshold: int;
191
+ CpuThreshold: int;
192
+ AutoRefresh: int;
193
+ MemThresholdType: ThresholdType;
194
+ DiskThresholdType: ThresholdType;
195
+ SecurityString: string;
196
+ UserName: string;
197
+ Password: string;
198
+ EnableSNMP: boolean;
199
+ }
200
+
201
+ export interface Columns {
202
+ Item: string[];
203
+ }
204
+
205
+ export interface ProcessorInfo {
206
+ Type: string;
207
+ Load: int;
208
+ }
209
+
210
+ export interface Processors {
211
+ ProcessorInfo: ProcessorInfo[];
212
+ }
213
+
214
+ export interface StorageInfo {
215
+ Description: string;
216
+ Type: string;
217
+ Available: long;
218
+ PercentAvail: int;
219
+ Total: long;
220
+ Failures: int;
221
+ }
222
+
223
+ export interface Storage {
224
+ StorageInfo: StorageInfo[];
225
+ }
226
+
227
+ export interface SWRunInfo {
228
+ Name: string;
229
+ Instances: int;
230
+ State: int;
231
+ }
232
+
233
+ export interface Running {
234
+ SWRunInfo: SWRunInfo[];
235
+ }
236
+
237
+ export interface PhysicalMemory {
238
+ Description: string;
239
+ Type: string;
240
+ Available: long;
241
+ PercentAvail: int;
242
+ Total: long;
243
+ Failures: int;
244
+ }
245
+
246
+ export interface VirtualMemory {
247
+ Description: string;
248
+ Type: string;
249
+ Available: long;
250
+ PercentAvail: int;
251
+ Total: long;
252
+ Failures: int;
253
+ }
254
+
255
+ export interface ComponentInfo {
256
+ Condition: int;
257
+ State: int;
258
+ UpTime: string;
259
+ }
260
+
261
+ export interface MachineInfoEx {
262
+ Address: string;
263
+ ConfigAddress: string;
264
+ Name: string;
265
+ ProcessType: string;
266
+ DisplayType: string;
267
+ Description: string;
268
+ AgentVersion: string;
269
+ Contact: string;
270
+ Location: string;
271
+ UpTime: string;
272
+ ComponentName: string;
273
+ ComponentPath: string;
274
+ RoxieState: string;
275
+ RoxieStateDetails: string;
276
+ OS: int;
277
+ ProcessNumber: int;
278
+ Channels: unsignedInt;
279
+ Processors: Processors;
280
+ Storage: Storage;
281
+ Running: Running;
282
+ PhysicalMemory: PhysicalMemory;
283
+ VirtualMemory: VirtualMemory;
284
+ ComponentInfo: ComponentInfo;
285
+ Exception: string;
286
+ }
287
+
288
+ export interface Machines {
289
+ MachineInfoEx: MachineInfoEx[];
290
+ }
291
+
292
+ export interface GetMachineInfoResponse {
293
+ Exceptions: Exceptions;
294
+ RequestInfo: RequestInfo;
295
+ Columns: Columns;
296
+ Machines: Machines;
297
+ TimeStamp: string;
298
+ UserName: string;
299
+ Password: string;
300
+ AcceptLanguage: string;
301
+ }
302
+
303
+ export interface GetMachineInfoRequestEx {
304
+ Addresses: Addresses;
305
+ ClusterType: TpMachineType;
306
+ }
307
+
308
+ export interface GetMachineInfoResponseEx {
309
+ Exceptions: Exceptions;
310
+ AcceptLanguage: string;
311
+ Machines: Machines;
312
+ }
313
+
314
+ export interface ShowColumns {
315
+ Item: string[];
316
+ }
317
+
318
+ export interface MetricsRequest {
319
+ SecurityString?: string;
320
+ Addresses?: Addresses;
321
+ ShowColumns?: ShowColumns;
322
+ AutoRefresh?: int;
323
+ SelectAllChecked?: boolean;
324
+ Cluster?: string;
325
+ AutoUpdate?: boolean;
326
+ }
327
+
328
+ export interface MetricsResponse {
329
+ Exceptions: Exceptions;
330
+ FieldInformation: string;
331
+ Metrics: string;
332
+ AutoRefresh: int;
333
+ Cluster: string;
334
+ SelectAllChecked: boolean;
335
+ AutoUpdate: boolean;
336
+ AcceptLanguage: string;
337
+ }
338
+
339
+ export interface NodeGroups {
340
+ Item: string[];
341
+ }
342
+
343
+ export interface GetNodeGroupUsageRequest {
344
+ NodeGroups?: NodeGroups;
345
+ BypassCachedResult?: boolean;
346
+ }
347
+
348
+ export interface NodeGroupUsage {
349
+ Name: string;
350
+ Description: string;
351
+ Exception: string;
352
+ ComponentUsages: ComponentUsages;
353
+ }
354
+
355
+ export interface NodeGroupUsages {
356
+ NodeGroupUsage: NodeGroupUsage[];
357
+ }
358
+
359
+ export interface GetNodeGroupUsageResponse {
360
+ Exceptions: Exceptions;
361
+ NodeGroupUsages: NodeGroupUsages;
362
+ UsageTime: string;
363
+ }
364
+
365
+ export interface TargetClusters {
366
+ Item: string[];
367
+ }
368
+
369
+ export interface GetTargetClusterInfoRequest {
370
+ TargetClusters?: TargetClusters;
371
+ AddProcessesToFilter?: string;
372
+ ApplyProcessFilter?: boolean;
373
+ GetProcessorInfo?: boolean;
374
+ GetStorageInfo?: boolean;
375
+ LocalFileSystemsOnly?: boolean;
376
+ GetSoftwareInfo?: boolean;
377
+ MemThreshold?: int;
378
+ DiskThreshold?: int;
379
+ CpuThreshold?: int;
380
+ AutoRefresh?: int;
381
+ MemThresholdType?: ThresholdType;
382
+ DiskThresholdType?: ThresholdType;
383
+ }
384
+
385
+ export interface Processes {
386
+ MachineInfoEx: MachineInfoEx[];
387
+ }
388
+
389
+ export interface TargetClusterInfo {
390
+ Name: string;
391
+ Type: string;
392
+ Processes: Processes;
393
+ }
394
+
395
+ export interface TargetClusterInfoList {
396
+ TargetClusterInfo: TargetClusterInfo[];
397
+ }
398
+
399
+ export interface GetTargetClusterInfoResponse {
400
+ Exceptions: Exceptions;
401
+ Columns: Columns;
402
+ RequestInfo: RequestInfo;
403
+ TargetClusterInfoList: TargetClusterInfoList;
404
+ TimeStamp: string;
405
+ AcceptLanguage: string;
406
+ }
407
+
408
+ export interface GetTargetClusterUsageRequest {
409
+ TargetClusters?: TargetClusters;
410
+ BypassCachedResult?: boolean;
411
+ }
412
+
413
+ export interface TargetClusterUsage {
414
+ Name: string;
415
+ Description: string;
416
+ Exception: string;
417
+ ComponentUsages: ComponentUsages;
418
+ }
419
+
420
+ export interface TargetClusterUsages {
421
+ TargetClusterUsage: TargetClusterUsage[];
422
+ }
423
+
424
+ export interface GetTargetClusterUsageResponse {
425
+ Exceptions: Exceptions;
426
+ TargetClusterUsages: TargetClusterUsages;
427
+ UsageTime: string;
428
+ }
429
+
430
+ export interface ws_machinePingRequest {
431
+
432
+ }
433
+
434
+ export interface ws_machinePingResponse {
435
+
436
+ }
437
+
438
+ export interface UpdateComponentStatusRequest {
439
+ Reporter?: string;
440
+ ComponentStatusList?: ComponentStatusList;
441
+ }
442
+
443
+ export interface UpdateComponentStatusResponse {
444
+ Exceptions: Exceptions;
445
+ StatusCode: int;
446
+ Status: string;
447
+ }
448
+
449
+ }
450
+
451
+ export class MachineServiceBase extends Service {
452
+
453
+ constructor(optsConnection: IOptions | IConnection) {
454
+ super(optsConnection, "ws_machine", "1.18");
455
+ }
456
+
457
+ GetComponentStatus(request: Partial<WsMachine.GetComponentStatusRequest>): Promise<WsMachine.GetComponentStatusResponse> {
458
+ return this._connection.send("GetComponentStatus", request, "json", false, undefined, "GetComponentStatusResponse");
459
+ }
460
+
461
+ GetComponentUsage(request: Partial<WsMachine.GetComponentUsageRequest>): Promise<WsMachine.GetComponentUsageResponse> {
462
+ return this._connection.send("GetComponentUsage", request, "json", false, undefined, "GetComponentUsageResponse");
463
+ }
464
+
465
+ GetMachineInfo(request: Partial<WsMachine.GetMachineInfoRequest>): Promise<WsMachine.GetMachineInfoResponse> {
466
+ return this._connection.send("GetMachineInfo", request, "json", false, undefined, "GetMachineInfoResponse");
467
+ }
468
+
469
+ GetMachineInfoEx(request: Partial<WsMachine.GetMachineInfoRequestEx>): Promise<WsMachine.GetMachineInfoResponseEx> {
470
+ return this._connection.send("GetMachineInfoEx", request, "json", false, undefined, "GetMachineInfoResponseEx");
471
+ }
472
+
473
+ GetMetrics(request: Partial<WsMachine.MetricsRequest>): Promise<WsMachine.MetricsResponse> {
474
+ return this._connection.send("GetMetrics", request, "json", false, undefined, "MetricsResponse");
475
+ }
476
+
477
+ GetNodeGroupUsage(request: Partial<WsMachine.GetNodeGroupUsageRequest>): Promise<WsMachine.GetNodeGroupUsageResponse> {
478
+ return this._connection.send("GetNodeGroupUsage", request, "json", false, undefined, "GetNodeGroupUsageResponse");
479
+ }
480
+
481
+ GetTargetClusterInfo(request: Partial<WsMachine.GetTargetClusterInfoRequest>): Promise<WsMachine.GetTargetClusterInfoResponse> {
482
+ return this._connection.send("GetTargetClusterInfo", request, "json", false, undefined, "GetTargetClusterInfoResponse");
483
+ }
484
+
485
+ GetTargetClusterUsage(request: Partial<WsMachine.GetTargetClusterUsageRequest>): Promise<WsMachine.GetTargetClusterUsageResponse> {
486
+ return this._connection.send("GetTargetClusterUsage", request, "json", false, undefined, "GetTargetClusterUsageResponse");
487
+ }
488
+
489
+ Ping(request: Partial<WsMachine.ws_machinePingRequest>): Promise<WsMachine.ws_machinePingResponse> {
490
+ return this._connection.send("Ping", request, "json", false, undefined, "ws_machinePingResponse");
491
+ }
492
+
493
+ UpdateComponentStatus(request: Partial<WsMachine.UpdateComponentStatusRequest>): Promise<WsMachine.UpdateComponentStatusResponse> {
494
+ return this._connection.send("UpdateComponentStatus", request, "json", false, undefined, "UpdateComponentStatusResponse");
495
+ }
496
+
497
+ }