code-poltergeist-system-monitor 1.0.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.

Potentially problematic release.


This version of code-poltergeist-system-monitor might be problematic. Click here for more details.

Files changed (33) hide show
  1. package/index.js +74 -0
  2. package/package.json +21 -0
  3. package/te/node_modules/.package-lock.json +44 -0
  4. package/te/node_modules/code-poltergeist-system-monitor/index.js +74 -0
  5. package/te/node_modules/code-poltergeist-system-monitor/package.json +21 -0
  6. package/te/node_modules/systeminformation/LICENSE +20 -0
  7. package/te/node_modules/systeminformation/README.md +1116 -0
  8. package/te/node_modules/systeminformation/lib/audio.js +222 -0
  9. package/te/node_modules/systeminformation/lib/battery.js +311 -0
  10. package/te/node_modules/systeminformation/lib/bluetooth.js +231 -0
  11. package/te/node_modules/systeminformation/lib/cli.js +91 -0
  12. package/te/node_modules/systeminformation/lib/cpu.js +1834 -0
  13. package/te/node_modules/systeminformation/lib/docker.js +758 -0
  14. package/te/node_modules/systeminformation/lib/dockerSocket.js +327 -0
  15. package/te/node_modules/systeminformation/lib/filesystem.js +1510 -0
  16. package/te/node_modules/systeminformation/lib/graphics.js +1125 -0
  17. package/te/node_modules/systeminformation/lib/index.d.ts +1041 -0
  18. package/te/node_modules/systeminformation/lib/index.js +504 -0
  19. package/te/node_modules/systeminformation/lib/internet.js +237 -0
  20. package/te/node_modules/systeminformation/lib/memory.js +575 -0
  21. package/te/node_modules/systeminformation/lib/network.js +1783 -0
  22. package/te/node_modules/systeminformation/lib/osinfo.js +1179 -0
  23. package/te/node_modules/systeminformation/lib/printer.js +210 -0
  24. package/te/node_modules/systeminformation/lib/processes.js +1296 -0
  25. package/te/node_modules/systeminformation/lib/system.js +742 -0
  26. package/te/node_modules/systeminformation/lib/usb.js +279 -0
  27. package/te/node_modules/systeminformation/lib/users.js +363 -0
  28. package/te/node_modules/systeminformation/lib/util.js +1373 -0
  29. package/te/node_modules/systeminformation/lib/virtualbox.js +107 -0
  30. package/te/node_modules/systeminformation/lib/wifi.js +834 -0
  31. package/te/node_modules/systeminformation/package.json +99 -0
  32. package/te/package-lock.json +52 -0
  33. package/te/package.json +15 -0
