@vates/types 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common.d.mts +46 -42
- package/package.json +1 -1
package/dist/common.d.mts
CHANGED
|
@@ -528,65 +528,69 @@ type XapiStatsResponse<T> = {
|
|
|
528
528
|
interval: number;
|
|
529
529
|
stats: T;
|
|
530
530
|
};
|
|
531
|
+
type StatValues = (number | null)[];
|
|
532
|
+
type RecordStatValues = Record<string, StatValues>;
|
|
531
533
|
export type XapiStatsGranularity = 'seconds' | 'minutes' | 'hours' | 'days';
|
|
532
|
-
export type
|
|
533
|
-
cpus?:
|
|
534
|
+
export type XapiHostStatsRaw = {
|
|
535
|
+
cpus?: RecordStatValues;
|
|
534
536
|
ioThroughput?: {
|
|
535
|
-
r:
|
|
536
|
-
w:
|
|
537
|
+
r: RecordStatValues;
|
|
538
|
+
w: RecordStatValues;
|
|
537
539
|
};
|
|
538
540
|
iops?: {
|
|
539
|
-
r:
|
|
540
|
-
w:
|
|
541
|
+
r: RecordStatValues;
|
|
542
|
+
w: RecordStatValues;
|
|
541
543
|
};
|
|
542
|
-
iowait?:
|
|
544
|
+
iowait?: RecordStatValues;
|
|
543
545
|
latency?: {
|
|
544
|
-
r:
|
|
545
|
-
w:
|
|
546
|
+
r: RecordStatValues;
|
|
547
|
+
w: RecordStatValues;
|
|
546
548
|
};
|
|
547
|
-
load?:
|
|
548
|
-
memory?:
|
|
549
|
-
memoryFree?:
|
|
549
|
+
load?: StatValues;
|
|
550
|
+
memory?: StatValues;
|
|
551
|
+
memoryFree?: StatValues;
|
|
550
552
|
pifs?: {
|
|
551
|
-
rx:
|
|
552
|
-
tx:
|
|
553
|
+
rx: RecordStatValues;
|
|
554
|
+
tx: RecordStatValues;
|
|
553
555
|
};
|
|
554
|
-
}
|
|
555
|
-
export type
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
556
|
+
};
|
|
557
|
+
export type XapiHostStats = XapiStatsResponse<XapiHostStatsRaw>;
|
|
558
|
+
export type XapiVmStatsRaw = {
|
|
559
|
+
cpus?: RecordStatValues;
|
|
560
|
+
cpuUsage?: StatValues;
|
|
561
|
+
runstateFullrun?: StatValues;
|
|
562
|
+
runstateFullContention?: StatValues;
|
|
563
|
+
runstatePartialRun?: StatValues;
|
|
564
|
+
runstatePartialContention?: StatValues;
|
|
565
|
+
runstateConcurrencyHazard?: StatValues;
|
|
566
|
+
runstateBlocked?: StatValues;
|
|
564
567
|
iops?: {
|
|
565
|
-
r:
|
|
566
|
-
w:
|
|
568
|
+
r: RecordStatValues;
|
|
569
|
+
w: RecordStatValues;
|
|
567
570
|
};
|
|
568
|
-
memory?:
|
|
569
|
-
memoryFree?:
|
|
570
|
-
memoryTarget?:
|
|
571
|
+
memory?: StatValues;
|
|
572
|
+
memoryFree?: StatValues;
|
|
573
|
+
memoryTarget?: StatValues;
|
|
571
574
|
vifs?: {
|
|
572
|
-
rx:
|
|
573
|
-
tx:
|
|
575
|
+
rx: RecordStatValues;
|
|
576
|
+
tx: RecordStatValues;
|
|
574
577
|
};
|
|
575
578
|
vifErrors?: {
|
|
576
|
-
rx:
|
|
577
|
-
tx:
|
|
579
|
+
rx: RecordStatValues;
|
|
580
|
+
tx: RecordStatValues;
|
|
578
581
|
};
|
|
579
582
|
xvds?: {
|
|
580
|
-
w?:
|
|
581
|
-
r?:
|
|
582
|
-
total?:
|
|
583
|
+
w?: RecordStatValues;
|
|
584
|
+
r?: RecordStatValues;
|
|
585
|
+
total?: RecordStatValues;
|
|
583
586
|
};
|
|
584
587
|
vbdLatency?: {
|
|
585
|
-
w:
|
|
586
|
-
r:
|
|
588
|
+
w: RecordStatValues;
|
|
589
|
+
r: RecordStatValues;
|
|
587
590
|
};
|
|
588
|
-
vbdIowait?:
|
|
589
|
-
vbdInflight?:
|
|
590
|
-
vbdAvgquSz?:
|
|
591
|
-
}
|
|
591
|
+
vbdIowait?: RecordStatValues;
|
|
592
|
+
vbdInflight?: RecordStatValues;
|
|
593
|
+
vbdAvgquSz?: RecordStatValues;
|
|
594
|
+
};
|
|
595
|
+
export type XapiVmStats = XapiStatsResponse<XapiVmStatsRaw>;
|
|
592
596
|
export {};
|