@hpcc-js/comms 2.102.0 → 2.102.2

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