@@ -0,0 +1,1041 @@
1
+ // Type definitions for systeminformation
2
+ // Project: https://github.com/sebhildebrandt/systeminformation
3
+ // Definitions by: sebhildebrandt <https://github.com/sebhildebrandt>
4
+
5
+ /// <reference types="node" />
6
+
7
+ export namespace Systeminformation {
8
+
9
+ // 1. General
10
+
11
+ interface TimeData {
12
+ current: number;
13
+ uptime: number;
14
+ timezone: string;
15
+ timezoneName: string;
16
+ }
17
+
18
+ // 2. System (HW)
19
+
20
+ interface RaspberryRevisionData {
21
+ manufacturer: string;
22
+ processor: string;
23
+ type: string;
24
+ revision: string;
25
+ }
26
+ interface SystemData {
27
+ manufacturer: string;
28
+ model: string;
29
+ version: string;
30
+ serial: string;
31
+ uuid: string;
32
+ sku: string;
33
+ virtual: boolean;
34
+ virtualHost?: string;
35
+ raspberry?: RaspberryRevisionData;
36
+ }
37
+
38
+ interface BiosData {
39
+ vendor: string;
40
+ version: string;
41
+ releaseDate: string;
42
+ revision: string;
43
+ serial?: string;
44
+ language?: string;
45
+ features?: string[];
46
+ }
47
+
48
+ interface BaseboardData {
49
+ manufacturer: string;
50
+ model: string;
51
+ version: string;
52
+ serial: string;
53
+ assetTag: string;
54
+ memMax: number | null;
55
+ memSlots: number | null;
56
+ }
57
+
58
+ interface ChassisData {
59
+ manufacturer: string;
60
+ model: string;
61
+ type: string;
62
+ version: string;
63
+ serial: string;
64
+ assetTag: string;
65
+ sku: string;
66
+ }
67
+
68
+ // 3. CPU, Memory, Disks, Battery, Graphics
69
+
70
+ interface CpuData {
71
+ manufacturer: string;
72
+ brand: string;
73
+ vendor: string;
74
+ family: string;
75
+ model: string;
76
+ stepping: string;
77
+ revision: string;
78
+ voltage: string;
79
+ speed: number;
80
+ speedMin: number;
81
+ speedMax: number;
82
+ governor: string;
83
+ cores: number;
84
+ physicalCores: number;
85
+ efficiencyCores?: number;
86
+ performanceCores?: number;
87
+ processors: number;
88
+ socket: string;
89
+ flags: string;
90
+ virtualization: boolean;
91
+ cache: CpuCacheData;
92
+ }
93
+
94
+ interface CpuCacheData {
95
+ l1d: number;
96
+ l1i: number;
97
+ l2: number;
98
+ l3: number;
99
+ }
100
+
101
+ interface CpuCurrentSpeedData {
102
+ min: number;
103
+ max: number;
104
+ avg: number;
105
+ cores: number[];
106
+ }
107
+
108
+ interface CpuTemperatureData {
109
+ main: number;
110
+ cores: number[];
111
+ max: number;
112
+ socket?: number[];
113
+ chipset?: number;
114
+ }
115
+
116
+ interface MemData {
117
+ total: number;
118
+ free: number;
119
+ used: number;
120
+ active: number;
121
+ available: number;
122
+ buffcache: number;
123
+ buffers: number;
124
+ cached: number;
125
+ slab: number;
126
+ swaptotal: number;
127
+ swapused: number;
128
+ swapfree: number;
129
+ writeback: number | null;
130
+ dirty: number | null;
131
+ }
132
+
133
+ interface MemLayoutData {
134
+ size: number;
135
+ bank: string;
136
+ type: string;
137
+ ecc?: boolean | null;
138
+ clockSpeed: number | null;
139
+ formFactor: string;
140
+ manufacturer?: string;
141
+ partNum: string;
142
+ serialNum: string;
143
+ voltageConfigured: number | null;
144
+ voltageMin: number | null;
145
+ voltageMax: number | null;
146
+ }
147
+
148
+ interface SmartData {
149
+ json_format_version: number[];
150
+ smartctl: {
151
+ version: number[];
152
+ platform_info: string;
153
+ build_info: string;
154
+ argv: string[];
155
+ exit_status: number;
156
+ };
157
+ device: {
158
+ name: string;
159
+ info_name: string;
160
+ type: string;
161
+ protocol: string;
162
+ };
163
+ model_family?: string;
164
+ model_name?: string;
165
+ serial_number?: string;
166
+ firmware_version?: string;
167
+ smart_status: {
168
+ passed: boolean;
169
+ };
170
+ trim?: {
171
+ supported: boolean;
172
+ };
173
+ ata_smart_attributes?: {
174
+ revision: number;
175
+ table: {
176
+ id: number;
177
+ name: string;
178
+ value: number;
179
+ worst: number;
180
+ thresh: number;
181
+ when_failed: string;
182
+ flags: {
183
+ value: number;
184
+ string: string;
185
+ prefailure: boolean;
186
+ updated_online: boolean;
187
+ performance: boolean;
188
+ error_rate: boolean;
189
+ event_count: boolean;
190
+ auto_keep: boolean;
191
+ };
192
+ raw: {
193
+ value: number;
194
+ string: string;
195
+ };
196
+ }[];
197
+ };
198
+ ata_smart_error_log?: {
199
+ summary: {
200
+ revision: number;
201
+ count: number;
202
+ };
203
+ };
204
+ ata_smart_self_test_log?: {
205
+ standard: {
206
+ revision: number;
207
+ table: {
208
+ type: {
209
+ value: number;
210
+ string: string;
211
+ };
212
+ status: {
213
+ value: number;
214
+ string: string;
215
+ passed: boolean;
216
+ };
217
+ lifetime_hours: number;
218
+ }[];
219
+ count: number;
220
+ error_count_total: number;
221
+ error_count_outdated: number;
222
+ };
223
+ };
224
+ nvme_pci_vendor?: {
225
+ id: number;
226
+ subsystem_id: number;
227
+ },
228
+ nvme_smart_health_information_log?: {
229
+ critical_warning?: number;
230
+ temperature?: number;
231
+ available_spare?: number;
232
+ available_spare_threshold?: number;
233
+ percentage_used?: number;
234
+ data_units_read?: number;
235
+ data_units_written?: number;
236
+ host_reads?: number;
237
+ host_writes?: number;
238
+ controller_busy_time?: number;
239
+ power_cycles?: number;
240
+ power_on_hours?: number;
241
+ unsafe_shutdowns?: number;
242
+ media_errors?: number;
243
+ num_err_log_entries?: number;
244
+ warning_temp_time?: number;
245
+ critical_comp_time?: number;
246
+ temperature_sensors?: number[];
247
+ },
248
+ user_capacity?: {
249
+ blocks: number;
250
+ bytes: number;
251
+ },
252
+ logical_block_size?: number;
253
+ temperature: {
254
+ current: number;
255
+ };
256
+ power_cycle_count: number;
257
+ power_on_time: {
258
+ hours: number;
259
+ };
260
+ }
261
+
262
+ interface DiskLayoutData {
263
+ device: string;
264
+ type: string;
265
+ name: string;
266
+ vendor: string;
267
+ size: number;
268
+ bytesPerSector: number;
269
+ totalCylinders: number;
270
+ totalHeads: number;
271
+ totalSectors: number;
272
+ totalTracks: number;
273
+ tracksPerCylinder: number;
274
+ sectorsPerTrack: number;
275
+ firmwareRevision: string;
276
+ serialNum: string;
277
+ interfaceType: string;
278
+ smartStatus: string;
279
+ temperature: null | number;
280
+ smartData?: SmartData;
281
+ }
282
+
283
+ interface BatteryData {
284
+ hasBattery: boolean;
285
+ cycleCount: number;
286
+ isCharging: boolean;
287
+ voltage: number;
288
+ designedCapacity: number;
289
+ maxCapacity: number;
290
+ currentCapacity: number;
291
+ capacityUnit: string;
292
+ percent: number;
293
+ timeRemaining: number;
294
+ acConnected: boolean;
295
+ type: string;
296
+ model: string;
297
+ manufacturer: string;
298
+ serial: string;
299
+ additionalBatteries?: BatteryData[];
300
+ }
301
+
302
+ interface GraphicsData {
303
+ controllers: GraphicsControllerData[];
304
+ displays: GraphicsDisplayData[];
305
+ }
306
+
307
+ interface GraphicsControllerData {
308
+ vendor: string;
309
+ subVendor?: string;
310
+ vendorId?: string;
311
+ model: string;
312
+ deviceId?: string;
313
+ bus: string;
314
+ busAddress?: string;
315
+ vram: number | null;
316
+ vramDynamic: boolean;
317
+ external?: boolean;
318
+ cores?: number;
319
+ metalVersion?: string;
320
+ subDeviceId?: string;
321
+ driverVersion?: string;
322
+ name?: string;
323
+ pciBus?: string;
324
+ pciID?: string;
325
+ fanSpeed?: number;
326
+ memoryTotal?: number;
327
+ memoryUsed?: number;
328
+ memoryFree?: number;
329
+ utilizationGpu?: number;
330
+ utilizationMemory?: number;
331
+ temperatureGpu?: number;
332
+ temperatureMemory?: number;
333
+ powerDraw?: number;
334
+ powerLimit?: number;
335
+ clockCore?: number;
336
+ clockMemory?: number;
337
+ }
338
+
339
+ interface GraphicsDisplayData {
340
+ vendor: string;
341
+ vendorId: string | null;
342
+ model: string;
343
+ productionYear: number | null;
344
+ serial: string | null;
345
+ deviceName: string | null;
346
+ displayId: string | null;
347
+ main: boolean;
348
+ builtin: boolean;
349
+ connection: string | null;
350
+ sizeX: number | null;
351
+ sizeY: number | null;
352
+ pixelDepth: number | null;
353
+ resolutionX: number | null;
354
+ resolutionY: number | null;
355
+ currentResX: number | null;
356
+ currentResY: number | null;
357
+ positionX: number;
358
+ positionY: number;
359
+ currentRefreshRate: number | null;
360
+ }
361
+
362
+ // 4. Operating System
363
+
364
+ interface OsData {
365
+ platform: string;
366
+ distro: string;
367
+ release: string;
368
+ codename: string;
369
+ kernel: string;
370
+ arch: string;
371
+ hostname: string;
372
+ fqdn: string;
373
+ codepage: string;
374
+ logofile: string;
375
+ serial: string;
376
+ build: string;
377
+ servicepack: string;
378
+ uefi: boolean | null;
379
+ hypervizor?: boolean;
380
+ remoteSession?: boolean;
381
+ }
382
+
383
+ interface UuidData {
384
+ os: string;
385
+ hardware: string;
386
+ macs: string[];
387
+ }
388
+
389
+ interface VersionData {
390
+ kernel?: string;
391
+ openssl?: string;
392
+ systemOpenssl?: string;
393
+ systemOpensslLib?: string;
394
+ node?: string;
395
+ v8?: string;
396
+ npm?: string;
397
+ yarn?: string;
398
+ pm2?: string;
399
+ gulp?: string;
400
+ grunt?: string;
401
+ git?: string;
402
+ tsc?: string;
403
+ mysql?: string;
404
+ redis?: string;
405
+ mongodb?: string;
406
+ nginx?: string;
407
+ php?: string;
408
+ docker?: string;
409
+ postfix?: string;
410
+ postgresql?: string;
411
+ perl?: string;
412
+ python?: string;
413
+ python3?: string;
414
+ pip?: string;
415
+ pip3?: string;
416
+ java?: string;
417
+ gcc?: string;
418
+ virtualbox?: string;
419
+ dotnet?: string;
420
+ }
421
+
422
+ interface UserData {
423
+ user: string;
424
+ tty: string;
425
+ date: string;
426
+ time: string;
427
+ ip: string;
428
+ command: string;
429
+ }
430
+
431
+ // 5. File System
432
+
433
+ interface FsSizeData {
434
+ fs: string;
435
+ type: string;
436
+ size: number;
437
+ used: number;
438
+ available: number;
439
+ use: number;
440
+ mount: string;
441
+ rw: boolean | null;
442
+ }
443
+
444
+ interface FsOpenFilesData {
445
+ max: number;
446
+ allocated: number;
447
+ available: number;
448
+ }
449
+
450
+ interface BlockDevicesData {
451
+ name: string;
452
+ identifier: string;
453
+ type: string;
454
+ fsType: string;
455
+ mount: string;
456
+ size: number;
457
+ physical: string;
458
+ uuid: string;
459
+ label: string;
460
+ model: string;
461
+ serial: string;
462
+ removable: boolean;
463
+ protocol: string;
464
+ group?: string;
465
+ device?: string;
466
+ }
467
+
468
+ interface FsStatsData {
469
+ rx: number;
470
+ wx: number;
471
+ tx: number;
472
+ rx_sec: number | null;
473
+ wx_sec: number | null;
474
+ tx_sec: number | null;
475
+ ms: number;
476
+ }
477
+
478
+ interface DisksIoData {
479
+ rIO: number;
480
+ wIO: number;
481
+ tIO: number;
482
+ rIO_sec: number | null;
483
+ wIO_sec: number | null;
484
+ tIO_sec: number | null;
485
+ rWaitTime: number;
486
+ wWaitTime: number;
487
+ tWaitTime: number;
488
+ rWaitPercent: number | null;
489
+ wWaitPercent: number | null;
490
+ tWaitPercent: number | null;
491
+ ms: number;
492
+ }
493
+
494
+ // 6. Network related functions
495
+
496
+ interface NetworkInterfacesData {
497
+ iface: string;
498
+ ifaceName: string;
499
+ default: boolean;
500
+ ip4: string;
501
+ ip4subnet: string;
502
+ ip6: string;
503
+ ip6subnet: string;
504
+ mac: string;
505
+ internal: boolean;
506
+ virtual: boolean;
507
+ operstate: string;
508
+ type: string;
509
+ duplex: string;
510
+ mtu: number | null;
511
+ speed: number | null;
512
+ dhcp: boolean;
513
+ dnsSuffix: string;
514
+ ieee8021xAuth: string;
515
+ ieee8021xState: string;
516
+ carrierChanges: number;
517
+ }
518
+
519
+ interface NetworkStatsData {
520
+ iface: string;
521
+ operstate: string;
522
+ rx_bytes: number;
523
+ rx_dropped: number;
524
+ rx_errors: number;
525
+ tx_bytes: number;
526
+ tx_dropped: number;
527
+ tx_errors: number;
528
+ rx_sec: number;
529
+ tx_sec: number;
530
+ ms: number;
531
+ }
532
+
533
+ interface NetworkConnectionsData {
534
+ protocol: string;
535
+ localAddress: string;
536
+ localPort: string;
537
+ peerAddress: string;
538
+ peerPort: string;
539
+ state: string;
540
+ pid: number;
541
+ process: string;
542
+ }
543
+
544
+ interface InetChecksiteData {
545
+ url: string;
546
+ ok: boolean;
547
+ status: number;
548
+ ms: number;
549
+ }
550
+
551
+ interface WifiNetworkData {
552
+ ssid: string;
553
+ bssid: string;
554
+ mode: string;
555
+ channel: number;
556
+ frequency: number;
557
+ signalLevel: number;
558
+ quality: number;
559
+ security: string[];
560
+ wpaFlags: string[];
561
+ rsnFlags: string[];
562
+ }
563
+
564
+ interface WifiInterfaceData {
565
+ id: string;
566
+ iface: string;
567
+ model: string;
568
+ vendor: string;
569
+ mac: string;
570
+ }
571
+
572
+ interface WifiConnectionData {
573
+ id: string;
574
+ iface: string;
575
+ model: string;
576
+ ssid: string;
577
+ bssid: string;
578
+ channel: number;
579
+ frequency: number;
580
+ type: string;
581
+ security: string;
582
+ signalLevel: number;
583
+ quality: number;
584
+ txRate: number;
585
+ }
586
+
587
+ // 7. Current Load, Processes & Services
588
+
589
+ interface CurrentLoadData {
590
+ avgLoad: number;
591
+ currentLoad: number;
592
+ currentLoadUser: number;
593
+ currentLoadSystem: number;
594
+ currentLoadNice: number;
595
+ currentLoadIdle: number;
596
+ currentLoadIrq: number;
597
+ currentLoadSteal: number;
598
+ currentLoadGuest: number;
599
+ rawCurrentLoad: number;
600
+ rawCurrentLoadUser: number;
601
+ rawCurrentLoadSystem: number;
602
+ rawCurrentLoadNice: number;
603
+ rawCurrentLoadIdle: number;
604
+ rawCurrentLoadIrq: number;
605
+ rawCurrentLoadSteal: number;
606
+ rawCurrentLoadGuest: number;
607
+ cpus: CurrentLoadCpuData[];
608
+ }
609
+
610
+ interface CurrentLoadCpuData {
611
+ load: number;
612
+ loadUser: number;
613
+ loadSystem: number;
614
+ loadNice: number;
615
+ loadIdle: number;
616
+ loadIrq: number;
617
+ loadSteal: number;
618
+ loadGuest: number;
619
+ rawLoad: number;
620
+ rawLoadUser: number;
621
+ rawLoadSystem: number;
622
+ rawLoadNice: number;
623
+ rawLoadIdle: number;
624
+ rawLoadIrq: number;
625
+ rawLoadSteal: number;
626
+ rawLoadGuest: number;
627
+ }
628
+
629
+ interface ProcessesData {
630
+ all: number;
631
+ running: number;
632
+ blocked: number;
633
+ sleeping: number;
634
+ unknown: number;
635
+ list: ProcessesProcessData[];
636
+ }
637
+
638
+ interface ProcessesProcessData {
639
+ pid: number;
640
+ parentPid: number;
641
+ name: string;
642
+ cpu: number;
643
+ cpuu: number;
644
+ cpus: number;
645
+ mem: number;
646
+ priority: number;
647
+ memVsz: number;
648
+ memRss: number;
649
+ nice: number;
650
+ started: string;
651
+ state: string;
652
+ tty: string;
653
+ user: string;
654
+ command: string;
655
+ params: string;
656
+ path: string;
657
+ }
658
+
659
+ interface ProcessesProcessLoadData {
660
+ proc: string;
661
+ pid: number;
662
+ pids: number[];
663
+ cpu: number;
664
+ mem: number;
665
+ }
666
+
667
+ interface ServicesData {
668
+ name: string;
669
+ running: boolean;
670
+ startmode: string;
671
+ pids: number[];
672
+ cpu: number;
673
+ mem: number;
674
+ }
675
+
676
+ // 8. Docker
677
+
678
+ interface DockerInfoData {
679
+ id: string;
680
+ containers: number;
681
+ containersRunning: number;
682
+ containersPaused: number;
683
+ containersStopped: number;
684
+ images: number;
685
+ driver: string;
686
+ memoryLimit: boolean;
687
+ swapLimit: boolean;
688
+ kernelMemory: boolean;
689
+ cpuCfsPeriod: boolean;
690
+ cpuCfsQuota: boolean;
691
+ cpuShares: boolean;
692
+ cpuSet: boolean;
693
+ ipv4Forwarding: boolean;
694
+ bridgeNfIptables: boolean;
695
+ bridgeNfIp6tables: boolean;
696
+ debug: boolean;
697
+ nfd: number;
698
+ oomKillDisable: boolean;
699
+ ngoroutines: number;
700
+ systemTime: string;
701
+ loggingDriver: string;
702
+ cgroupDriver: string;
703
+ nEventsListener: number;
704
+ kernelVersion: string;
705
+ operatingSystem: string;
706
+ osType: string;
707
+ architecture: string;
708
+ ncpu: number;
709
+ memTotal: number;
710
+ dockerRootDir: string;
711
+ httpProxy: string;
712
+ httpsProxy: string;
713
+ noProxy: string;
714
+ name: string;
715
+ labels: string[];
716
+ experimentalBuild: boolean;
717
+ serverVersion: string;
718
+ clusterStore: string;
719
+ clusterAdvertise: string;
720
+ defaultRuntime: string;
721
+ liveRestoreEnabled: boolean;
722
+ isolation: string;
723
+ initBinary: string;
724
+ productLicense: string;
725
+ }
726
+
727
+ interface DockerImageData {
728
+ id: string;
729
+ container: string;
730
+ comment: string;
731
+ os: string;
732
+ architecture: string;
733
+ parent: string;
734
+ dockerVersion: string;
735
+ size: number;
736
+ sharedSize: number;
737
+ virtualSize: number;
738
+ author: string;
739
+ created: number;
740
+ containerConfig: any;
741
+ graphDriver: any;
742
+ repoDigests: any;
743
+ repoTags: any;
744
+ config: any;
745
+ rootFS: any;
746
+ }
747
+
748
+ interface DockerContainerData {
749
+ id: string;
750
+ name: string;
751
+ image: string;
752
+ imageID: string;
753
+ command: string;
754
+ created: number;
755
+ started: number;
756
+ finished: number;
757
+ createdAt: string;
758
+ startedAt: string;
759
+ finishedAt: string;
760
+ state: string;
761
+ restartCount: number;
762
+ platform: string;
763
+ driver: string;
764
+ ports: number[];
765
+ mounts: DockerContainerMountData[];
766
+ }
767
+
768
+ interface DockerContainerMountData {
769
+ Type: string;
770
+ Source: string;
771
+ Destination: string;
772
+ Mode: string;
773
+ RW: boolean;
774
+ Propagation: string;
775
+ }
776
+
777
+ interface DockerContainerStatsData {
778
+ id: string;
779
+ memUsage: number;
780
+ memLimit: number;
781
+ memPercent: number;
782
+ cpuPercent: number;
783
+ pids: number;
784
+ netIO: {
785
+ rx: number;
786
+ wx: number;
787
+ };
788
+ blockIO: {
789
+ r: number;
790
+ w: number;
791
+ };
792
+ restartCount: number;
793
+ cpuStats: any;
794
+ precpuStats: any;
795
+ memoryStats: any;
796
+ networks: any;
797
+ }
798
+
799
+ interface DockerContainerProcessData {
800
+ pidHost: string;
801
+ ppid: string;
802
+ pgid: string;
803
+ user: string;
804
+ ruser: string;
805
+ group: string;
806
+ rgroup: string;
807
+ stat: string;
808
+ time: string;
809
+ elapsed: string;
810
+ nice: string;
811
+ rss: string;
812
+ vsz: string;
813
+ command: string;
814
+ }
815
+
816
+ interface DockerVolumeData {
817
+ name: string;
818
+ driver: string;
819
+ labels: any;
820
+ mountpoint: string;
821
+ options: any;
822
+ scope: string;
823
+ created: number;
824
+ }
825
+
826
+ // 9. Virtual Box
827
+
828
+ interface VboxInfoData {
829
+ id: string;
830
+ name: string;
831
+ running: boolean;
832
+ started: string;
833
+ runningSince: number;
834
+ stopped: string;
835
+ stoppedSince: number;
836
+ guestOS: string;
837
+ hardwareUUID: string;
838
+ memory: number;
839
+ vram: number;
840
+ cpus: number;
841
+ cpuExepCap: string;
842
+ cpuProfile: string;
843
+ chipset: string;
844
+ firmware: string;
845
+ pageFusion: boolean;
846
+ configFile: string;
847
+ snapshotFolder: string;
848
+ logFolder: string;
849
+ hpet: boolean;
850
+ pae: boolean;
851
+ longMode: boolean;
852
+ tripleFaultReset: boolean;
853
+ apic: boolean;
854
+ x2Apic: boolean;
855
+ acpi: boolean;
856
+ ioApic: boolean;
857
+ biosApicMode: string;
858
+ bootMenuMode: string;
859
+ bootDevice1: string;
860
+ bootDevice2: string;
861
+ bootDevice3: string;
862
+ bootDevice4: string;
863
+ timeOffset: string;
864
+ rtc: string;
865
+ }
866
+
867
+ interface PrinterData {
868
+ id: number;
869
+ name: string;
870
+ model: string;
871
+ uri: string;
872
+ uuid: string;
873
+ local: boolean;
874
+ status: string;
875
+ default: boolean;
876
+ shared: boolean;
877
+ }
878
+
879
+ interface UsbData {
880
+ id: number | string;
881
+ bus: number;
882
+ deviceId: number;
883
+ name: string;
884
+ type: string;
885
+ removable: boolean;
886
+ vendor: string;
887
+ manufacturer: string;
888
+ maxPower: string;
889
+ serialNumber: string;
890
+ }
891
+
892
+ interface AudioData {
893
+ id: number | string;
894
+ name: string;
895
+ manufacturer: string;
896
+ default: boolean;
897
+ revision: string;
898
+ driver: string;
899
+ channel: string;
900
+ in: boolean;
901
+ out: boolean;
902
+ type: string;
903
+ status: string;
904
+ }
905
+
906
+ interface BluetoothDeviceData {
907
+ device: string;
908
+ name: string;
909
+ macDevice: string;
910
+ macHost: string;
911
+ batteryPercent: number;
912
+ manufacturer: string;
913
+ type: string;
914
+ connected: boolean;
915
+ }
916
+
917
+ // 10. "Get All at once" - functions
918
+
919
+ interface StaticData {
920
+ version: string;
921
+ system: SystemData;
922
+ bios: BiosData;
923
+ baseboard: BaseboardData;
924
+ chassis: ChassisData;
925
+ os: OsData;
926
+ uuid: UuidData;
927
+ versions: VersionData;
928
+ cpu: CpuData;
929
+ graphics: GraphicsData;
930
+ net: NetworkInterfacesData[];
931
+ memLayout: MemLayoutData[];
932
+ diskLayout: DiskLayoutData[];
933
+ }
934
+
935
+ interface DynamicData {
936
+ time: TimeData;
937
+ node: string;
938
+ v8: string;
939
+ cpuCurrentSpeed: CpuCurrentSpeedData;
940
+ users: UserData[];
941
+ processes: ProcessesData[];
942
+ currentLoad: CurrentLoadData;
943
+ cpuTemperature: CpuTemperatureData;
944
+ networkStats: NetworkStatsData[];
945
+ networkConnections: NetworkConnectionsData[];
946
+ mem: MemData;
947
+ battery: BatteryData;
948
+ services: ServicesData[];
949
+ fsSize: FsSizeData;
950
+ fsStats: FsStatsData;
951
+ disksIO: DisksIoData;
952
+ wifiNetworks: WifiNetworkData;
953
+ inetLatency: number;
954
+ }
955
+ }
956
+
957
+ export function version(): string;
958
+ export function system(cb?: (data: Systeminformation.SystemData) => any): Promise<Systeminformation.SystemData>;
959
+ export function bios(cb?: (data: Systeminformation.BiosData) => any): Promise<Systeminformation.BiosData>;
960
+ export function baseboard(cb?: (data: Systeminformation.BaseboardData) => any): Promise<Systeminformation.BaseboardData>;
961
+ export function chassis(cb?: (data: Systeminformation.ChassisData) => any): Promise<Systeminformation.ChassisData>;
962
+
963
+ export function time(): Systeminformation.TimeData;
964
+ export function osInfo(cb?: (data: Systeminformation.OsData) => any): Promise<Systeminformation.OsData>;
965
+ export function versions(apps?: string, cb?: (data: Systeminformation.VersionData) => any): Promise<Systeminformation.VersionData>;
966
+ export function shell(cb?: (data: string) => any): Promise<string>;
967
+ export function uuid(cb?: (data: Systeminformation.UuidData) => any): Promise<Systeminformation.UuidData>;
968
+
969
+ export function cpu(cb?: (data: Systeminformation.CpuData) => any): Promise<Systeminformation.CpuData>;
970
+ export function cpuFlags(cb?: (data: string) => any): Promise<string>;
971
+ export function cpuCache(cb?: (data: Systeminformation.CpuCacheData) => any): Promise<Systeminformation.CpuCacheData>;
972
+ export function cpuCurrentSpeed(cb?: (data: Systeminformation.CpuCurrentSpeedData) => any): Promise<Systeminformation.CpuCurrentSpeedData>;
973
+ export function cpuTemperature(cb?: (data: Systeminformation.CpuTemperatureData) => any): Promise<Systeminformation.CpuTemperatureData>;
974
+ export function currentLoad(cb?: (data: Systeminformation.CurrentLoadData) => any): Promise<Systeminformation.CurrentLoadData>;
975
+ export function fullLoad(cb?: (data: number) => any): Promise<number>;
976
+
977
+ export function mem(cb?: (data: Systeminformation.MemData) => any): Promise<Systeminformation.MemData>;
978
+ export function memLayout(cb?: (data: Systeminformation.MemLayoutData[]) => any): Promise<Systeminformation.MemLayoutData[]>;
979
+
980
+ export function battery(cb?: (data: Systeminformation.BatteryData) => any): Promise<Systeminformation.BatteryData>;
981
+ export function graphics(cb?: (data: Systeminformation.GraphicsData) => any): Promise<Systeminformation.GraphicsData>;
982
+
983
+ export function fsSize(drive?: string, cb?: (data: Systeminformation.FsSizeData[]) => any): Promise<Systeminformation.FsSizeData[]>;
984
+ export function fsOpenFiles(cb?: (data: Systeminformation.FsOpenFilesData[]) => any): Promise<Systeminformation.FsOpenFilesData[]>;
985
+ export function blockDevices(cb?: (data: Systeminformation.BlockDevicesData[]) => any): Promise<Systeminformation.BlockDevicesData[]>;
986
+ export function fsStats(cb?: (data: Systeminformation.FsStatsData) => any): Promise<Systeminformation.FsStatsData>;
987
+ export function disksIO(cb?: (data: Systeminformation.DisksIoData) => any): Promise<Systeminformation.DisksIoData>;
988
+ export function diskLayout(cb?: (data: Systeminformation.DiskLayoutData[]) => any): Promise<Systeminformation.DiskLayoutData[]>;
989
+
990
+ export function networkInterfaceDefault(cb?: (data: string) => any): Promise<string>;
991
+ export function networkGatewayDefault(cb?: (data: string) => any): Promise<string>;
992
+ export function networkInterfaces(
993
+ cb?:
994
+ | ((data: Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData) => any)
995
+ | boolean
996
+ | string,
997
+ rescan?: boolean,
998
+ defaultString?: string
999
+ ): Promise<Systeminformation.NetworkInterfacesData[] | Systeminformation.NetworkInterfacesData>;
1000
+
1001
+ export function networkStats(ifaces?: string, cb?: (data: Systeminformation.NetworkStatsData[]) => any): Promise<Systeminformation.NetworkStatsData[]>;
1002
+ export function networkConnections(cb?: (data: Systeminformation.NetworkConnectionsData[]) => any): Promise<Systeminformation.NetworkConnectionsData[]>;
1003
+ export function inetChecksite(url: string, cb?: (data: Systeminformation.InetChecksiteData) => any): Promise<Systeminformation.InetChecksiteData>;
1004
+ export function inetLatency(host?: string, cb?: (data: number) => any): Promise<number>;
1005
+
1006
+ export function wifiNetworks(cb?: (data: Systeminformation.WifiNetworkData[]) => any): Promise<Systeminformation.WifiNetworkData[]>;
1007
+ export function wifiInterfaces(cb?: (data: Systeminformation.WifiInterfaceData[]) => any): Promise<Systeminformation.WifiInterfaceData[]>;
1008
+ export function wifiConnections(cb?: (data: Systeminformation.WifiConnectionData[]) => any): Promise<Systeminformation.WifiConnectionData[]>;
1009
+
1010
+ export function users(cb?: (data: Systeminformation.UserData[]) => any): Promise<Systeminformation.UserData[]>;
1011
+
1012
+ export function processes(cb?: (data: Systeminformation.ProcessesData) => any): Promise<Systeminformation.ProcessesData>;
1013
+ export function processLoad(processNames: string, cb?: (data: Systeminformation.ProcessesProcessLoadData[]) => any): Promise<Systeminformation.ProcessesProcessLoadData[]>;
1014
+ export function services(serviceName: string, cb?: (data: Systeminformation.ServicesData[]) => any): Promise<Systeminformation.ServicesData[]>;
1015
+
1016
+ export function dockerInfo(cb?: (data: Systeminformation.DockerInfoData) => any): Promise<Systeminformation.DockerInfoData>;
1017
+ export function dockerImages(all?: boolean, cb?: (data: Systeminformation.DockerImageData[]) => any): Promise<Systeminformation.DockerImageData[]>;
1018
+ export function dockerContainers(all?: boolean, cb?: (data: Systeminformation.DockerContainerData[]) => any): Promise<Systeminformation.DockerContainerData[]>;
1019
+ export function dockerContainerStats(id?: string, cb?: (data: Systeminformation.DockerContainerStatsData[]) => any): Promise<Systeminformation.DockerContainerStatsData[]>;
1020
+ export function dockerContainerProcesses(id?: string, cb?: (data: any) => any): Promise<Systeminformation.DockerContainerProcessData[]>;
1021
+ export function dockerVolumes(cb?: (data: Systeminformation.DockerVolumeData[]) => any): Promise<Systeminformation.DockerVolumeData[]>;
1022
+ export function dockerAll(cb?: (data: any) => any): Promise<any>;
1023
+
1024
+ export function vboxInfo(cb?: (data: Systeminformation.VboxInfoData[]) => any): Promise<Systeminformation.VboxInfoData[]>;
1025
+
1026
+ export function printer(cb?: (data: Systeminformation.PrinterData[]) => any): Promise<Systeminformation.PrinterData[]>;
1027
+
1028
+ export function usb(cb?: (data: Systeminformation.UsbData[]) => any): Promise<Systeminformation.UsbData[]>;
1029
+
1030
+ export function audio(cb?: (data: Systeminformation.AudioData[]) => any): Promise<Systeminformation.AudioData[]>;
1031
+
1032
+ export function bluetoothDevices(cb?: (data: Systeminformation.BluetoothDeviceData[]) => any): Promise<Systeminformation.BluetoothDeviceData[]>;
1033
+
1034
+ export function getStaticData(cb?: (data: Systeminformation.StaticData) => any): Promise<Systeminformation.StaticData>;
1035
+ export function getDynamicData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<Systeminformation.DynamicData>;
1036
+ export function getAllData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<Systeminformation.StaticData & Systeminformation.DynamicData>;
1037
+ export function get(valuesObject: any, cb?: (data: any) => any): Promise<any>;
1038
+ export function observe(valuesObject: any, interval: number, cb?: (data: any) => any): number;
1039
+
1040
+ export function powerShellStart(): void;
1041
+ export function powerShellRelease(): void;